1 ###########################################################
2 # This Blueprint installs ONAP Message Router on Openstack
3 ###########################################################
5 tosca_definitions_version: cloudify_dsl_1_3
8 This blueprint creates a ONAP Message Router
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
53 default: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git
60 A Ubuntu 14.04 image, along with the usual
62 default: Ubuntu 14.04 LTS Generic
66 A machine type with more than 2 CPUs, 4096 GB RAM, and 8 GB of disk space.
67 You might want to use 4 CPUs, 8192 MB RAM for the master.
73 User for connecting to agent VM
85 OpenStack keypair name
99 description: username to authenticate to OpenStack
103 description: OpenStack tenant password for openstack_username user
105 openstack_tenant_name:
107 description: OpenStack tenant for VM deploy
111 description: Authentication URL for OpenStack
115 description: OpenStack region
118 openstack_credentials: &openstack_credentials
119 username: { get_input: openstack_username }
120 password: { get_input: openstack_password }
121 tenant_name: { get_input: openstack_tenant_name }
122 auth_url: { get_input: openstack_auth_url }
123 region: { get_input: openstack_region }
128 type: cloudify.openstack.nodes.KeyPair
130 private_key_path: { get_input: key_filename }
131 use_external_resource: true
132 resource_id: { get_input: keypair_name }
133 openstack_config: *openstack_credentials
136 type: cloudify.openstack.nodes.Network
138 use_external_resource: true
139 resource_id: { get_input: app_subnet }
140 openstack_config: *openstack_credentials
143 type: cloudify.openstack.nodes.Network
145 openstack_config: *openstack_credentials
146 use_external_resource: true
147 resource_id: { get_input: external_network}
150 type: cloudify.openstack.nodes.SecurityGroup
152 openstack_config: *openstack_credentials
153 use_external_resource: true
154 resource_id: { get_input: security_group }
157 type: cloudify.openstack.nodes.Port
159 openstack_config: *openstack_credentials
161 - type: cloudify.relationships.contained_in
163 - type: cloudify.openstack.port_connected_to_security_group
164 target: app_security_group
167 type: cloudify.openstack.nodes.FloatingIP
169 openstack_config: *openstack_credentials
171 cloudify.interfaces.lifecycle:
175 floating_network_name: { get_input: external_network }
178 type: cloudify.openstack.nodes.Server
180 openstack_config: *openstack_credentials
182 image: { get_input: image }
183 flavor: { get_input: flavor }
184 resource_id: { get_input: vm_instancename }
185 management_network_name: { get_input: app_subnet }
186 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }
188 - type: cloudify.openstack.server_connected_to_floating_ip
189 target: VM_001_floating_ip
190 - type: cloudify.openstack.server_connected_to_keypair
192 - type: cloudify.openstack.server_connected_to_port
193 target: VM_001_fixed_ip
197 type: cloudify.nodes.SoftwareComponent
200 cloudify.interfaces.lifecycle:
202 implementation: fabric.fabric_plugin.tasks.run_script
204 script_path: scripts/messagerouter.sh
208 [{ get_attribute: [VM_001_floating_ip, floating_ip_address]},
209 { get_attribute: [VM_001_fixed_ip, fixed_ip_address]},
210 { get_input: nexus_repo },
211 { get_input: docker_repo},
212 { get_input: nexus_username },
213 { get_input: nexus_password },
214 { get_input: artifacts_version },
215 { get_input: dns_ip},
216 { get_input: gerrit_branch },
218 { get_input: external_dns},
219 { get_input: mr_repo}]
221 host_string: { get_attribute: [VM_001_floating_ip, floating_ip_address]}
222 user: { get_input: ssh_user }
223 key_filename: { get_input: key_filename }
225 - type: cloudify.relationships.contained_in
227 - type: cloudify.relationships.depends_on
228 target: VM_001_floating_ip
232 description: informations about Messgae Router
234 ip: { get_attribute: [VM_001_floating_ip, floating_ip_address] }