feat(bootstrap): Add ability to load external NODE_FLAVOR
[csit.git] / fdio.infra.terraform / terraform-openstack-2n / user-data-sut1
1 #cloud-config
2 apt:
3   sources:
4     docker.list:
5       source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"
6       keyid: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
7 groups:
8   - "docker"
9 hostname: "s02-t21-sut1"
10 package_update: true
11 packages:
12   - "apt-transport-https"
13   - "autoconf"
14   - "build-essential"
15   - "ca-certificates"
16   - "cgroup-tools"
17   - "curl"
18   - "dkms"
19   - "docker-ce"
20   - "docker-ce-cli"
21   - "gdb"
22   - "gnupg-agent"
23   - "iperf3"
24   - "libglib2.0-dev"
25   - "libmbedcrypto7"
26   - "libmbedtls14"
27   - "libmbedx509-1"
28   - "libnuma-dev"
29   - "libpixman-1-dev"
30   - "libpcap-dev"
31   - "libtool"
32   - "linux-tools-common"
33   - "lxc"
34   - "net-tools"
35   - "ninja-build"
36   - "numactl"
37   - "pkg-config"
38   - "python3-all"
39   - "python3-apt"
40   - "python3-cffi"
41   - "python3-cffi-backend"
42   - "python3-dev"
43   - "python3-pip"
44   - "python3-pyelftools"
45   - "python3-setuptools"
46   - "qemu-system"
47   - "screen"
48   - "socat"
49   - "software-properties-common"
50   - "unzip"
51   - "virtualenv"
52 runcmd:
53   - sed -i '/PermitRootLogin/d' /etc/ssh/sshd_config
54   - echo "PermitRootLogin no" >> /etc/ssh/sshd_config
55   - systemctl restart sshd
56   - systemctl start docker
57   - systemctl enable docker
58 ssh_pwauth: True
59 users:
60   - name: "testuser"
61     groups: users, admin, docker, sudo
62     shell: "/bin/bash"
63     sudo:
64       - ALL=(ALL) NOPASSWD:ALL
65     lock_passwd: false
66     passwd: "$6$Y62lhMGJD8YNzmJn$H4DSqjrwFp5WN3tOvIrF.g/G2duOV76zXHAmaA/RU8jfT8H8sDumLQe/Q.EmI5pjPv7dzgI8j9BQPWes7efBK0"