e85240219ff7b81cf7c2cdf6d8fb6bf0e708e84b
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_referenced_and_defined_parameters_match / pass / params_referenced_are_defined_and_vice_versa_1.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   ex1_server_index_0:
86     type: number
87     label: server index
88     description: Index of server
89     constraint:
90       - range: { min: 1, max: 100 }
91   ex1_server_info:
92     type: json
93     label: Json containing server index
94     description: Json containing the index of server
95
96 resources:
97   ex_software_config_0:
98     type: OS::Heat::SoftwareConfig
99     properties:
100       group: ungrouped
101       config:
102           params:
103             $stack_name: { get_param: 'OS::stack_name' }
104
105   ex_nova_server_0:
106     type: OS::Nova::Server
107     properties:
108       name: { get_param: ex_vm_name }
109       metadata:
110         vnf_id: { get_param: vnf_id }
111         vf_module_id: { get_param: vf_module_id }
112         vnf_name: { get_param: vnf_name }
113         metering.stack: { get_param: "OS::stack_id" }
114         project_id: { get_param: "OS::project_id" }
115       image: { get_param: ex_image_name }
116       flavor: { get_param: ex_flavor_name }
117       key_name: { get_param: ex_key }
118       user_data:
119         get_resource: ex_software_config_0
120
121   ex1_nova_server_0:
122     type: OS::Nova::Server
123     properties:
124       name: { get_param: [ ex1_vm_names, 0 ] }
125       metadata:
126         vnf_id: { get_param: vnf_id }
127         vf_module_id: { get_param: vf_module_id }
128         vnf_name: { get_param: vnf_name }
129       image: { get_param: ex1_image_name}
130       flavor: { get_param: ex1_flavor_name }
131       key_name: { get_param: ex1_key }
132
133   ex1_nova_server_1:
134     type: OS::Nova::Server
135     properties:
136       name: { get_param: [ ex1_vm_names, { get_param: ex1_server_index_0 } ] }
137       metadata:
138         vnf_id: { get_param: vnf_id }
139         vf_module_id: { get_param: vf_module_id }
140         vnf_name: { get_param: vnf_name }
141       image: { get_param: ex1_image_name}
142       flavor: { get_param: ex1_flavor_name }
143       key_name: { get_param: ex1_key }
144   ex1_nova_server_2:
145     type: OS::Nova::Server
146     properties:
147       name:
148         get_param:
149         - ex1_vm_names
150         - get_param:
151           - ex1_server_info
152           - ex1_server_metadata
153           - ex1_server_index_1
154       metadata:
155         vnf_id: { get_param: vnf_id }
156         vf_module_id: { get_param: vf_module_id }
157         vnf_name: { get_param: vnf_name }
158       image: { get_param: ex1_image_name}
159       flavor: { get_param: ex1_flavor_name }
160       key_name: { get_param: ex1_key }