-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_data.cfg
36 lines (34 loc) · 1.64 KB
/
user_data.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#cloud-config
users:
- name: ansible
hashed_passwd: $6$m8uXUh0gpPvxCcQ8$Xq5I8vL27jvZDpNmxCXc..CTiNTXm1oEhfRVlB8zuhj4EhCufCeWMmDBugNDMUYAV04U3IZoRqPJh.nL5Obo5.
lock_passwd: false
gecos: Ansible Provisioning User
groups: users
shell: /bin/bash
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCUfUjUrK7d9QPXOL5KJxKrHLcg2o64VfF8qQ3Jx28SvpIBCy2hf8zX4MCHmMlzGQ3qgEE1Hsm6Z+kSK99vtxETwobDctr6Swft+OpEid3UyJonXbxb1Kt5LX9uFwL4JmIiVnLEWt5DEFfD8M0HvuNN2soNKjp/8vleQUQrbZyNfAG5ymrCRaYRzAafDs7wt5QFqHU+qeaIdqy9KOk7psPeNlIcbFwi63nWO2KSwjm+lm7RiTqYs7oEA1lMR6ZVry4RfXYozEDUeP338XWtRtcBZgwee/0YKNIlYcH2Dfes3AGtPSNXkw90ZTWmyW4PZqB0Ilv4gr3MlMX5H8m+1gHRXVwNqujGBLmstw3ZkF8R3jng+YTmt8xk0d40v4cRaaJOaIvPp9HiNl8nfXnA7px7xib2zo4vx2qcVMdq2jSyw6f0bu6K7WiWLxO+DkSnzZZqWj8x/m/zR63iiqwyp5xcUAA+B+EvIwUwZ1B5aOo/gbkbHh3bz7kX9S/RIq03il4VayrVm9NuGFbLBci+VUPRKHs1qktILFG1Qb8Js5so9nkqu52ReENMIwT/U+Y5n16R2BL1oqk7LnxoV+IcsMffpzul88ky+n2W4gQ7asVMpSof1vSKXRnbtojfcUPxLI0oC/w6NszRJtvnkb/liJyosywl7VMUgFQ092ssAXUxXQ== konrad@macbook"
sudo: ALL=(ALL) NOPASSWD:ALL
timezone: Europe/Warsaw
fqdn: ${fqdn}
hostname: ${hostname}
manage_etc_hosts: true
package_update: true
packages:
- htop
- qemu-guest-agent
- dnsutils
- nmap
- locales-all
write_files:
- path: /etc/sysctl.d/10-disable-ipv6.conf
permissions: '0644'
owner: root
content: |
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
runcmd:
- [systemctl, restart, systemd-sysctl.service]
- [systemctl, start, qemu-guest-agent]
- [systemctl, disable, systemd-networkd-wait-online.service]
- [systemctl, mask, systemd-networkd-wait-online.service]