254d2b68a607276b7541c7d27050456e7e3e4a50
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / examples / tosca-simple-1.0 / use-cases / compute-1 / compute-1.yaml
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
5   Operating System from the Compute node's properties. Note, this example does not include default
6   values on inputs properties.
7
8 metadata:
9   template_name: compute-1
10   template_author: TOSCA Simple Profile in YAML
11   template_version: '1.0'
12
13 topology_template:
14
15   inputs:
16     cpus:
17       type: integer
18       description: Number of CPUs for the server.
19       constraints:
20         - valid_values: [ 1, 2, 4, 8 ]
21
22   node_templates:
23
24     my_server:
25       type: Compute
26       capabilities:
27         host:
28           properties:
29             disk_size: 10 GB
30             num_cpus: { get_input: cpus }
31             mem_size: 1 GB
32         os:
33           properties:
34             architecture: x86_64
35             type: Linux
36             distribution: ubuntu
37             version: 12.04
38
39   outputs:
40     private_ip:
41       description: The private IP address of the deployed server instance.
42       value: { get_attribute: [ my_server, private_address ] }