Merge "Add DMaaP IP into UUI docker run parameters"
[demo.git] / heat / ONAP / onap_rackspace.yaml
1 ##########################################################################
2 #
3 #==================LICENSE_START==========================================
4
5 #
6 # Copyright (c) 2017 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: Heat template to deploy ONAP components
28
29 parameters:
30
31   # Generic parameters used across all ONAP components
32   public_net_id:
33     type: string
34     description: Public network that enables remote connection to the compute instance
35
36   key_name:
37     type: string
38     description: Public/Private key pair name
39
40   vm_base_name:
41     type: string
42     description: Base name of ONAP VMs
43
44   pub_key:
45     type: string
46     description: Public key or SSL certificate to be installed on the compute instance
47
48   nexus_repo:
49     type: string
50     description: Complete URL for the Nexus repository.
51
52   nexus_docker_repo:
53     type: string
54     description: Complete URL for the Nexus repository for docker images.
55
56   nexus_username:
57     type: string
58     description: Nexus Repository username
59
60   nexus_password:
61     type: string
62     description: Nexus Repository Password
63
64   openstack_tenant_id:
65     type: string
66     description: Rackspace tenant ID
67
68   openstack_username:
69     type: string
70     description: Rackspace username
71
72   openstack_api_key:
73     type: string
74     description: Rackspace API Key
75
76   openstack_password:
77     type: string
78     description: Rackspace Password
79
80   openstack_auth_method:
81     type: string
82     description: Openstack authentication method (password VS. api-key)
83
84   dmaap_topic:
85     type: string
86     description: DMaaP topic name
87
88   artifacts_version:
89     type: string
90     description: Artifacts version of ONAP components
91
92   cloud_env:
93     type: string
94     description: Cloud Provider Name
95
96
97   # Parameters for DCAE instantiation
98   dcae_base_environment:
99     type: string
100     description: DCAE Base Environment configuration (for this template, only RACKSPACE is supported)
101
102   dcae_zone:
103     type: string
104     description: DCAE Zone to use in VM names created by DCAE controller
105
106   dcae_state:
107     type: string
108     description: DCAE State to use in VM names created by DCAE controller
109
110   nexus_repo_root:
111     type: string
112     description: Root URL of nexus repository
113
114   nexus_url_snapshot:
115     type: string
116     description: Snapshot of Maven repository
117
118   openstack_region:
119     type: string
120     description: Rackspace region where the DCAE controller will spin the VMs
121
122   gitlab_branch:
123     type: string
124     description: Branch of the Gitlab repository
125
126   dcae_code_version:
127     type: string
128     description: DCAE Code Version Number
129
130   dcae_ip_addr:
131     type: string
132     description: DCAE IP Address
133  
134   dcae_coll_ip_addr:
135     type: string
136     description: DCAE Collector IP Address
137
138   dcae_db_ip_addr:
139     type: string
140     description: DCAE Database IP Address
141
142   dcae_hdp1_ip_addr:
143     type: string
144     description: Hadoop VM1 IP Address
145
146   dcae_hdp2_ip_addr:
147     type: string
148     description: Hadoop VM2 IP Address
149
150   dcae_hdp3_ip_addr:
151     type: string
152     description: Hadoop VM3 IP Address
153
154   # ONAP repositories, docker versions, and Gerrit branches
155   aai_repo:
156     type: string
157   appc_repo:
158     type: string
159   dcae_repo:
160     type: string
161   mr_repo:
162     type: string
163   so_repo:
164     type: string
165   policy_repo:
166     type: string
167   portal_repo:
168     type: string
169   robot_repo:
170     type: string
171   sdc_repo:
172     type: string
173   sdnc_repo:
174     type: string
175   vid_repo:
176     type: string
177   clamp_repo:
178     type: string
179
180   aai_docker:
181     type: string
182   appc_docker:
183     type: string
184   so_docker:
185     type: string
186   mr_docker:
187     type: string
188   dcae_docker:
189     type: string
190   policy_docker:
191     type: string
192   portal_docker:
193     type: string
194   robot_docker:
195     type: string
196   sdc_docker:
197     type: string
198   sdnc_docker:
199     type: string
200   vid_docker:
201     type: string
202   clamp_docker:
203     type: string
204   dgbuilder_docker:
205     type: string
206   cli_docker:
207     type: string
208
209   aai_branch:
210     type: string
211   appc_branch:
212     type: string
213   so_branch:
214     type: string
215   mr_branch:
216     type: string
217   dcae_branch:
218     type: string
219   policy_branch:
220     type: string
221   portal_branch:
222     type: string
223   robot_branch:
224     type: string
225   sdc_branch:
226     type: string
227   sdnc_branch:
228     type: string
229   vid_branch:
230     type: string
231   clamp_branch:
232     type: string
233
234
235 resources:
236   random-str:
237     type: OS::Heat::RandomString
238     properties:
239       length: 4
240
241   # Public key used to access ONAP components
242   vm_key:
243     type: OS::Nova::KeyPair
244     properties:
245       name:
246         str_replace:
247           template: base_rand
248           params:
249             base: { get_param: key_name }
250             rand: { get_resource: random-str }
251       public_key: { get_param: pub_key }
252       save_private_key: false
253
254
255   # ONAP management private network
256   oam_onap:
257     type: OS::Neutron::Net
258     properties:
259       name:
260         str_replace:
261           template: oam_onap_rand
262           params:
263             rand: { get_resource: random-str }
264
265   oam_onap_subnet:
266     type: OS::Neutron::Subnet
267     properties:
268       name:
269         str_replace:
270           template: oam_onap_rand
271           params:
272             rand: { get_resource: random-str }
273       network_id: { get_resource: oam_onap }
274       cidr: 10.0.0.0/16
275
276
277   # DNS Server instantiation
278   dns_private_port:
279     type: OS::Neutron::Port
280     properties:
281       network: { get_resource: oam_onap }
282       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.0.1}]
283
284   dns_vm:
285     type: OS::Nova::Server
286     properties:
287       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
288       flavor: 4 GB General Purpose v1
289       name:
290         str_replace:
291           template: base-dns-server
292           params:
293             base: { get_param: vm_base_name }
294       key_name: { get_resource: vm_key }
295       networks:
296         - network: { get_param: public_net_id }
297         - port: { get_resource: dns_private_port }
298       user_data_format: RAW
299       user_data:
300         str_replace:
301           params:
302             __nexus_repo__: { get_param: nexus_repo }
303             __artifacts_version__: { get_param: artifacts_version }
304             __cloud_env__: { get_param: cloud_env }
305           template: |
306             #!/bin/bash
307
308             # Create configuration files
309             mkdir -p /opt/config
310             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
311             echo "__cloud_env__" > /opt/config/cloud_env.txt
312             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
313
314             # Download and run install script
315             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dns_install.sh -o /opt/dns_install.sh
316             cd /opt
317             chmod +x dns_install.sh
318             ./dns_install.sh
319
320
321   # A&AI instantiation (2 VMs)
322   aai1_private_port:
323     type: OS::Neutron::Port
324     properties:
325       network: { get_resource: oam_onap }
326       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.1}]
327
328   aai1_volume:
329     type: OS::Cinder::Volume
330     properties:
331       name: vol1-aai
332       size: 50
333       volume_type: SSD
334       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
335
336   aai1_vm:
337     type: OS::Nova::Server
338     depends_on: aai2_vm
339     properties:
340       flavor: 15 GB Compute v1
341       name:
342         str_replace:
343           template: base-aai-inst1
344           params:
345             base: { get_param: vm_base_name }
346       key_name: { get_resource: vm_key }
347       block_device_mapping:
348         - volume_id: { get_resource: aai1_volume }
349           device_name: vda
350       networks:
351         - network: { get_param: public_net_id }
352         - port: { get_resource: aai1_private_port }
353       user_data_format: RAW
354       user_data:
355         str_replace:
356           params:
357             __nexus_repo__: { get_param: nexus_repo }
358             __nexus_docker_repo__: { get_param: nexus_docker_repo }
359             __nexus_username__: { get_param: nexus_username }
360             __nexus_password__: { get_param: nexus_password }
361             __dmaap_topic__: { get_param: dmaap_topic }
362             __artifacts_version__: { get_param: artifacts_version }
363             __docker_version__: { get_param: aai_docker }
364             __gerrit_branch__: { get_param: aai_branch }
365             __cloud_env__: { get_param: cloud_env }
366             __aai_repo__: { get_param: aai_repo }
367           template: |
368             #!/bin/bash
369
370             # Create configuration files
371             mkdir -p /opt/config
372             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
373             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
374             echo "__nexus_username__" > /opt/config/nexus_username.txt
375             echo "__nexus_password__" > /opt/config/nexus_password.txt
376             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
377             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
378             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
379             echo "__docker_version__" > /opt/config/docker_version.txt
380             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
381             echo "aai_instance_1" > /opt/config/aai_instance.txt
382             echo "__cloud_env__" > /opt/config/cloud_env.txt
383             echo "__aai_repo__" > /opt/config/remote_repo.txt
384
385             # Download and run install script
386             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
387             cd /opt
388             chmod +x aai_install.sh
389             ./aai_install.sh
390
391
392   aai2_private_port:
393     type: OS::Neutron::Port
394     properties:
395       network: { get_resource: oam_onap }
396       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.1.2}]
397
398   aai2_volume:
399     type: OS::Cinder::Volume
400     properties:
401       name: vol2-aai
402       size: 50
403       volume_type: SSD
404       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
405
406   aai2_vm:
407     type: OS::Nova::Server
408     properties:
409       flavor: 15 GB Compute v1
410       name:
411         str_replace:
412           template: base-aai-inst2
413           params:
414             base: { get_param: vm_base_name }
415       key_name: { get_resource: vm_key }
416       block_device_mapping:
417         - volume_id: { get_resource: aai2_volume }
418           device_name: vda
419       networks:
420         - network: { get_param: public_net_id }
421         - port: { get_resource: aai2_private_port }
422       user_data_format: RAW
423       user_data:
424         str_replace:
425           params:
426             __nexus_repo__: { get_param: nexus_repo }
427             __nexus_docker_repo__: { get_param: nexus_docker_repo }
428             __nexus_username__: { get_param: nexus_username }
429             __nexus_password__: { get_param: nexus_password }
430             __dmaap_topic__: { get_param: dmaap_topic }
431             __artifacts_version__: { get_param: artifacts_version }
432             __docker_version__: { get_param: aai_docker }
433             __gerrit_branch__: { get_param: aai_branch }
434             __cloud_env__: { get_param: cloud_env }
435             __aai_repo__: { get_param: aai_repo }
436           template: |
437             #!/bin/bash
438
439             # Create configuration files
440             mkdir -p /opt/config
441             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
442             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
443             echo "__nexus_username__" > /opt/config/nexus_username.txt
444             echo "__nexus_password__" > /opt/config/nexus_password.txt
445             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
446             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
447             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
448             echo "__docker_version__" > /opt/config/docker_version.txt
449             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
450             echo "aai_instance_2" > /opt/config/aai_instance.txt
451             echo "__cloud_env__" > /opt/config/cloud_env.txt
452             echo "__aai_repo__" > /opt/config/remote_repo.txt
453
454             # Download and run install script
455             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/aai_install.sh -o /opt/aai_install.sh
456             cd /opt
457             chmod +x aai_install.sh
458             ./aai_install.sh
459
460
461   # SO instantiation
462   so_private_port:
463     type: OS::Neutron::Port
464     properties:
465       network: { get_resource: oam_onap }
466       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.5.1}]
467
468   so_vm:
469     type: OS::Nova::Server
470     properties:
471       image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
472       flavor: 4 GB General Purpose v1
473       name:
474         str_replace:
475           template: base-so
476           params:
477             base: { get_param: vm_base_name }
478       key_name: { get_resource: vm_key }
479       networks:
480         - network: { get_param: public_net_id }
481         - port: { get_resource: so_private_port }
482       user_data_format: RAW
483       user_data:
484         str_replace:
485           params:
486             __nexus_repo__: { get_param: nexus_repo }
487             __nexus_docker_repo__: { get_param: nexus_docker_repo }
488             __nexus_username__: { get_param: nexus_username }
489             __nexus_password__: { get_param: nexus_password }
490             __openstack_username__: { get_param: openstack_username }
491             __openstack_tenant_id__: { get_param: openstack_tenant_id }
492             __openstack_api_key__: { get_param: openstack_api_key }
493             __dmaap_topic__: { get_param: dmaap_topic }
494             __artifacts_version__: { get_param: artifacts_version }
495             __docker_version__: { get_param: so_docker }
496             __gerrit_branch__: { get_param: so_branch }
497             __cloud_env__: { get_param: cloud_env }
498             __so_repo__: { get_param: so_repo }
499           template: |
500             #!/bin/bash
501
502             # Create configuration files
503             mkdir -p /opt/config
504             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
505             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
506             echo "__nexus_username__" > /opt/config/nexus_username.txt
507             echo "__nexus_password__" > /opt/config/nexus_password.txt
508             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
509             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
510             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
511             echo "__openstack_username__" > /opt/config/openstack_username.txt
512             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
513             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
514             echo "__docker_version__" > /opt/config/docker_version.txt
515             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
516             echo "__cloud_env__" > /opt/config/cloud_env.txt
517             echo "__so_repo__" > /opt/config/remote_repo.txt
518
519             # Download and run install script
520             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/so_install.sh -o /opt/so_install.sh
521             cd /opt
522             chmod +x so_install.sh
523             ./so_install.sh
524
525
526   # Message Router instantiation
527   mrouter_private_port:
528     type: OS::Neutron::Port
529     properties:
530       network: { get_resource: oam_onap }
531       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.11.1}]
532
533   mrouter_vm:
534     type: OS::Nova::Server
535     properties:
536       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
537       flavor: 15 GB I/O v1
538       name:
539         str_replace:
540           template: base-message-router
541           params:
542             base: { get_param: vm_base_name }
543       key_name: { get_resource: vm_key }
544       networks:
545         - network: { get_param: public_net_id }
546         - port: { get_resource: mrouter_private_port }
547       user_data_format: RAW
548       user_data:
549         str_replace:
550           params:
551             __nexus_repo__: { get_param: nexus_repo }
552             __nexus_docker_repo__: { get_param: nexus_docker_repo }
553             __nexus_username__: { get_param: nexus_username }
554             __nexus_password__: { get_param: nexus_password }
555             __artifacts_version__: { get_param: artifacts_version }
556             __gerrit_branch__: { get_param: mr_branch }
557             __cloud_env__: { get_param: cloud_env }
558             __mr_repo__: { get_param: mr_repo }
559           template: |
560             #!/bin/bash
561
562             # Create configuration files
563             mkdir -p /opt/config
564             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
565             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
566             echo "__nexus_username__" > /opt/config/nexus_username.txt
567             echo "__nexus_password__" > /opt/config/nexus_password.txt
568             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
569             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
570             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
571             echo "__cloud_env__" > /opt/config/cloud_env.txt
572             echo "__mr_repo__" > /opt/config/remote_repo.txt
573
574             # Download and run install script
575             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/mr_install.sh -o /opt/mr_install.sh
576             cd /opt
577             chmod +x mr_install.sh
578             ./mr_install.sh
579
580
581   # RobotE2E instantiation
582   robot_private_port:
583     type: OS::Neutron::Port
584     properties:
585       network: { get_resource: oam_onap }
586       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.10.1}]
587
588   robot_vm:
589     type: OS::Nova::Server
590     properties:
591       image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
592       flavor: 2 GB General Purpose v1
593       name:
594         str_replace:
595           template: base-robot
596           params:
597             base: { get_param: vm_base_name }
598       key_name: { get_resource: vm_key }
599       networks:
600         - network: { get_param: public_net_id }
601         - port: { get_resource: robot_private_port }
602       user_data_format: RAW
603       user_data:
604         str_replace:
605           params:
606             __nexus_repo__: { get_param: nexus_repo }
607             __nexus_docker_repo__: { get_param: nexus_docker_repo }
608             __nexus_username__: { get_param: nexus_username }
609             __nexus_password__: { get_param: nexus_password }
610             __network_name__: { get_attr: [oam_onap, name] }
611             __openstack_username__: { get_param: openstack_username }
612             __openstack_api_key__: { get_param : openstack_api_key }
613             __openstack_password__: { get_param: openstack_password }
614             __openstack_tenant_id__: { get_param: openstack_tenant_id }
615             __artifacts_version__: { get_param: artifacts_version }
616             __openstack_region__: { get_param: openstack_region }
617             __docker_version__: { get_param: robot_docker }
618             __gerrit_branch__: { get_param: robot_branch }
619             __cloud_env__: { get_param: cloud_env }
620             __robot_repo__: { get_param: robot_repo }
621           template: |
622             #!/bin/bash
623
624             # Create configuration files
625             mkdir -p /opt/config
626             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
627             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
628             echo "__nexus_username__" > /opt/config/nexus_username.txt
629             echo "__nexus_password__" > /opt/config/nexus_password.txt
630             echo "__network_name__" > /opt/config/network.txt
631             echo "__openstack_username__" > /opt/config/openstack_username.txt
632             echo "__openstack_password__" > /opt/config/openstack_password.txt
633             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
634             echo "__openstack_tenant_id__" > /opt/config/openstack_tenant_id.txt
635             echo "__openstack_region__" > /opt/config/region.txt
636             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
637             echo "__docker_version__" > /opt/config/docker_version.txt
638             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
639             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
640             echo "https://identity.api.rackspacecloud.com/v2.0" > /opt/config/keystone.txt
641             echo "10.0.1.1" > /opt/config/aai1_ip_addr.txt
642             echo "10.0.1.2" > /opt/config/aai2_ip_addr.txt
643             echo "10.0.2.1" > /opt/config/appc_ip_addr.txt
644             echo "10.0.4.1" > /opt/config/dcae_ip_addr.txt
645             echo "10.0.5.1" > /opt/config/so_ip_addr.txt
646             echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
647             echo "10.0.6.1" > /opt/config/policy_ip_addr.txt
648             echo "10.0.9.1" > /opt/config/portal_ip_addr.txt
649             echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt
650             echo "10.0.7.1" > /opt/config/sdnc_ip_addr.txt
651             echo "10.0.8.1" > /opt/config/vid_ip_addr.txt
652             echo "10.0.12.1" > /opt/config/clamp_ip_addr.txt
653             echo "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" > /opt/config/vm_image_name.txt
654             echo "4 GB General Purpose v1" > /opt/config/vm_flavor.txt
655             echo "__cloud_env__" > /opt/config/cloud_env.txt
656             echo "__robot_repo__" > /opt/config/remote_repo.txt
657
658             # Download and run install script
659             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/robot_install.sh -o /opt/robot_install.sh
660             cd /opt
661             chmod +x robot_install.sh
662             ./robot_install.sh
663
664
665   # VID instantiation
666   vid_private_port:
667     type: OS::Neutron::Port
668     properties:
669       network: { get_resource: oam_onap }
670       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.8.1}]
671
672   vid_vm:
673     type: OS::Nova::Server
674     properties:
675       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
676       flavor: 2 GB General Purpose v1
677       name:
678         str_replace:
679           template: base-vid
680           params:
681             base: { get_param: vm_base_name }
682       key_name: { get_resource: vm_key }
683       networks:
684         - network: { get_param: public_net_id }
685         - port: { get_resource: vid_private_port }
686       user_data_format: RAW
687       user_data:
688         str_replace:
689           params:
690             __nexus_repo__: { get_param: nexus_repo }
691             __nexus_docker_repo__: { get_param: nexus_docker_repo }
692             __nexus_username__: { get_param: nexus_username }
693             __nexus_password__: { get_param: nexus_password }
694             __artifacts_version__: { get_param: artifacts_version }
695             __docker_version__: { get_param: vid_docker }
696             __gerrit_branch__: { get_param: vid_branch }
697             __cloud_env__: { get_param: cloud_env }
698             __vid_repo__: { get_param: vid_repo }
699           template: |
700             #!/bin/bash
701
702             # Create configuration files
703             mkdir -p /opt/config
704             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
705             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
706             echo "__nexus_username__" > /opt/config/nexus_username.txt
707             echo "__nexus_password__" > /opt/config/nexus_password.txt
708             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
709             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
710             echo "__docker_version__" > /opt/config/docker_version.txt
711             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
712             echo "__cloud_env__" > /opt/config/cloud_env.txt
713             echo "__vid_repo__" > /opt/config/remote_repo.txt
714
715             # Download and run install script
716             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/vid_install.sh -o /opt/vid_install.sh
717             cd /opt
718             chmod +x vid_install.sh
719             ./vid_install.sh
720
721
722   # SDN-C instantiation
723   sdnc_private_port:
724     type: OS::Neutron::Port
725     properties:
726       network: { get_resource: oam_onap }
727       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.7.1}]
728
729   sdnc_vm:
730     type: OS::Nova::Server
731     properties:
732       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
733       flavor: 4 GB General Purpose v1
734       name:
735         str_replace:
736           template: base-sdnc
737           params:
738             base: { get_param: vm_base_name }
739       key_name: { get_resource: vm_key }
740       networks:
741         - network: { get_param: public_net_id }
742         - port: { get_resource: sdnc_private_port }
743       user_data_format: RAW
744       user_data:
745         str_replace:
746           params:
747             __nexus_repo__: { get_param: nexus_repo }
748             __nexus_docker_repo__: { get_param: nexus_docker_repo }
749             __nexus_username__: { get_param: nexus_username }
750             __nexus_password__: { get_param: nexus_password }
751             __artifacts_version__: { get_param: artifacts_version }
752             __docker_version__: { get_param: sdnc_docker }
753             __gerrit_branch__: { get_param: sdnc_branch }
754             __dgbuilder_docker__: { get_param: dgbuilder_docker }
755             __cloud_env__: { get_param: cloud_env }
756             __sdnc_repo__: { get_param: sdnc_repo }
757           template: |
758             #!/bin/bash
759
760             # Create configuration files
761             mkdir -p /opt/config
762             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
763             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
764             echo "__nexus_username__" > /opt/config/nexus_username.txt
765             echo "__nexus_password__" > /opt/config/nexus_password.txt
766             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
767             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
768             echo "__docker_version__" > /opt/config/docker_version.txt
769             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
770             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
771             echo "__cloud_env__" > /opt/config/cloud_env.txt
772             echo "__sdnc_repo__" > /opt/config/remote_repo.txt
773
774             # Download and run install script
775             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdnc_install.sh -o /opt/sdnc_install.sh
776             cd /opt
777             chmod +x sdnc_install.sh
778             ./sdnc_install.sh
779
780
781   # SDC instantiation
782   sdc_private_port:
783     type: OS::Neutron::Port
784     properties:
785       network: { get_resource: oam_onap }
786       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.3.1}]
787
788   sdc_volume_local:
789     type: OS::Cinder::Volume
790     properties:
791       name: vol1-sdc-local
792       size: 50
793       volume_type: SSD
794       image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
795
796   sdc_volume_data:
797     type: OS::Cinder::Volume
798     properties:
799       name: vol1-sdc-data
800       size: 100
801       volume_type: SSD
802
803   sdc_volume_attachment:
804     type: OS::Cinder::VolumeAttachment
805     properties:
806       volume_id: { get_resource: sdc_volume_data }
807       instance_uuid: { get_resource: sdc_vm }
808       mountpoint: /dev/xvdb
809
810   sdc_vm:
811     type: OS::Nova::Server
812     properties:
813       flavor: 15 GB Compute v1
814       name:
815         str_replace:
816           template: base-sdc
817           params:
818             base: { get_param: vm_base_name }
819       key_name: { get_resource: vm_key }
820       block_device_mapping:
821         - volume_id: { get_resource: sdc_volume_local }
822           device_name: vda
823       networks:
824         - network: { get_param: public_net_id }
825         - port: { get_resource: sdc_private_port }
826       user_data_format: RAW
827       user_data:
828         str_replace:
829           params:
830             __nexus_repo__: { get_param: nexus_repo }
831             __nexus_docker_repo__: { get_param: nexus_docker_repo }
832             __nexus_username__: { get_param: nexus_username }
833             __nexus_password__: { get_param: nexus_password }
834             __env_name__: { get_param: dmaap_topic }
835             __artifacts_version__: { get_param: artifacts_version }
836             __docker_version__: { get_param: sdc_docker }
837             __gerrit_branch__: { get_param: sdc_branch }
838             __cloud_env__: { get_param: cloud_env }
839             __sdc_repo__: { get_param: sdc_repo }
840           template: |
841             #!/bin/bash
842
843             # Create configuration files
844             mkdir -p /opt/config
845             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
846             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
847             echo "__nexus_username__" > /opt/config/nexus_username.txt
848             echo "__nexus_password__" > /opt/config/nexus_password.txt
849             echo "__env_name__" > /opt/config/env_name.txt
850             echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
851             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
852             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
853             echo "__docker_version__" > /opt/config/docker_version.txt
854             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
855             echo "__cloud_env__" > /opt/config/cloud_env.txt
856             echo "__sdc_repo__" > /opt/config/remote_repo.txt
857
858             # Download and run install script
859             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/sdc_install.sh -o /opt/sdc_install.sh
860             cd /opt
861             chmod +x sdc_install.sh
862             ./sdc_install.sh
863
864
865   # PORTAL instantiation
866   portal_private_port:
867     type: OS::Neutron::Port
868     properties:
869       network: { get_resource: oam_onap }
870       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.9.1}]
871
872   portal_volume:
873     type: OS::Cinder::Volume
874     properties:
875       name: vol1-portal
876       size: 50
877       volume_type: SSD
878       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
879
880   portal_vm:
881     type: OS::Nova::Server
882     properties:
883       flavor: 15 GB Memory v1
884       name:
885         str_replace:
886           template: base-portal
887           params:
888             base: { get_param: vm_base_name }
889       key_name: { get_resource: vm_key }
890       block_device_mapping:
891         - volume_id: { get_resource: portal_volume }
892           device_name: vda
893       networks:
894         - network: { get_param: public_net_id }
895         - port: { get_resource: portal_private_port }
896       user_data_format: RAW
897       user_data:
898         str_replace:
899           params:
900             __nexus_repo__: { get_param: nexus_repo }
901             __nexus_docker_repo__: { get_param: nexus_docker_repo }
902             __nexus_username__: { get_param: nexus_username }
903             __nexus_password__: { get_param: nexus_password }
904             __artifacts_version__: { get_param: artifacts_version }
905             __docker_version__: { get_param: portal_docker }
906             __gerrit_branch__: { get_param: portal_branch }
907             __cloud_env__: { get_param: cloud_env }
908             __cli_docker__: { get_param: cli_docker }
909             __portal_repo__: { get_param: portal_repo }
910           template: |
911             #!/bin/bash
912
913             # Create configuration files
914             mkdir -p /opt/config
915             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
916             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
917             echo "__nexus_username__" > /opt/config/nexus_username.txt
918             echo "__nexus_password__" > /opt/config/nexus_password.txt
919             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
920             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
921             echo "__docker_version__" > /opt/config/docker_version.txt
922             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
923             echo "__cli_docker__" > /opt/config/cli_docker_version.txt
924             echo "__cloud_env__" > /opt/config/cloud_env.txt
925             echo "__portal_repo__" > /opt/config/remote_repo.txt
926
927             # Download and run install script
928             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/portal_install.sh -o /opt/portal_install.sh
929             cd /opt
930             chmod +x portal_install.sh
931             ./portal_install.sh
932
933
934   # DCAE Controller instantiation
935   dcae_c_private_port:
936     type: OS::Neutron::Port
937     properties:
938       network: { get_resource: oam_onap }
939       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.4.1}]
940   dcae_c_vm:
941     type: OS::Nova::Server
942     properties:
943       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
944       flavor: 8 GB General Purpose v1
945       name:
946         str_replace:
947           template: base-dcae-controller
948           params:
949             base: { get_param: vm_base_name }
950       key_name: { get_resource: vm_key }
951       networks:
952         - network: { get_param: public_net_id }
953         - port: { get_resource: dcae_c_private_port }
954       user_data_format: RAW
955       user_data:
956         str_replace:
957           params:
958             __nexus_repo__: { get_param: nexus_repo }
959             __nexus_docker_repo__: { get_param: nexus_docker_repo }
960             __nexus_username__: { get_param: nexus_username }
961             __nexus_password__: { get_param: nexus_password }
962             __nexus_url_snapshots__: { get_param: nexus_url_snapshot }
963             __gitlab_branch__: { get_param: gitlab_branch }
964             __dcae_zone__: { get_param: dcae_zone }
965             __dcae_state__: { get_param: dcae_state }
966             __artifacts_version__: { get_param: artifacts_version }
967             __tenant_id__: { get_param: openstack_tenant_id }
968             __openstack_private_network_name__: { get_attr: [oam_onap, name] }
969             __openstack_user__: { get_param: openstack_username }
970             __openstack_password__: { get_param: openstack_api_key }
971             __openstack_auth_method__: { get_param: openstack_auth_method }
972             __key_name__: { get_param: key_name }
973             __rand_str__: { get_resource: random-str }
974             __pub_key__: { get_param: pub_key }
975             __nexus_repo_root__: { get_param: nexus_repo_root }
976             __openstack_region__: { get_param: openstack_region }
977             __docker_version__: { get_param: dcae_docker }
978             __gerrit_branch__: { get_param: dcae_branch }
979             __cloud_env__: { get_param: cloud_env }
980             __dcae_code_version__: { get_param: dcae_code_version }
981             __public_net_id__: { get_param: public_net_id }
982             __dcae_base_environment__: { get_param: dcae_base_environment }
983             __dcae_ip_addr__: { get_param: dcae_ip_addr }
984             __dcae_coll_ip_addr__: { get_param: dcae_coll_ip_addr }
985             __dcae_db_ip_addr__: { get_param: dcae_db_ip_addr }
986             __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
987             __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
988             __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
989             __dcae_repo__: { get_param: dcae_repo }
990             __mr_repo__: { get_param: mr_repo }
991           template: |
992             #!/bin/bash
993
994             # Create configuration files
995             mkdir -p /opt/config
996             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
997             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
998             echo "__nexus_username__" > /opt/config/nexus_username.txt
999             echo "__nexus_password__" > /opt/config/nexus_password.txt
1000             echo "__nexus_url_snapshots__" > /opt/config/nexus_url_snapshots.txt
1001             echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt
1002             echo "__docker_version__" > /opt/config/docker_version.txt
1003             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1004             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1005             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1006             echo "__dcae_zone__" > /opt/config/dcae_zone.txt
1007             echo "__dcae_state__" > /opt/config/dcae_state.txt
1008             echo "__tenant_id__" > /opt/config/tenant_id.txt
1009             echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
1010             echo "__openstack_user__" > /opt/config/openstack_user.txt
1011             echo "__openstack_password__" > /opt/config/openstack_password.txt
1012             echo "__openstack_auth_method__" > /opt/config/openstack_auth_method.txt
1013             echo "__key_name__" > /opt/config/key_name.txt
1014             echo "__rand_str__" > /opt/config/rand_str.txt
1015             echo "__pub_key__" > /opt/config/pub_key.txt
1016             echo "__nexus_repo_root__" > /opt/config/nexus_repo_root.txt
1017             echo "__openstack_region__" > /opt/config/openstack_region.txt
1018             echo "https://mycloud.rackspace.com/cloud" > /opt/config/horizon_url.txt
1019             echo "https://identity.api.rackspacecloud.com" > /opt/config/keystone_url.txt
1020             echo "__cloud_env__" > /opt/config/cloud_env.txt
1021             echo "__dcae_code_version__" > /opt/config/dcae_code_version.txt
1022             echo "__public_net_id__" > /opt/config/public_net_id.txt
1023             echo "__dcae_base_environment__" > /opt/config/dcae_base_environment.txt
1024             echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
1025             echo "__dcae_coll_ip_addr__" > /opt/config/dcae_coll_ip_addr.txt
1026             echo "__dcae_db_ip_addr__" > /opt/config/dcae_db_ip_addr.txt
1027             echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
1028             echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
1029             echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
1030             echo "__dcae_repo__" > /opt/config/remote_repo.txt
1031             echo "__mr_repo__" > /opt/config/mr_repo.txt
1032
1033             # Download and run install script
1034             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae_install.sh -o /opt/dcae_install.sh
1035             cd /opt
1036             chmod +x dcae_install.sh
1037             ./dcae_install.sh
1038
1039
1040   # Policy engine instantiation
1041   policy_private_port:
1042     type: OS::Neutron::Port
1043     properties:
1044       network: { get_resource: oam_onap }
1045       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.6.1}]
1046
1047   policy_volume:
1048     type: OS::Cinder::Volume
1049     properties:
1050       name: vol1-policy
1051       size: 50
1052       volume_type: SSD
1053       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1054
1055   policy_vm:
1056     type: OS::Nova::Server
1057     properties:
1058       flavor: 15 GB Compute v1
1059       name:
1060         str_replace:
1061           template: base-policy
1062           params:
1063             base: { get_param: vm_base_name }
1064       key_name: { get_resource: vm_key }
1065       block_device_mapping:
1066         - volume_id: { get_resource: policy_volume }
1067           device_name: vda
1068       networks:
1069         - network: { get_param: public_net_id }
1070         - port: { get_resource: policy_private_port }
1071       user_data_format: RAW
1072       user_data:
1073         str_replace:
1074           params:
1075             __nexus_repo__: { get_param: nexus_repo }
1076             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1077             __nexus_username__: { get_param: nexus_username }
1078             __nexus_password__: { get_param: nexus_password }
1079             __artifacts_version__: { get_param: artifacts_version }
1080             __docker_version__: { get_param: policy_docker }
1081             __gerrit_branch__: { get_param: policy_branch }
1082             __cloud_env__: { get_param: cloud_env }
1083             __policy_repo__: { get_param: policy_repo }
1084           template: |
1085             #!/bin/bash
1086
1087             # Create configuration files
1088             mkdir -p /opt/config
1089             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1090             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1091             echo "__nexus_username__" > /opt/config/nexus_username.txt
1092             echo "__nexus_password__" > /opt/config/nexus_password.txt
1093             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1094             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1095             echo "__docker_version__" > /opt/config/docker_version.txt
1096             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1097             echo "__cloud_env__" > /opt/config/cloud_env.txt
1098             echo "__policy_repo__" > /opt/config/remote_repo.txt
1099
1100             # Download and run install script
1101             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/policy_install.sh -o /opt/policy_install.sh
1102             cd /opt
1103             chmod +x policy_install.sh
1104             ./policy_install.sh
1105
1106
1107   # APP-C instantiation
1108   appc_private_port:
1109     type: OS::Neutron::Port
1110     properties:
1111       network: { get_resource: oam_onap }
1112       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.2.1}]
1113
1114   appc_vm:
1115     type: OS::Nova::Server
1116     properties:
1117       image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
1118       flavor: 4 GB General Purpose v1
1119       name:
1120         str_replace:
1121           template: base-appc
1122           params:
1123             base: { get_param: vm_base_name }
1124       key_name: { get_resource: vm_key }
1125       networks:
1126         - network: { get_param: public_net_id }
1127         - port: { get_resource: appc_private_port }
1128       user_data_format: RAW
1129       user_data:
1130         str_replace:
1131           params:
1132             __nexus_repo__: { get_param: nexus_repo }
1133             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1134             __nexus_username__: { get_param: nexus_username }
1135             __nexus_password__: { get_param: nexus_password }
1136             __dmaap_topic__: { get_param: dmaap_topic }
1137             __artifacts_version__: { get_param: artifacts_version }
1138             __docker_version__: { get_param: appc_docker }
1139             __gerrit_branch__: { get_param: appc_branch }
1140             __dgbuilder_docker__: { get_param: dgbuilder_docker }
1141             __cloud_env__: { get_param: cloud_env }
1142             __appc_repo__: { get_param: appc_repo }
1143           template: |
1144             #!/bin/bash
1145
1146             # Create configuration files
1147             mkdir -p /opt/config
1148             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1149             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1150             echo "__nexus_username__" > /opt/config/nexus_username.txt
1151             echo "__nexus_password__" > /opt/config/nexus_password.txt
1152             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1153             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1154             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1155             echo "__docker_version__" > /opt/config/docker_version.txt
1156             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1157             echo "__dgbuilder_docker__" > /opt/config/dgbuilder_version.txt
1158             echo "__cloud_env__" > /opt/config/cloud_env.txt
1159             echo "__appc_repo__" > /opt/config/remote_repo.txt
1160
1161             # Download and run install script
1162             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/appc_install.sh -o /opt/appc_install.sh
1163             cd /opt
1164             chmod +x appc_install.sh
1165             ./appc_install.sh
1166
1167
1168   # CLAMP instantiation
1169   clamp_private_port:
1170     type: OS::Neutron::Port
1171     properties:
1172       network: { get_resource: oam_onap }
1173       fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": 10.0.12.1}]
1174
1175   clamp_vm:
1176     type: OS::Nova::Server
1177     properties:
1178       image: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
1179       flavor: 4 GB General Purpose v1
1180       name:
1181         str_replace:
1182           template: base-clamp
1183           params:
1184             base: { get_param: vm_base_name }
1185       key_name: { get_resource: vm_key }
1186       networks:
1187         - network: { get_param: public_net_id }
1188         - port: { get_resource: clamp_private_port }
1189       user_data_format: RAW
1190       user_data:
1191         str_replace:
1192           params:
1193             __nexus_repo__: { get_param: nexus_repo }
1194             __nexus_docker_repo__: { get_param: nexus_docker_repo }
1195             __nexus_username__: { get_param: nexus_username }
1196             __nexus_password__: { get_param: nexus_password }
1197             __openstack_username__: { get_param: openstack_username }
1198             __openstack_tenant_id__: { get_param: openstack_tenant_id }
1199             __openstack_api_key__: { get_param: openstack_api_key }
1200             __dmaap_topic__: { get_param: dmaap_topic }
1201             __artifacts_version__: { get_param: artifacts_version }
1202             __docker_version__: { get_param: clamp_docker }
1203             __gerrit_branch__: { get_param: clamp_branch }
1204             __cloud_env__: { get_param: cloud_env }
1205             __clamp_repo__: { get_param: clamp_repo }
1206           template: |
1207             #!/bin/bash
1208
1209             # Create configuration files
1210             mkdir -p /opt/config
1211             echo "__nexus_repo__" > /opt/config/nexus_repo.txt
1212             echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
1213             echo "__nexus_username__" > /opt/config/nexus_username.txt
1214             echo "__nexus_password__" > /opt/config/nexus_password.txt
1215             echo "__artifacts_version__" > /opt/config/artifacts_version.txt
1216             echo "10.0.0.1" > /opt/config/dns_ip_addr.txt
1217             echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
1218             echo "__openstack_username__" > /opt/config/openstack_username.txt
1219             echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt
1220             echo "__openstack_api_key__" > /opt/config/openstack_api_key.txt
1221             echo "__docker_version__" > /opt/config/docker_version.txt
1222             echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
1223             echo "__cloud_env__" > /opt/config/cloud_env.txt
1224             echo "__clamp_repo__" > /opt/config/remote_repo.txt
1225
1226             # Download and run install script
1227             curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/clamp_install.sh -o /opt/clamp_install.sh
1228             cd /opt
1229             chmod +x clamp_install.sh
1230             ./clamp_install.sh