Skip to content

Instantly share code, notes, and snippets.

@astianseb
Created June 7, 2018 14:59
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 astianseb/563706e919638749fe0ddc7e30a55902 to your computer and use it in GitHub Desktop.
Save astianseb/563706e919638749fe0ddc7e30a55902 to your computer and use it in GitHub Desktop.
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/cloudify/4.2/types.yaml
node_types:
cloudify.nodes.Application:
derived_from: cloudify.nodes.Root
properties:
listens_on:
description: >
List of tuples: (protocol, port) on which application listen
default:
- [tcp, 80]
- [udp, 123]
relationships:
cloudify.relationships.connected_ew:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudify.rtr_plugin.connecton.create
unlink:
implementation: cloudify.rtr_plugin.connection.delete
cloudify.relationships.connected_ns:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudify.fw_plugin.connection.create
unlink:
implementation: cloudify.fw_plugin.connection.delete
node_templates:
crm:
type: cloudify.nodes.Application
properties:
listens_on:
- [tcp, 8888]
relationships:
- type: cloudify.relationships.connected_ew
target: app_int
- type: cloudify.relationships.connected_ns
target: app_ext
- type: cloudify.relationships.contained_in
target: vm_host_1
app_int:
type: cloudify.nodes.Application
properties:
listens_on:
- [tcp, 8080]
app_ext:
type: cloudify.nodes.Application
properties:
listens_on:
- [tcp, 9000]
vm_host_1:
type: cloudify.nodes.Compute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment