ceph/qa/tasks/buildpackages/opensuse-42.1-user-data.txt
2016-12-14 11:29:55 -06: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"