Add support for deploying to Equinix Metal bare-metal servers
[kuberef.git] / playbooks / roles / jump-vm / templates / user-data.j2
1 #jinja2:lstrip_blocks: True
2 #cloud-config
3 users:
4   - name: {{ lookup('env', 'USERNAME') }}
5     ssh-authorized-keys:
6       - {{ lookup('file', pub_key ) }}
7     sudo: ['ALL=(ALL) NOPASSWD:ALL']
8     groups: sudo
9     shell: /bin/bash
10 runcmd:
11     # this is requried in labs where the PXE network is different from
12     # the public network. Without internet connectivity, the installation
13     # of BMRA fails
14     - [ iptables, -t, nat, -A, POSTROUTING, -o, ens3, -j, MASQUERADE ]