ff8421f4382397fa30e294ea83d883e688761a3e
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_referenced_and_defined_parameters_match / pass / params_referenced_are_defined_and_vice_versa_2.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: 2013-05-23
42
43 description: Simple template to deploy a single compute instance
44
45 parameters:
46   vnf_id:
47     description: Unique ID for this VNF
48     type: string
49   vf_module_id:
50     description: Unique ID for this VF module
51     type: string
52   vnf_name:
53     type: string
54     description: Unique name for this VNF instance
55   ex_image_name:
56     type: string
57     label: Image name or ID
58     description: Image to be used for compute instance
59   ex_flavor_name:
60     type: string
61     label: Flavor
62     description: Type of instance (flavor) to be used
63   ex_key:
64     type: string
65     label: key pair
66     description: Name of the key apir the nova server will use
67   ex_vm_name:
68     type: string
69     description: Name of the VM
70   ex1_vm_names:
71     type: comma_delimited_list
72     description: Name of the VM
73   ex1_image_name:
74     type: string
75     label: Image name or ID
76     description: Image to be used for compute instance
77   ex1_flavor_name:
78     type: string
79     label: Flavor
80     description: Type of instance (flavor) to be used
81   ex1_key:
82     type: string
83     label: key pair
84     description: Name of the key apir the nova server will use
85   int_network_net_id:
86     type: string
87     label: Network name
88     description: Name of the network the nova server will connect to
89   ex1_server_index:
90     type: number
91     label: server index
92     description: Index of server
93     constraint:
94       - range: { min: 1, max: 100 }
95   availability_zone_0:
96     type: string
97     description: availabilityzone name
98   availability_zone_1:
99     type: string
100     description: availabilityzone name
101
102 resources:
103   ex_software_config_0:
104     type: OS::Heat::SoftwareConfig
105     properties:
106       group: ungrouped
107       config:
108           params:
109             $stack_name: { get_param: 'OS::stack_name' }
110
111   ex_nova_serverGroup:
112     type: OS::Nova::ServerGroup
113     properties:
114       vnf_id: { get_param: vnf_id }
115       vf_module_id:  { get_param: vf_module_id }
116       vnf_name:  { get_param: vnf_name }
117       availability_zones: { list_join: [',', [ { get_param: availability_zone_0 }, { get_param: availability_zone_1 } ] ] }
118
119   ex_nova_server_0:
120     type: OS::Nova::Server
121     properties:
122       name: { get_param: ex_vm_name }
123       metadata:
124         vnf_id: { get_param: vnf_id }
125         vf_module_id: { get_param: vf_module_id }
126         vnf_name: { get_param: vnf_name }
127       image: { get_param: ex_image_name }
128       flavor: { get_param: ex_flavor_name }
129       key_name: { get_param: ex_key }
130       networks:
131           - network: { get_param: int_network_net_id }
132       user_data:
133         get_resource: ex_software_config_0
134
135   ex1_nova_server_0:
136     type: OS::Nova::Server
137     properties:
138       name: { get_param: [ ex1_vm_names, 0 ] }
139       metadata:
140         vnf_id: { get_param: vnf_id }
141         vf_module_id: { get_param: vf_module_id }
142         vnf_name: { get_param: vnf_name }
143       image: { get_param: ex1_image_name}
144       flavor: { get_param: ex1_flavor_name }
145       key_name: { get_param: ex1_key }
146
147   ex1_nova_server_1:
148     type: OS::Nova::Server
149     properties:
150       name: { get_param: [ ex1_vm_names, { get_param: ex1_server_index } ] }
151       metadata:
152         vnf_id: { get_param: vnf_id }
153         vf_module_id: { get_param: vf_module_id }
154         vnf_name: { get_param: vnf_name }
155       image: { get_param: ex1_image_name}
156       flavor: { get_param: ex1_flavor_name }
157       key_name: { get_param: ex1_key }