1 ###########################################################
2 # This Blueprint installs ONAP appc on Openstack
3 ###########################################################
5 tosca_definitions_version: cloudify_dsl_1_3
8 This blueprint creates a ONAP APP-C
11 - http://www.getcloudify.org/spec/cloudify/4.1/types.yaml
12 - http://cloudify.co/spec/openstack-plugin/2.2.0/plugin.yaml
13 - http://cloudify.co/spec/fabric-plugin/1.5/plugin.yaml
14 - http://www.getcloudify.org/spec/diamond-plugin/1.3.3/plugin.yaml
19 default: https://nexus.onap.org/content/sites/raw
23 default: nexus3.onap.org:10001
35 default: 1.1.0-SNAPSHOT
61 default: http://gerrit.onap.org/r/appc/deployment.git
68 A Ubuntu 14.04 image, along with the usual
70 default: Ubuntu 14.04 LTS Generic
74 A machine type with more than 2 CPUs, 4096 GB RAM, and 8 GB of disk space.
75 You might want to use 4 CPUs, 8192 MB RAM for the master.
81 User for connecting to agent VM
86 description: openstack security_group
91 OpenStack keypair name
106 description: username to authenticate to OpenStack
110 description: OpenStack tenant password for openstack_username user
112 openstack_tenant_name:
114 description: OpenStack tenant for VM deploy
118 description: Authentication URL for OpenStack
122 description: OpenStack region
129 openstack_credentials: &openstack_credentials
130 username: { get_input: openstack_username }
131 password: { get_input: openstack_password }
132 tenant_name: { get_input: openstack_tenant_name }
133 auth_url: { get_input: openstack_auth_url }
134 region: { get_input: openstack_region }
139 type: cloudify.openstack.nodes.KeyPair
141 private_key_path: { get_input: key_filename }
142 use_external_resource: true
143 resource_id: { get_input: keypair_name }
144 openstack_config: *openstack_credentials
147 type: cloudify.openstack.nodes.Network
149 use_external_resource: true
150 resource_id: { get_input: app_subnet }
151 openstack_config: *openstack_credentials
154 type: cloudify.openstack.nodes.Network
156 openstack_config: *openstack_credentials
157 use_external_resource: true
158 resource_id: { get_input: external_network}
161 type: cloudify.openstack.nodes.SecurityGroup
163 openstack_config: *openstack_credentials
164 use_external_resource: true
165 resource_id: { get_input: security_group }
168 type: cloudify.openstack.nodes.Port
170 openstack_config: *openstack_credentials
172 - type: cloudify.relationships.contained_in
174 - type: cloudify.openstack.port_connected_to_security_group
175 target: app_security_group
178 type: cloudify.openstack.nodes.FloatingIP
180 openstack_config: *openstack_credentials
182 cloudify.interfaces.lifecycle:
186 floating_network_name: { get_input: external_network }
189 type: cloudify.openstack.nodes.Server
191 openstack_config: *openstack_credentials
193 image: { get_input: image }
194 flavor: { get_input: flavor }
195 resource_id: { get_input: vm_instancename }
196 management_network_name: { get_input: app_subnet }
197 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }
199 - type: cloudify.openstack.server_connected_to_floating_ip
200 target: VM_001_floating_ip
201 - type: cloudify.openstack.server_connected_to_keypair
203 - type: cloudify.openstack.server_connected_to_port
204 target: VM_001_fixed_ip
208 type: cloudify.nodes.SoftwareComponent
211 cloudify.interfaces.lifecycle:
213 implementation: fabric.fabric_plugin.tasks.run_script
215 script_path: scripts/appc.sh
219 [{ get_attribute: [VM_001_floating_ip, floating_ip_address]},
220 { get_attribute: [VM_001_fixed_ip, fixed_ip_address]},
221 { get_input: nexus_repo },
222 { get_input: docker_repo},
223 { get_input: nexus_username },
224 { get_input: nexus_password },
225 { get_input: artifacts_version },
226 { get_input: dns_ip},
227 { get_input: gerrit_branch },
229 { get_input: external_dns},
230 { get_input: dmaap_topic},
231 { get_input: openstack_username},
232 { get_input: openstack_tenant_name},
233 { get_input: openstack_password},
234 { get_input: openstack_region},
235 { get_input: openstack_auth_url},
236 { get_input: appc_repo},
237 { get_input: docker_version },
238 { get_input: dgbuilder_docker}]
240 host_string: { get_attribute: [VM_001_floating_ip, floating_ip_address]}
241 user: { get_input: ssh_user }
242 key_filename: { get_input: key_filename }
244 - type: cloudify.relationships.contained_in
246 - type: cloudify.relationships.depends_on
247 target: VM_001_floating_ip
251 description: informations about app-c
253 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }