Skip to content

Instantly share code, notes, and snippets.

@aweiteka
Last active August 29, 2015 14:10
Show Gist options
  • Save aweiteka/094327f0ca87a8bac78d to your computer and use it in GitHub Desktop.
Save aweiteka/094327f0ca87a8bac78d to your computer and use it in GitHub Desktop.
atomic on openstack using cloud-init
#!/bin/bash
nova boot --flavor m1.medium --poll --image RHEL-Atomic-Host-Cloud-7.0.0-Beta --user-data ~/Documents/user-data.txt atomic-test
nova list|grep atomic-test
#cloud-config
users:
- name: nickname
gecos: My Name
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ssh-rsa AAAA....lh1mwlH me@localhost
ssh_authorized_keys:
- ssh-rsa AAAA....lh1mwlH me@localhost
bootcmd:
- cat /etc/passwd >> /etc/issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment