Skip to content

Instantly share code, notes, and snippets.

@vincent-zurczak
Created November 22, 2019 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincent-zurczak/f44fdf47f729cfbcd1320033393bd4dc to your computer and use it in GitHub Desktop.
Save vincent-zurczak/f44fdf47f729cfbcd1320033393bd4dc to your computer and use it in GitHub Desktop.
Reminder about Openstack and cloud init
# Setup several SSH keys to be used with a VM
cat << EOF > /path/to/cloud-init.file
#cloud-config
ssh_authorized_keys:
- <public key 1>
- <public key 2>
EOF
# Create the VM (with the minimum set of options)
openstack server create \
--image "Debian 9" \
--flavor s1-2 \
--user-data /path/to/cloud-init.file \
vm-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment