Add database subsystem definition in the use case of
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / test_tosca_normative_type_by_shortname.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile with short type name for Compute.
5
6 topology_template:
7   inputs:
8     cpus:
9       type: integer
10       description: Number of CPUs for the server.
11       constraints:
12         - valid_values: [ 1, 2, 4, 8 ]
13
14   node_templates:
15     server:
16       type: Compute
17       capabilities:
18         host:
19           properties:
20             disk_size: 10 GB
21             num_cpus: { get_input: cpus }
22             mem_size: 4096 MB
23         os:
24           properties:
25             architecture: x86_64
26             type: Linux
27             distribution: Fedora
28             version: 18.0
29
30   outputs:
31     server_address:
32       description: IP address of server instance.
33       value: { get_attribute: [server, private_address] }