Skip to content

Instantly share code, notes, and snippets.

@john5223
Created November 19, 2015 17:44
Show Gist options
  • Save john5223/840ffd56a8670acda1f3 to your computer and use it in GitHub Desktop.
Save john5223/840ffd56a8670acda1f3 to your computer and use it in GitHub Desktop.
cloud-init
stacker@atl-controller:~$ cat cloud-init.yaml
#cloud-config
# vim:syntax=yaml
debug: True
ssh_pwauth: True
disable_root: False
chpasswd:
list: |
root:ramnode
ubuntu:ramnode
cirros:ramnode
expire: false
runcmd:
- sed -i'.orig' -e's/without-password/yes/' /etc/ssh/sshd_config
- service sshd restart
- service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment