summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/tests/data/interfaces/test_tosca_script_types.yaml
blob: b54cbcb9bac9d7596f3d354dc0e4e9fb2421e017 (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
39
40
41
42
43
44
45
46
47
48
tosca_definitions_version: tosca_simple_yaml_1_0

description: >
  TOSCA template to test usage of different script types like
  Ansible and Puppet one.

topology_template:

  node_templates:
    customwebserver:
      type: tosca.nodes.WebServer
      requirements:
        - host: server
      interfaces:
        Standard:
          create:
            implementation: install.yaml
          configure:
            implementation: configure.yml
          start:
            implementation: start.pp

    customwebserver2:
      type: tosca.nodes.WebServer
      requirements:
        - host: server
      interfaces:
        Standard:
          create:
            implementation: install.sh
          configure:
            implementation: configure.py
          start:
            implementation: start.sh

    server:
      type: tosca.nodes.Compute
      capabilities:
        host:
         properties:
           num_cpus: 1
           mem_size: 1 GB
        os:
          properties:
            type: Linux
            distribution: Ubuntu
            version: 12.04
            architecture: x86_64