Fix jinja2 rendering issue
[kuberef.git] / playbooks / roles / jump-vm / templates / user-data.j2
1 #jinja2:lstrip_blocks: True
2 #cloud-config
3 {#
4 SPDX-FileCopyrightText: 2021 Anuket contributors
5
6 SPDX-License-Identifier: Apache-2.0
7 #}
8
9 users:
10   - name: {{ lookup('env', 'USERNAME') }}
11     ssh-authorized-keys:
12       - {{ lookup('file', pub_key ) }}
13     sudo: ['ALL=(ALL) NOPASSWD:ALL']
14     groups: sudo
15     shell: /bin/bash
16 runcmd:
17     # this is requried in labs where the PXE network is different from
18     # the public network. Without internet connectivity, the installation
19     # of BMRA fails
20     - [ iptables, -t, nat, -A, POSTROUTING, -o, ens3, -j, MASQUERADE ]