Created
February 5, 2017 09:12
-
-
Save EarthmanT/298c3f048f3cda90d09af1a8ba06e36f to your computer and use it in GitHub Desktop.
Create Openstack VM and Install Docker
This file contains 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
node_templates: | |
docker: | |
type: cloudify.nodes.Root | |
interfaces: | |
cloudify.interfaces.lifecycle: | |
create: | |
implementation: scripts/docker/install.py | |
start: | |
implementation: scripts/docker/bootstrap.py | |
relationships: | |
- type: cloudify.relationships.contained_in | |
target: nova_server | |
nova_server: | |
type: cloudify.openstack.nodes.Server | |
properties: | |
server: | |
userdata: | | |
#!/bin/bash | |
sudo groupadd docker | |
sudo gpasswd -a ubuntu docker | |
image: { get_input: image_id } | |
flavor: { get_input: flavor_id } | |
relationships: | |
- target: neutron_port | |
type: cloudify.openstack.server_connected_to_port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment