Commit seed code for validation-scripts
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_heat_template_and_env_file_extension / pass / valid_heat_template.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
7 #
8 # Unless otherwise specified, all software contained herein is licensed
9 # under the Apache License, Version 2.0 (the “License”);
10 # you may not use this software except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #             http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 #
21 #
22 #
23 # Unless otherwise specified, all documentation contained herein is licensed
24 # under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
25 # you may not use this documentation except in compliance with the License.
26 # You may obtain a copy of the License at
27 #
28 #             https://creativecommons.org/licenses/by/4.0/
29 #
30 # Unless required by applicable law or agreed to in writing, documentation
31 # distributed under the License is distributed on an "AS IS" BASIS,
32 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 # See the License for the specific language governing permissions and
34 # limitations under the License.
35 #
36 # ============LICENSE_END============================================
37 #
38 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 #
40 ---
41 heat_template_version: 2015-04-30
42
43 description: Simple template to deploy a single compute instance
44
45 parameter_groups:
46   - label: human-readable label of parameter group
47     description: description of the parameter group
48     parameters:
49     - pga
50     - pgb
51
52 parameters:
53   b:
54     type: string
55     label: Key Name
56     description: Name of key-pair to be used for compute instance
57   c:
58     type: string
59     label: Key Name
60     description: Name of key-pair to be used for compute instance
61   d:
62     type: string
63     label: Key Name
64     description: Name of key-pair to be used for compute instance
65
66 resources:
67   my_instance:
68     type: OS::Nova::Server
69     properties:
70       key_name: my_key
71       image: F18-x86_64-cfntools
72       flavor: m1.small
73
74 outputs:
75   instance_ip:
76     description: The IP address of the deployed instance
77     value: { get_attr: [my_instance, first_address] }
78
79 conditions:
80   cd1: True
81   cd2:
82     get_param: param1
83   cd3:
84     equals:
85     - get_param: param2
86     - yes
87   cd4:
88     not:
89       equals:
90       - get_param: param3
91       - yes
92   cd5:
93     and:
94     - equals:
95       - get_param: env_type
96       - prod
97     - not:
98         equals:
99         - get_param: zone
100         - beijing
101   cd6:
102     or:
103     - equals:
104       - get_param: zone
105       - shanghai
106     - equals:
107       - get_param: zone
108       - beijing
109   cd7:
110     not: cd4
111   cd8:
112     and:
113     - cd1
114     - cd2a