summaryrefslogtreecommitdiffstats
path: root/playbooks/roles/jump-vm/templates/user-data.j2
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/jump-vm/templates/user-data.j2')
-rw-r--r--playbooks/roles/jump-vm/templates/user-data.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/roles/jump-vm/templates/user-data.j2 b/playbooks/roles/jump-vm/templates/user-data.j2
new file mode 100644
index 0000000..648f8d1
--- /dev/null
+++ b/playbooks/roles/jump-vm/templates/user-data.j2
@@ -0,0 +1,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 ]