ceph/tasks/buildpackages/opensuse-42.1-user-data.txt
Nathan Cutler 209ce61788 add user-data for openSUSE 42.1
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-05-14 17:37:09 +02:00

14 lines
476 B
Plaintext

#cloud-config
bootcmd:
- echo nameserver 8.8.8.8 | tee -a /etc/resolv.conf # last resort, in case the DHCP server does not provide a resolver
manage_etc_hosts: true
preserve_hostname: true
users:
- name: ubuntu
gecos: User
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: users
runcmd:
- ( MYHOME=/home/ubuntu ; mkdir $MYHOME/.ssh ; chmod 700 $MYHOME/.ssh ; cp /root/.ssh/authorized_keys $MYHOME/.ssh ; chown -R ubuntu.users $MYHOME/.ssh )
final_message: "READYTORUN"