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