blob: b630571a17f40d11aa2dc76b148d78210ce236d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
|
##########################################################################
#
#==================LICENSE_START==========================================
#
#
# Copyright (c) 2018 Amdocs Intellectual Property. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#==================LICENSE_END============================================
#
# LOG-314 michaelobrien 20181216
#
##########################################################################
heat_template_version: 2015-10-15
description: Heat template to install OOM components
##############
# #
# PARAMETERS #
# #
##############
parameters:
##############################################
# #
# Parameters used across all ONAP components #
# #
##############################################
public_net_id:
type: string
description: The ID of the Public network for floating IP address allocation
public_net_name:
type: string
description: The name of the Public network referred by public_net_id
ubuntu_1604_image:
type: string
description: Name of the Ubuntu 16.04 image
flavor_small:
type: string
description: Name of the Small Flavor supported by the cloud provider
flavor_medium:
type: string
description: Name of the Medium Flavor supported by the cloud provider
flavor_large:
type: string
description: Name of the Large Flavor supported by the cloud provider
flavor_xlarge:
type: string
description: Name of the Extra Large Flavor supported by the cloud provider
flavor_xxlarge:
type: string
description: Name of the Extra Extra Large Flavor supported by the cloud provider
flavor_m2xlarge:
type: string
description: Name of the Extra Extra Large Flavor supported by the cloud provider
vm_base_name:
type: string
description: Base name of ONAP VMs
key_name:
type: string
description: Public/Private key pair name
pub_key:
type: string
description: Public key to be installed on the compute instance
nexus_repo:
type: string
description: Complete URL for the Nexus repository.
nexus_docker_repo:
type: string
description: Complete URL for the Nexus repository for docker images.
nexus_username:
type: string
description: Nexus Repository username
nexus_password:
type: string
description: Nexus Repository Password
artifacts_version:
type: string
description: Artifacts version of ONAP components
openstack_tenant_id:
type: string
description: OpenStack tenant ID
openstack_tenant_name:
type: string
description: OpenStack tenant name (matching with the openstack_tenant_id)
openstack_username:
type: string
description: OpenStack username
openstack_auth_method:
type: string
description: OpenStack authentication method (password VS. api-key)
#openstack_api_key:
# type: string
# description: OpenStack password or API Key
horizon_url:
type: string
description: URL of OpenStack Horizon
keystone_url:
type: string
description: URL of OpenStack Keystone
cloud_env:
type: string
description: Cloud Provider Name in lower case
openstack_region:
type: string
description: Region where the DCAE controller will spin the VMs
######################
# #
# Network parameters #
# #
######################
dns_list:
type: comma_delimited_list
description: List of External DNS for OAM ONAP network
external_dns:
type: string
description: Public IP of the external DNS for ONAP network
dns_forwarder:
type: string
description: the forwarder address for setting up ONAP's private DNS server
oam_network_cidr:
type: string
description: CIDR of the OAM ONAP network
### Private IP addresses ###
oom_ip_addr:
type: string
#####################
# #
# ONAP repositories #
# #
#####################
oom_repo:
type: string
#############
# #
# RESOURCES #
# #
#############
resources:
random-str:
type: OS::Heat::RandomString
properties:
length: 4
# Public key used to access ONAP components
vm_key:
type: OS::Nova::KeyPair
properties:
name:
str_replace:
template: base_rand
params:
base: { get_param: key_name }
rand: { get_resource: random-str }
public_key: { get_param: pub_key }
save_private_key: false
# ONAP security group
onap_sg:
type: OS::Neutron::SecurityGroup
properties:
name:
str_replace:
template: base_rand
params:
base: onap_sg
rand: { get_resource: random-str }
description: security group used by ONAP
rules:
# All egress traffic
- direction: egress
ethertype: IPv4
- direction: egress
ethertype: IPv6
# ingress traffic
# ICMP
- protocol: icmp
- protocol: udp
port_range_min: 1
port_range_max: 65535
- protocol: tcp
port_range_min: 1
port_range_max: 65535
# https://git.onap.org/integration/tree/deployment/heat/onap-oom/onap-oom.yaml#n68
# Protocols used for vLB/vDNS use case
- protocol: 47
- protocol: 53
- protocol: 132
# ONAP management private network
oam_onap:
type: OS::Neutron::Net
properties:
name:
str_replace:
template: oam_onap_rand
params:
rand: { get_resource: random-str }
oam_onap_subnet:
type: OS::Neutron::Subnet
properties:
name:
str_replace:
template: oam_onap_rand
params:
rand: { get_resource: random-str }
network_id: { get_resource: oam_onap }
cidr: { get_param: oam_network_cidr }
dns_nameservers: { get_param: dns_list }
router:
type: OS::Neutron::Router
properties:
external_gateway_info:
network: { get_param: public_net_id }
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
subnet_id: { get_resource: oam_onap_subnet }
# OOM VM instantiation
oom_private_port:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }, "ip_address": { get_param: oom_ip_addr }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port }
oom_vm:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e0
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Create configuration files
mkdir -p /opt/config
echo "__nexus_repo__" > /opt/config/nexus_repo.txt
echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt
echo "__nexus_username__" > /opt/config/nexus_username.txt
echo "__nexus_password__" > /opt/config/nexus_password.txt
echo "__cloud_env__" > /opt/config/cloud_env.txt
echo "__artifacts_version__" > /opt/config/artifacts_version.txt
echo "__oam_network_cidr__" > /opt/config/oam_network_cidr.txt
echo "__external_dns__" > /opt/config/external_dns.txt
echo "export OOM_IP=__oom_ip_addr__" >> /opt/config/onap_ips.txt
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e0 >> /etc/hosts
#sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
#sudo usermod -aG docker ubuntu
oom_private_port1:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip1:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port1 }
oom_vm1:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e1
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port1 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e1 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port2:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip2:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port2 }
oom_vm2:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e2
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port2 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e2 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port3:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip3:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port3 }
oom_vm3:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e3
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port3 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e3 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port4:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip4:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port4 }
oom_vm4:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e4
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port4 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e4 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port5:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip5:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port5 }
oom_vm5:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e5
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port5 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e5 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port6:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip6:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port6 }
oom_vm6:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e6
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port6 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e6 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port7:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip7:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port7 }
oom_vm7:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e7
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port7 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e7 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port8:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip8:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port8 }
oom_vm8:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e8
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port8 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e8 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port9:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip9:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port9 }
oom_vm9:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e9
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port9 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e9 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port10:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip10:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port10 }
oom_vm10:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e10
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port10 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e10 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port11:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip11:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port11 }
oom_vm11:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e11
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port11 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e11 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port12:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip12:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port12 }
oom_vm12:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e12
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port12 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e12 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
oom_private_port13:
type: OS::Neutron::Port
properties:
network: { get_resource: oam_onap }
fixed_ips: [{"subnet": { get_resource: oam_onap_subnet }}]
security_groups:
- { get_resource: onap_sg }
oom_floating_ip13:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
port_id: { get_resource: oom_private_port13 }
oom_vm13:
type: OS::Nova::Server
properties:
image: { get_param: ubuntu_1604_image }
#flavor: { get_param: flavor_m2xlarge }
flavor: { get_param: flavor_xlarge }
name:
str_replace:
template: base-oom-obrien-rancher-e13
params:
base: { get_param: vm_base_name }
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: oom_private_port13 }
user_data_format: RAW
user_data:
str_replace:
params:
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
#__dns_ip_addr__: { get_param: dns_ip_addr }
__oam_network_cidr__: { get_param: oam_network_cidr }
template: |
#!/bin/bash
# Download and run install script
sudo echo 127.0.0.1 onap-oom-obrien-rancher-e13 >> /etc/hosts
sudo curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo usermod -aG docker ubuntu
|