Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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