cloudsoft.io

TOSCA Example

tosca_definitions_version: tosca_simple_yaml_1_3

metadata:
  template_name: testSoftwareComponentTemplateWithStandardScripts
  template_version: 1.0.0-SNAPSHOT

topology_template:
  node_templates:
    a_server:
      type: tosca.nodes.Compute
      interfaces:
        Standard:
          operations:
            start:
              implementation:
                primary:
                  type: brooklyn.tosca.artifacts.Implementation.InitD
                  properties:
                    commands:
                      default:
                        02-step2: classpath://scripts/echos/start.sh
                        # NB: 02 will run _after_ 01
                        01-step1:
                          implementation: classpath://scripts/echos/hello-args.sh
                          inputs:
                            to: world
                            at: before-start