File: test_tosca_custom_rel.yaml

package info (click to toggle)
python-tosca-parser 2.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,908 kB
  • sloc: python: 11,099; sh: 144; makefile: 26
file content (32 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (3)
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
tosca_definitions_version: tosca_simple_yaml_1_0

topology_template:

 node_templates:

  my_block_storage:
    type: BlockStorage
    properties:
      size: 10 MB

  some_compute:
    type: Compute
    requirements:
      - local_storage:
          node: my_block_storage
          relationship:
            type: MyAttachesTo
            properties:
              location: /some_other_data_location

relationship_types:

  MyAttachesTo:
    derived_from: AttachesTo
    properties:
      location: /default_location
    interfaces:
      Configure:
        post_configure_target:
          implementation: default_script.sh