Azure-plugin not sending REST calls to Azure cloud
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / examples / tosca-simple-1.0 / use-cases / software-component-1 / software-component-1.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >-
4   TOSCA Simple Profile with a SoftwareComponent node with a declared Virtual machine (VM) deployment
5   artifact that automatically deploys to its host Compute node.
6
7 metadata:
8   template_name: software-component-1
9   template_author: TOSCA Simple Profile in YAML
10   template_version: '1.0'
11
12 imports:
13   - ../non-normative-types.yaml
14
15 topology_template:
16
17   # ARIA NOTE: missing in spec
18   inputs:
19     cpus:
20       type: integer
21       description: Number of CPUs for the server.
22       constraints:
23         - valid_values: [ 1, 2, 4, 8 ]
24
25   node_templates:
26
27     my_virtual_machine:
28       type: SoftwareComponent
29       artifacts:
30         my_vm_image:
31           file: images/fedora-18-x86_64.qcow2
32           type: tosca.artifacts.Deployment.Image.VM.QCOW2
33       requirements:
34         - host: my_server
35       # Automatically deploy the VM image referenced on the create operation
36       interfaces:
37         Standard:
38           create: my_vm_image
39
40     # Compute instance with no Operating System guest host
41     my_server:
42       type: Compute
43       capabilities:
44         # Note: no guest OperatingSystem requirements as these are in the image.
45         host:
46           properties:
47             disk_size: 10 GB
48             num_cpus: { get_input: cpus }
49             mem_size: 4 GB
50
51   outputs:
52     private_ip:
53       description: The private IP address of the deployed server instance.
54       value: { get_attribute: [ my_server, private_address ] }