Support python3 uploaded to pypi websit
[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       software_config_transport: POLL_SERVER_HEAT
31
32   web_server_create_deploy:
33     type: OS::Heat::SoftwareDeployment
34     properties:
35       config:
36         get_resource: web_server_create_config
37       server:
38         get_resource: server
39       signal_transport: HEAT_SIGNAL
40
41   web_server_create_config:
42     type: OS::Heat::SoftwareConfig
43     properties:
44       config:
45         get_file: web_server_install.sh
46       group: script
47
48   web_server_start_deploy:
49     type: OS::Heat::SoftwareDeployment
50     properties:
51       config:
52         get_resource: web_server_start_config
53       server:
54         get_resource: server
55       signal_transport: HEAT_SIGNAL
56     depends_on:
57     - web_server_create_deploy
58
59   web_server_start_config:
60     type: OS::Heat::SoftwareConfig
61     properties:
62       config:
63         get_file: web_server_start.sh
64       group: script
65
66   web_app_create_deploy:
67     type: OS::Heat::SoftwareDeployment
68     properties:
69       config:
70         get_resource: web_app_create_config
71       input_values:
72         context_root:
73           get_param: context_root
74       server:
75         get_resource: server
76       signal_transport: HEAT_SIGNAL
77     depends_on:
78     - web_server_start_deploy
79
80   web_app_create_config:
81     type: OS::Heat::SoftwareConfig
82     properties:
83       config:
84         get_file: web_app_install.sh
85       group: script
86
87   web_app_start_deploy:
88     type: OS::Heat::SoftwareDeployment
89     properties:
90       config:
91         get_resource: web_app_start_config
92       server:
93         get_resource: server
94       signal_transport: HEAT_SIGNAL
95     depends_on:
96     - web_app_create_deploy
97
98   web_app_start_config:
99     type: OS::Heat::SoftwareConfig
100     properties:
101       config:
102         get_file: web_app_start.sh
103       group: script
104
105 outputs: {}