Skip to content

Instantly share code, notes, and snippets.

tosca_definitions_version: cloudify_dsl_1_3
imports:
- https://github.com/dice-project/DICE-Deployment-Cloudify/releases/download/0.7.0/full.yaml
workflows:
my_workflow:
steps:
creating_my_node:
target: my_node
activities:
- set_state: creating
on_success: create_my_node
create_my_node:
target: my_node
workflows:
my_workflow:
steps:
create_my_node:
target: my_node
activities:
- set_state: creating
- call_operation: tosca.interfaces.node.lifecycle.Standard.create
- set_state: created
topology_template:
workflows:
deploy:
description: Workflow to deploy the application
steps:
A:
on_success:
- B
- C
topology_template:
workflows:
deploy:
description: Workflow to deploy the application
steps:
A:
on_success:
- B
- C
workflows:
install: default_workflows.cloudify.plugins.workflows.install
uninstall: default_workflows.cloudify.plugins.workflows.uninstall
execute_operation:
mapping: default_workflows.cloudify.plugins.workflows.execute_operation
parameters:
operation: {}
operation_kwargs:
default: {}
run_by_dependency_order:
Firewall_Micro-Service:
type: openstack.Instance
properties:
image_id: { get_input: image_id }
flavor_id: { get_input: flavor_id }
os_users:
root:
password:
interfaces:
Standard:
workflows:
install: default_workflows.cloudify.plugins.workflows.install
uninstall: default_workflows.cloudify.plugins.workflows.uninstall
execute_operation:
mapping: default_workflows.cloudify.plugins.workflows.execute_operation
parameters:
operation: {}
operation_kwargs:
default: {}
run_by_dependency_order:
node_templates:
server:
type: cloudify.oraclebmc.nodes.Instance
properties:
install_agent: false
bmc_config: *bmc_config
public_key_file: 'somekey.pub'
...
kubernetes_master_host:
type: cloudify.hostpool.nodes.LinuxHost
properties:
agent_config:
<<: *agent_config
filters:
tags:
- large
- centos