Created
November 22, 2019 17:31
-
-
Save vincent-zurczak/f44fdf47f729cfbcd1320033393bd4dc to your computer and use it in GitHub Desktop.
Reminder about Openstack and cloud init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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