Skip to content

Instantly share code, notes, and snippets.

@olivierlambert
Last active November 10, 2015 00:24
Show Gist options
  • Save olivierlambert/24ead4313a4d5b1ee4c5 to your computer and use it in GitHub Desktop.
Save olivierlambert/24ead4313a4d5b1ee4c5 to your computer and use it in GitHub Desktop.
Cloud config

VFAT disk

  1. apt-get install dosfstools
  2. mkfs.vfat /dev/xvdx

Files

openstack/latest/meta_data.json:

{
    "uuid": "83679162-1378-4288-a2d4-70e13ec132aa"
}

TODO: can be any UUID?

openstack/latest/user_data:

#cloud-config

hostname: cloud4
# add each entry to ~/.ssh/authorized_keys for the configured user or the
# first user defined in the user definition directive.
ssh_authorized_keys:
  - ssh-rsa xxxxxxxx foo@bar
  

More examples here: http://cloudinit.readthedocs.org/en/latest/topics/examples.html

Prepare Debian Image

apt-get install cloud-init

TODO:

  • default user better shell
  • sudoer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment