summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser/toscaparser/tests/data/tosca_imports_validation.yaml
blob: 257beb8b2c6d260bd8122f3092894eb0264a397d (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
tosca_definitions_version: tosca_simple_yaml_1_0

description: Template to test invalid imports.

imports:
  - custom_types/imported_sample.yaml

topology_template:
 node_templates:
    logstash:
      type: tosca.nodes.SoftwareComponent.Logstash
      requirements:
        - search_endpoint:
            capability: search_endpoint
            relationship:
              type: tosca.relationships.ConnectsTo
              interfaces:
                Configure:
                  pre_configure_source:
                    implementation: logstash/configure_elasticsearch.py
                    inputs:
                      elasticsearch_ip: { get_attribute: [elasticsearch_server, private_address] }
      interfaces:
        Standard:
          create: logstash/create.sh
          start: logstash/start.sh
 policies:
    - my_compute_placement_policy:
        type: tosca.policies.Placement
        description: Apply placement policy to servers
        metadata: { user1: 1001, user2: 1002 }
        targets: [ my_server_1, my_server_2 ]
    - my_groups_placement:
        type: mycompany.mytypes.myScalingPolicy
        targets: [ webserver_group ]
        description: my company scaling policy
        metadata:
          user1: 1001
          user2: 1003
 relationship_templates:
    my_custom_rel:
      type: test.relation.connects
      interfaces:
        Configure:
          pre_configure_source: scripts/wp_db_configure.sh