Implementing jump VM create via ansible
[kuberef.git] / playbooks / roles / jump-vm / templates / user-data.j2
1     #cloud-config
2     users:
3       - name: ubuntu
4         ssh-authorized-keys:
5           - {{ lookup('file', pub_key ) }}
6         sudo: ['ALL=(ALL) NOPASSWD:ALL']
7         groups: sudo
8         shell: /bin/bash
9     runcmd:
10         # this is requried in labs where the PXE network is different from
11         # the public network. Without internet connectivity, the installation
12         # of BMRA fails
13         - [ iptables, -t, nat, -A, POSTROUTING, -o, ens3, -j, MASQUERADE ]