2019-01-22 12:10:16 +00:00
|
|
|
#cloud-config
|
|
|
|
users:
|
2019-01-22 12:22:12 +00:00
|
|
|
- name: {{ remote_user }}
|
2019-01-22 12:10:16 +00:00
|
|
|
lock-passwd: false
|
|
|
|
passwd: $1$tG6Uv4$BPCIRF6RFuLrJ.lQO1GB8.
|
|
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
|
|
ssh_authorized_keys:
|
|
|
|
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDXh0iMMtbTEhRSgIbgCunAuE+Q1iKycRVRBYWDCQ45xE8nHsg7K98fdv6LqQwkTqlojEHKp2/TPawk8V6w3MTgOHXi/WO9FyvhMjUcfdxTvny1z3Pj1j0NglKjyQ3t30snwOBYJiC2qDDtvRYNJs+Re/aSdVbygOHMf0UqCyP8DL7Tcj5sNPgnleEC7jE+YNbyDJo2KtNFXy3+AMbwa742D5Ygi5FqaBO090gVQfb3hbnZLw9CNSK7vjo7k5hJo8d1kcPDth1Vo12IDejL8Al3ArfGSy5IqYXs8Stj4YVRW+78AOpQZiInCaFybqjsGG+5tezrXHrxhjJPHuSCuXk9vxkcUk7aC5eSDqoCP7RTB+iQCPJ1ZvkVbaebExZGgHpD9t2Xo2bd/3BRagIxPTzKo9q4+qCCClhWR4iUSOr/YKAZBFDdoVWg2IMqbUHzvHX7TE7I8hbAdg6CpgwBoJm8OWmfjkDU6aYnF8z9l36VV7xjvvuYbOrhpCJ9LGFSfmG3wswo8OH4XyRSHd3y7qrSYIGujtymrzozXo2MrMU3Rj2bW5MIEZSxleIVje4PHWOfZwwn3hwvqM/nyknzfNwPCidTsP3Q2FwfBtZYo1cIXH41bzjs4Bxb8+KJqwTcerzB1pT4qsoPnoYW0fnZE7NHVNhfNx53LdctclFerHTLMw== hybris@sparks
|
|
|
|
write_files:
|
|
|
|
- content: |
|
|
|
|
#!/bin/bash
|
|
|
|
# inet6_addr=$(ip a s | grep "inet6 2001:470:6d:22c:" | awk '{print substr($2,0)}')
|
|
|
|
sudo hostnamectl set-hostname {{ item.hostname }}
|
|
|
|
sudo ip -6 addr add {{ item.ipv6 }}/64 dev eth0
|
2019-01-22 12:22:12 +00:00
|
|
|
sudo chown -R {{ remote_user }}:{{ remote_user }} /home/{{ remote_user }}
|
|
|
|
path: /home/{{ remote_user }}/cloud-init.sh
|
|
|
|
owner: {{ remote_user }}:{{ remote_user }}
|
2019-01-22 12:10:16 +00:00
|
|
|
permissions: '0744'
|
|
|
|
runcmd:
|
2019-01-22 12:22:12 +00:00
|
|
|
- [ '/home/{{ remote_user }}/cloud-init.sh' ]
|