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