Skip to content

Instantly share code, notes, and snippets.

@EarthmanT
Created February 5, 2017 09:12
Show Gist options
  • Save EarthmanT/298c3f048f3cda90d09af1a8ba06e36f to your computer and use it in GitHub Desktop.
Save EarthmanT/298c3f048f3cda90d09af1a8ba06e36f to your computer and use it in GitHub Desktop.
Create Openstack VM and Install Docker
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