summaryrefslogtreecommitdiffstats
path: root/azure/aria/aria-extension-cloudify/src/aria/examples/hello-world/hello-world.yaml
blob: 86e2ad0d1807c6d47707611e2f51af28b9e0874c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
tosca_definitions_version: tosca_simple_yaml_1_0

node_types:

  WebServer:
    derived_from: tosca:Root
    capabilities:
      host:
        type: tosca:Container

  WebApp:
    derived_from: tosca:WebApplication
    properties:
      port:
        type: integer

topology_template:

  node_templates:
    web_server:
      type: WebServer

    web_app:
      type: WebApp
      properties:
        port: 9090
      requirements:
        - host: web_server
      interfaces:
        Standard:
          configure: scripts/configure.sh
          start: scripts/start.sh
          stop: scripts/stop.sh

  outputs:
    port:
      type: integer
      value: { get_property: [ web_app, port ] }