Skip to content

Instantly share code, notes, and snippets.

@yeshess
Created January 1, 2018 09:56
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 yeshess/dea1f56883564f4b1b0c9bcc86f2aea5 to your computer and use it in GitHub Desktop.
Save yeshess/dea1f56883564f4b1b0c9bcc86f2aea5 to your computer and use it in GitHub Desktop.
node_templates:
token:
type: cloudify.rest.Requests
properties:
hosts: ['10.239.1.112']
port: 443
ssl: true
verify: false
interfaces:
cloudify.interfaces.lifecycle:
start:
inputs:
template_file: templates/get-token-template.yaml
params:
USERNAME: "admin"
PASSWORD: "admin"
baseline_config:
type: cloudify.rest.Requests
properties:
hosts: ['10.239.1.112']
port: 443
ssl: true
verify: false
interfaces:
cloudify.interfaces.lifecycle:
start:
inputs:
template_file: templates/baseline-config-template.yaml
params:
USERNAME: "admin"
PASSWORD: "admin"
TOKEN: { get_attribute: [token, token-content, token] }
relationships:
- type: cloudify.relationships.depends_on
target: token
baseline_networking:
type: cloudify.rest.Requests
properties:
hosts: ['10.239.1.112']
port: 443
ssl: true
verify: false
interfaces:
cloudify.interfaces.lifecycle:
start:
inputs:
template_file: templates/baseline-networking-START-template.yaml
params:
USERNAME: "admin"
PASSWORD: "admin"
TOKEN: { get_attribute: [token, token-content, token] }
stop:
inputs:
template_file: templates/baseline-networking-STOP-template.yaml
params:
USERNAME: "admin"
PASSWORD: "admin"
TOKEN: { get_attribute: [token, token-content, token] }
relationships:
- type: cloudify.relationships.depends_on
target: baseline_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment