Initial CDS blueprint for vFW CNF demo
[demo.git] / heat / vFW_CNF_CDS / templates / base / firewall.yaml
1 ##########################################################################
2 #
3 #==================LICENSE_START==========================================
4 #
5 #
6 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #        http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 #==================LICENSE_END============================================
20 #
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 #
23 ##########################################################################
24
25 heat_template_version: 2013-05-23
26
27 description: Dummy heat template for vFirewall
28
29 ##############
30 #            #
31 # PARAMETERS #
32 #            #
33 ##############
34
35 parameters:
36   vfw_image_name:
37     type: string
38     label: Image name or ID
39     description: Image to be used for compute instance
40   vfw_flavor_name:
41     type: string
42     label: Flavor
43     description: Type of instance (flavor) to be used
44   public_net_id:
45     type: string
46     label: Public network name or ID
47     description: Public network that enables remote connection to VNF
48   int_private1_net_id:
49     type: string
50     label: Unprotected private network name or ID
51     description: Private network that connects vPacketGenerator with vFirewall
52   int_private1_subnet_id:
53     type: string
54     label: Unprotected private subnetwork name or ID
55     description: Private subnetwork of the protected network
56   int_private1_net_cidr:
57     type: string
58     label: Unprotected private network CIDR
59     description: The CIDR of the unprotected private network
60   int_private2_net_id:
61     type: string
62     label: Protected private network name or ID
63     description: Private network that connects vFirewall with vSink
64   int_private2_subnet_id:
65     type: string
66     label: Protected private subnetwork name or ID
67     description: Private subnetwork of the unprotected network
68   int_private2_net_cidr:
69     type: string
70     label: Protected private network CIDR
71     description: The CIDR of the protected private network
72   onap_private_net_id:
73     type: string
74     label: ONAP management network name or ID
75     description: Private network that connects ONAP components and the VNF
76   onap_private_subnet_id:
77     type: string
78     label: ONAP management sub-network name or ID
79     description: Private sub-network that connects ONAP components and the VNF
80   onap_private_net_cidr:
81     type: string
82     label: ONAP private network CIDR
83     description: The CIDR of the protected private network
84   vfw_int_private1_ip_0:
85     type: string
86     label: vFirewall private IP address towards the unprotected network
87     description: Private IP address that is assigned to the vFirewall to communicate with the vPacketGenerator
88   vfw_int_private2_ip_0:
89     type: string
90     label: vFirewall private IP address towards the protected network
91     description: Private IP address that is assigned to the vFirewall to communicate with the vSink
92   vfw_onap_private_ip_0:
93     type: string
94     label: vFirewall private IP address towards the ONAP management network
95     description: Private IP address that is assigned to the vFirewall to communicate with ONAP components
96   vfw_int_private2_floating_ip:
97     type: string
98     label: vPacketGenerator private IP address towards the unprotected network
99     description: Private IP address that is assigned to the vPacketGenerator to communicate with the vFirewall
100   vfw_name_0:
101     type: string
102     label: vFirewall name
103     description: Name of the vFirewall
104   vnf_id:
105     type: string
106     label: VNF ID
107     description: The VNF ID is provided by ONAP
108   vnf_name:
109     type: string
110     label: VNF ID
111     description: The VNF ID is provided by ONAP
112   vf_module_id:
113     type: string
114     label: VF Module ID
115     description: The VF Module ID is provided by ONAP
116   dcae_collector_ip:
117     type: string
118     label: DCAE collector IP address
119     description: IP address of the DCAE collector
120   dcae_collector_port:
121     type: string
122     label: DCAE collector port
123     description: Port of the DCAE collector
124   key_name:
125     type: string
126     label: Key pair name
127     description: Public/Private key pair name
128   install_script_version:
129     type: string
130     label: Installation script version number
131     description: Version number of the scripts that install the vFW demo app
132   demo_artifacts_version:
133     type: string
134     label: Artifacts version used in demo vnfs
135     description: Artifacts (jar, tar.gz) version used in demo vnfs
136   nexus_artifact_repo:
137     type: string
138     description: Root URL for the Nexus repository for Maven artifacts.
139   #  default: "https://nexus.onap.org"
140   cloud_env:
141     type: string
142     label: Cloud environment
143     description: Cloud environment (e.g., openstack, rackspace)
144   sec_group:
145     type: string
146     description: ONAP Security Group
147
148
149 #############
150 #           #
151 # RESOURCES #
152 #           #
153 #############
154
155 resources:
156   dummy:
157     type: OS::Heat::None
158     properties:
159       vfw_image_name:
160         get_param: vfw_image_name
161       vfw_flavor_name:
162         get_param: vfw_flavor_name
163       public_net_id:
164         get_param: public_net_id
165       int_private1_net_id:
166         get_param: int_private1_net_id
167       int_private1_subnet_id:
168         get_param: int_private1_subnet_id
169       int_private1_net_cidr:
170         get_param: int_private1_net_cidr
171       int_private2_net_id:
172         get_param: int_private2_net_id
173       int_private2_subnet_id:
174         get_param: int_private2_subnet_id
175       int_private2_net_cidr:
176         get_param: int_private2_net_cidr
177       onap_private_net_id:
178         get_param: onap_private_net_id
179       onap_private_subnet_id:
180         get_param: onap_private_subnet_id
181       onap_private_net_cidr:
182         get_param: onap_private_net_cidr
183       vfw_int_private1_ip_0:
184         get_param: vfw_int_private1_ip_0
185       vfw_int_private2_ip_0:
186         get_param: vfw_int_private2_ip_0
187       vfw_onap_private_ip_0:
188         get_param: vfw_onap_private_ip_0
189       vfw_int_private2_floating_ip:
190         get_param: vfw_int_private2_floating_ip
191       vfw_name_0:
192         get_param: vfw_name_0
193       vnf_id:
194         get_param: vnf_id
195       vnf_name:
196         get_param: vnf_name
197       vf_module_id:
198         get_param: vf_module_id
199       dcae_collector_ip:
200         get_param: dcae_collector_ip
201       dcae_collector_port:
202         get_param: dcae_collector_port
203       key_name:
204         get_param: key_name
205       install_script_version:
206         get_param: install_script_version
207       demo_artifacts_version:
208         get_param: demo_artifacts_version
209       nexus_artifact_repo:
210         get_param: nexus_artifact_repo
211       cloud_env:
212         get_param: cloud_env
213       sec_group:
214         get_param: sec_group