Commit seed code for validation-scripts
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_servers_have_optional_metadata / pass / valid_heat_template_4.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 - only one optional field and 2 servers
44
45 parameters:
46   vf_module_id:
47     type: string
48     label: vf_module_id
49     description: Module ID for servers
50   vnf_id:
51     type: string
52     label: vnf_id
53     description: VNF ID for servers
54   vnf_name:
55     type: string
56     label: vnf_name
57     description: VNF name for servers
58   vm_role:
59     type: string
60     label: vf_role
61     description: Role of the server
62   vf_module_name:
63     type: string
64     label: vf_role
65     description: Module name for the server
66   vf_module_index:
67     type: string
68     label: vf_role
69     description: Module index for the server
70   example_server_name_0:
71     type: string
72     label: image
73     description: name for for server_0
74   example_server_name_1:
75     type: string
76     label: image
77     description: name for for server_1
78   example_server_image:
79     type: string
80     label: image
81     description: Glance image for server_0
82   example_server_flavor:
83     type: string
84     label: flavor
85     description: Flavor for server_0
86   example_rsg__count_0:
87     type: number
88     constraints:
89       - range: { min: 0, max: 10 }
90
91 resources:
92
93   example_rsg_0:
94       type: OS::Heat::ResourceGroup
95       count: { get_param: example_rsg__count_0 }
96       resource_def:
97           type: OS::Nova::Server
98           properties:
99             vf_module_id: { get_param: vf_module_id }
100             vnf_id: { get_param: vnf_id }
101             vnf_name: { get_param: vnf_name }
102             vm_role: { get_param: vm_role }
103             vf_module_name: { get_param: vf_module_name }
104             vf_module_index: { get_param: vf_module_index }