Synchronise the openstack bugs
[parser.git] / tosca2heat / heat-translator / translator / tests / data / hot_output / hot_software_component.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   TOSCA simple profile with a software component.
5
6 parameters:
7   cpus:
8     type: number
9     description: Number of CPUs for the server.
10     default: 1
11     constraints:
12     - allowed_values:
13       - 1
14       - 2
15       - 4
16       - 8
17
18 resources:
19   server:
20     type: OS::Nova::Server
21     properties:
22       flavor: m1.small
23       image: ubuntu-software-config-os-init
24       user_data_format: SOFTWARE_CONFIG
25
26   my_software_create_deploy:
27     type: OS::Heat::SoftwareDeployment
28     properties:
29       config:
30         get_resource: my_software_create_config
31       server:
32         get_resource: server
33
34   my_software_create_config:
35     type: OS::Heat::SoftwareConfig
36     properties:
37       config:
38         get_file: software_install.sh
39       group: script
40
41   my_software_start_deploy:
42     type: OS::Heat::SoftwareDeployment
43     properties:
44       config:
45         get_resource: my_software_start_config
46       server:
47         get_resource: server
48     depends_on:
49     - my_software_create_deploy
50
51   my_software_start_config:
52     type: OS::Heat::SoftwareConfig
53     properties:
54       config:
55         get_file: software_start.sh
56       group: script
57
58 outputs: {}