Bug: there is not segmentation_id in resource of
[parser.git] / tosca2heat / heat-translator / translator / tests / data / hot_output / hot_web_application.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   TOSCA simple profile with a web application.
5
6 parameters:
7   context_root:
8     type: string
9     description: Context root for installing the application.
10     default: my_web_app
11
12   cpus:
13     type: number
14     description: Number of CPUs for the server.
15     default: 2
16     constraints:
17     - allowed_values:
18       - 1
19       - 2
20       - 4
21       - 8
22
23 resources:
24   server:
25     type: OS::Nova::Server
26     properties:
27       flavor: m1.medium
28       image: ubuntu-software-config-os-init
29       user_data_format: SOFTWARE_CONFIG
30
31   web_server_create_deploy:
32     type: OS::Heat::SoftwareDeployment
33     properties:
34       config:
35         get_resource: web_server_create_config
36       server:
37         get_resource: server
38
39   web_server_create_config:
40     type: OS::Heat::SoftwareConfig
41     properties:
42       config:
43         get_file: web_server_install.sh
44       group: script
45
46   web_server_start_deploy:
47     type: OS::Heat::SoftwareDeployment
48     properties:
49       config:
50         get_resource: web_server_start_config
51       server:
52         get_resource: server
53     depends_on:
54     - web_server_create_deploy
55
56   web_server_start_config:
57     type: OS::Heat::SoftwareConfig
58     properties:
59       config:
60         get_file: web_server_start.sh
61       group: script
62
63   web_app_create_deploy:
64     type: OS::Heat::SoftwareDeployment
65     properties:
66       config:
67         get_resource: web_app_create_config
68       input_values:
69         context_root:
70           get_param: context_root
71       server:
72         get_resource: server
73     depends_on:
74     - web_server_start_deploy
75
76   web_app_create_config:
77     type: OS::Heat::SoftwareConfig
78     properties:
79       config:
80         get_file: web_app_install.sh
81       group: script
82
83   web_app_start_deploy:
84     type: OS::Heat::SoftwareDeployment
85     properties:
86       config:
87         get_resource: web_app_start_config
88       server:
89         get_resource: server
90     depends_on:
91     - web_app_create_deploy
92
93   web_app_start_config:
94     type: OS::Heat::SoftwareConfig
95     properties:
96       config:
97         get_file: web_app_start.sh
98       group: script
99
100 outputs: {}