1 # ============LICENSE_START==========================================
2 # ===================================================================
3 # Copyright (c) 2017 AT&T
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #============LICENSE_END============================================
18 ###########################################################
19 # This Blueprint installs ONAP SO on Openstack
20 ###########################################################
22 tosca_definitions_version: cloudify_dsl_1_3
25 This blueprint creates a ONAP service orchestrator
28 - http://www.getcloudify.org/spec/cloudify/4.1/types.yaml
29 - http://cloudify.co/spec/openstack-plugin/2.2.0/plugin.yaml
30 - http://cloudify.co/spec/fabric-plugin/1.5/plugin.yaml
31 - http://www.getcloudify.org/spec/diamond-plugin/1.3.3/plugin.yaml
36 default: https://nexus.onap.org/content/sites/raw
40 default: nexus3.onap.org:10001
52 default: 1.1.0-SNAPSHOT
78 default: http://gerrit.onap.org/r/so/docker-config.git
85 A Ubuntu 16.04 image, along with the usual
87 default: Ubuntu 16.04 LTS Generic
91 A machine type with more than 2 CPUs, 4096 GB RAM, and 8 GB of disk space.
92 You might want to use 4 CPUs, 8192 MB RAM for the master.
98 User for connecting to agent VM
103 description: openstack security_group
108 OpenStack keypair name
123 description: username to authenticate to OpenStack
127 description: OpenStack tenant password for openstack_username user
129 openstack_tenant_name:
131 description: OpenStack tenant for VM deploy
135 description: Authentication URL for OpenStack
139 description: OpenStack region
142 openstack_credentials: &openstack_credentials
143 username: { get_input: openstack_username }
144 password: { get_input: openstack_password }
145 tenant_name: { get_input: openstack_tenant_name }
146 auth_url: { get_input: openstack_auth_url }
147 region: { get_input: openstack_region }
152 type: cloudify.openstack.nodes.KeyPair
154 private_key_path: { get_input: key_filename }
155 use_external_resource: true
156 resource_id: { get_input: keypair_name }
157 openstack_config: *openstack_credentials
160 type: cloudify.openstack.nodes.Network
162 use_external_resource: true
163 resource_id: { get_input: app_subnet }
164 openstack_config: *openstack_credentials
167 type: cloudify.openstack.nodes.Network
169 openstack_config: *openstack_credentials
170 use_external_resource: true
171 resource_id: { get_input: external_network}
174 type: cloudify.openstack.nodes.SecurityGroup
176 openstack_config: *openstack_credentials
177 use_external_resource: true
178 resource_id: { get_input: security_group }
181 type: cloudify.openstack.nodes.Port
183 openstack_config: *openstack_credentials
185 - type: cloudify.relationships.contained_in
187 - type: cloudify.openstack.port_connected_to_security_group
188 target: app_security_group
191 type: cloudify.openstack.nodes.FloatingIP
193 openstack_config: *openstack_credentials
195 cloudify.interfaces.lifecycle:
199 floating_network_name: { get_input: external_network }
202 type: cloudify.openstack.nodes.Server
204 openstack_config: *openstack_credentials
206 image: { get_input: image }
207 flavor: { get_input: flavor }
208 resource_id: { get_input: vm_instancename }
209 management_network_name: { get_input: app_subnet }
210 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }
212 - type: cloudify.openstack.server_connected_to_floating_ip
213 target: VM_001_floating_ip
214 - type: cloudify.openstack.server_connected_to_keypair
216 - type: cloudify.openstack.server_connected_to_port
217 target: VM_001_fixed_ip
221 type: cloudify.nodes.SoftwareComponent
224 cloudify.interfaces.lifecycle:
226 implementation: fabric.fabric_plugin.tasks.run_script
228 script_path: scripts/so.sh
232 [{ get_attribute: [VM_001_floating_ip, floating_ip_address]},
233 { get_attribute: [VM_001_fixed_ip, fixed_ip_address]},
234 { get_input: nexus_repo },
235 { get_input: docker_repo},
236 { get_input: nexus_username },
237 { get_input: nexus_password },
238 { get_input: artifacts_version },
239 { get_input: dns_ip},
240 { get_input: gerrit_branch },
242 { get_input: external_dns},
243 { get_input: dmaap_topic},
244 { get_input: openstack_username},
245 { get_input: openstack_tenant_name},
246 { get_input: openstack_password},
247 { get_input: openstack_region},
248 { get_input: openstack_auth_url},
249 { get_input: so_repo},
250 { get_input: docker_version }]
252 host_string: { get_attribute: [VM_001_floating_ip, floating_ip_address]}
253 user: { get_input: ssh_user }
254 key_filename: { get_input: key_filename }
256 - type: cloudify.relationships.contained_in
258 - type: cloudify.relationships.depends_on
259 target: VM_001_floating_ip
262 ONAP_Service_Orchestrator:
263 description: informations about Service Orchestrator
265 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }