c4cce9d708cc0eb63ac8dcfbda9b6fe5a062be49
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile that just defines a single compute instance and selects a (guest) host Operating System from the Compute node's properties. Note, this example does not include default values on inputs properties.
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     my_server:
16       type: Compute
17       capabilities:
18         host:
19           properties:
20             disk_size: 10 GB
21             num_cpus: {  get_input: cpus  }
22             mem_size: 4 MB
23         os:
24           properties:
25             architecture: x86_64
26             type: Linux
27             distribution: ubuntu
28             version: 12.04
29   outputs:
30     private_ip:
31       description: The private IP address of the deployed server instance.
32       value: { get_attribute: [my_server, private_address] }