summaryrefslogtreecommitdiffstats
path: root/OPENECOMP-DEMO/vm-templates
diff options
context:
space:
mode:
Diffstat (limited to 'OPENECOMP-DEMO/vm-templates')
-rw-r--r--OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml156
-rw-r--r--OPENECOMP-DEMO/vm-templates/vm-controller.yaml79
-rw-r--r--OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml192
-rw-r--r--OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml203
4 files changed, 630 insertions, 0 deletions
diff --git a/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml b/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml
new file mode 100644
index 0000000..c4530d4
--- /dev/null
+++ b/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml
@@ -0,0 +1,156 @@
+### Description of VM itself
+description: VMs that runs Hadoop and CDAP
+short-name: cdap
+number-vms-per-location: 3
+application-ids: [ dcae ]
+dns-service:
+ drsub:
+ dns-type : arecords
+ cluster-type : site
+admin-id: ubuntu
+
+installation-steps:
+
+- step: shell
+ command: cp /tmp/ecomp-nexus.crt /usr/local/share/ca-certificates/ ; update-ca-certificates
+ application-id: root
+
+- step: shell
+ command: echo 162.242.254.138 ecomp-nexus >> /etc/hosts
+ application-id: root
+
+- step: shell
+ command: |
+ echo nameserver 10.0.0.1 >> /etc/resolv.conf
+ echo "prepend domain-name-servers 10.0.0.1;" >> /etc/dhcp/dhclient.conf
+ echo nameserver 10.0.0.1 >> /etc/resolvconf/resolv.conf.d/head
+
+- step: shell
+ command: |
+ apt-get update ; apt-get install -y maven openjdk-7-jdk unzip python-pip
+ pip install pyyaml
+ application-id: root
+
+- step: shell
+ command: |
+ (cd /opt/app ; curl -Lo apache-groovy-binary-2.4.6.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.6.zip )
+ (cd /opt/app ; unzip apache-groovy-binary-2.4.6.zip )
+ mkdir -p /opt/app/java/jdk
+ ln -s /usr /opt/app/java/jdk/jdk170
+ mkdir -p /opt/app/groovy
+ ln -s /opt/app/groovy-2.4.6 /opt/app/groovy/246
+ application-id: root
+
+#- step: maven-artifact
+# group-id: org.openecomp.dcae.controller
+# artifact-id: dcae-controller-core-utils
+# version: ${dcae.env('open-ecomp-demo.versions.controller')}
+# type: zip
+# assembly-id: runtime
+# application-id: dcae
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-${dcae.env('open-ecomp-demo.versions.controller')}-runtime.zip
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: zip
+ artifact-id: dcae-controller-core-utils
+ application-id: dcae
+
+- step: shell
+ command: |
+ /opt/app/dcae-controller-core-utils/bin/fs-init.py
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-cdap-cluster-manager
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-dmaap-drsub
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.apod/dcae-cdap-small-hadoop_${dcae.env('open-ecomp-demo.versions.apod')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.apod/dcae-analytics-tca_${dcae.env('open-ecomp-demo.versions.apod')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: http://repo1.maven.org/maven2/co/cask/cdap/HelloWorld/3.5.1/HelloWorld-3.5.1.jar
+ artifact-id: cask-hello-world
+ type: jar
+
+- step: shell
+ command: |
+ case \\\\\$(hostname -a) in
+ *openecomp.org*)
+ sed -i /`hostname`/d /etc/hosts
+ cat /tmp/vm-*-hosts >> /etc/hosts
+ ;;
+ esac
+ bash /opt/app/dcae-cdap-small-hadoop/install.sh
+ sudo su dcae -c "/opt/app/dcae-controller-service-cdap-cluster-manager/bin/manager.sh config"
+ sudo su dcae -c "/opt/app/dcae-controller-service-cdap-cluster-manager/bin/manager.sh restart"
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-dmaap-drsub-manager
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+lifecycle-management:
+ use-dcae-manager: yes
+ manager-port: 1999
+
+openstack-vm-type:
+ volumeSizeGB: 75
+ memorySizeGB: 8
+ needPublicIp: true
+ numberOfCores: 8
+ rootDiskSizeGB: 40
+ diskSizeGB: 80
+ imageName: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
+ #Flavor details to be confirmed. May need to cretae a new flavor
+ openstack-flavor-name: 8 GB Performance
+ disk-partitions:
+ osType: ubuntu
+ volumes:
+ ephemeral:
+ uuid: ephemeral
+ size: 80
+ filesystems:
+ "/opt/tools" :
+ size: 80
+ type: ext4
+ mount_opts: ""
+ data:
+ uuid: cinder
+ size: 75
+ filesystems:
+ "/opt/data":
+ size: 75
+ type: ext4
+ mount_opts: ''
+
+
+controller-instance-configuration:
+ cluster:
+ baseUrl: "http://localhost:10000/v3"
+ remote: "true"
+
diff --git a/OPENECOMP-DEMO/vm-templates/vm-controller.yaml b/OPENECOMP-DEMO/vm-templates/vm-controller.yaml
new file mode 100644
index 0000000..fe2bd6a
--- /dev/null
+++ b/OPENECOMP-DEMO/vm-templates/vm-controller.yaml
@@ -0,0 +1,79 @@
+### Description of VM itself
+description: VM that runs the DCAE Controller
+short-name: cont
+number-vms-per-location: 1
+application-ids: [ dcae ]
+admin-id: ubuntu
+dns-gss: [ gss ]
+dns-cnames: [ global ]
+installation-steps:
+
+- step: shell
+ command: cp /tmp/ecomp-nexus.crt /usr/local/share/ca-certificates/ ; update-ca-certificates
+ application-id: root
+
+- step: shell
+ command: echo 162.242.254.138 ecomp-nexus >> /etc/hosts
+ application-id: root
+
+- step: shell
+ command: |
+ apt-get update ; apt-get install -y maven openjdk-7-jdk python-pip
+ pip install pyyaml
+ application-id: root
+
+- step: shell
+ command: |
+ export SDKMAN_DIR=/opt/app/sdkman
+ curl -s get.sdkman.io | bash
+ source /opt/app/sdkman/bin/sdkman-init.sh
+ echo Y | sdk install groovy
+ mkdir -p /opt/app/java/jdk
+ ln -s /usr /opt/app/java/jdk/jdk170
+ mkdir -p /opt/app/groovy
+ ln -s /opt/app/sdkman/candidates/groovy/current /opt/app/groovy/246
+ application-id: root
+
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-platform-server
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+openstack-vm-type:
+ volumeSizeGB: 1024
+ dev-volumeSizeGB: 100
+ memorySizeGB: 8
+ dev-memorySizeGB: 8
+ needPublicIp: true
+ numberOfCores: 4
+ dev-numberOfCores: 4
+ rootDiskSizeGB: 80
+ imageName: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
+ openstack-flavor-name: 8 GB Performance
+ disk-partitions:
+ osType: ubuntu
+ volumes:
+ opt:
+ uuid: ephemeral
+ size: 160
+ filesystems:
+ "/opt/tools" :
+ size: 20
+ type: ext4
+ mount_opts: ""
+ dcae-controller-platform-server:
+ uuid: cinder
+ size: 1024
+ filesystems:
+ "/opt/app/dcae-controller-platform-server" :
+ size: 1024
+ type: ext4
+ mount_opts: ""
+
+controller-instance-configuration:
+ "$class": org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance
+
diff --git a/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml b/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml
new file mode 100644
index 0000000..6727287
--- /dev/null
+++ b/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml
@@ -0,0 +1,192 @@
+description: VMs that runs Docker Host for Collectors
+short-name: coll
+number-vms-per-location: 1
+application-ids:
+- dcae
+admin-id: ubuntu
+
+lifecycle-management:
+ use-dcae-manager: yes
+
+installation-steps:
+
+- step: shell
+ command: cp /tmp/ecomp-nexus.crt /usr/local/share/ca-certificates/ ; update-ca-certificates
+ application-id: root
+
+- step: shell
+ command: echo 162.242.254.138 ecomp-nexus >> /etc/hosts
+ application-id: root
+
+- step: shell
+ command: |
+ case \\\\\$(hostname -a) in
+ *openecomp.org*)
+ sed -i /`hostname`/d /etc/hosts
+ cat /tmp/vm-*-hosts >> /etc/hosts
+ ;;
+ esac
+ apt-get update ; apt-get install -y maven openjdk-7-jdk unzip python-pip
+ pip install libyaml
+ application-id: root
+
+- step: shell
+ command: |
+ (cd /opt/app ; curl -Lo apache-groovy-binary-2.4.6.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.6.zip )
+ (cd /opt/app ; unzip apache-groovy-binary-2.4.6.zip )
+ mkdir -p /opt/app/java/jdk
+ ln -s /usr /opt/app/java/jdk/jdk170
+ mkdir -p /opt/app/groovy
+ ln -s /opt/app/groovy-2.4.6 /opt/app/groovy/246
+ application-id: root
+
+#- step: maven-artifact
+# group-id: org.openecomp.dcae.controller
+# artifact-id: dcae-controller-core-utils
+# version: ${dcae.env('open-ecomp-demo.versions.controller')}
+# type: zip
+# assembly-id: runtime
+# application-id: dcae
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-${dcae.env('open-ecomp-demo.versions.controller')}-runtime.zip
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: zip
+ artifact-id: dcae-controller-core-utils
+ application-id: dcae
+
+- step: shell
+ command: |
+ /opt/app/dcae-controller-core-utils/bin/fs-init.py
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-docker-host-manager
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-docker-model
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: jar
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-docker-adaptor
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: jar
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-standardeventcollector-model
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: jar
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-standardeventcollector-manager
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: jar
+ application-id: dcae
+
+- step: shell
+ command: |
+ /opt/app/dcae-controller-core-utils/bin/install-docker.sh
+ adduser dcae docker
+ docker login -u ${dcae.env('open-ecomp-demo.maven.user')} -p ${dcae.env('open-ecomp-demo.maven.password')} ${dcae.env('open-ecomp-demo.docker.registry')}
+ docker pull ${dcae.env('open-ecomp-demo.docker.registry')}/dcae-controller-common-event:${dcae.env('open-ecomp-demo.versions.collector')}
+ docker pull ${dcae.env('open-ecomp-demo.docker.registry')}/dcae_dmaapbc:${dcae.env('open-ecomp-demo.versions.databus-controller')}
+ sudo su dcae -c "/opt/app/dcae-controller-service-docker-host-manager/bin/manager.sh config"
+ sudo su dcae -c "/opt/app/dcae-controller-service-docker-host-manager/bin/manager.sh restart"
+ mkdir -p /var/config/DCAE
+ mkdir -p /var/log/DCAE
+ chown dcae:dcae /var/config/DCAE /var/log/DCAE
+
+- step: shell
+ command: |
+ echo nameserver 10.0.0.1 >> /etc/resolv.conf
+ echo "prepend domain-name-servers 10.0.0.1;" >> /etc/dhcp/dhclient.conf
+ echo nameserver 10.0.0.1 >> /etc/resolvconf/resolv.conf.d/head
+
+- step: shell
+ command: |
+ mkdir /opt/docker
+ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose
+ chmod +x /opt/docker/docker-compose
+ /opt/app/dcae-controller-core-utils/bin/dmaap_mr_prep.sh ${dcae.env('open-ecomp-demo.git.mr-repo')}
+
+controller-instance-configuration:
+ serviceFqdn: ${dcae.serversFqdn()[0]}
+ dockerHost:
+ url: https://localhost:4243/v1.23
+ remote: 'true'
+openstack-vm-type:
+ volumeSizeGB: 75
+ memorySizeGB: 8
+ needPublicIp: true
+ numberOfCores: 8
+ rootDiskSizeGB: 40
+ diskSizeGB: 80
+ imageName: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)
+ openstack-flavor-name: 8 GB Performance
+ disk-partitions:
+ osType: ubuntu
+ volumes:
+ opt:
+ uuid: ephemeral
+ size: 80
+ filesystems:
+ "/opt/tools" :
+ size: 80
+ type: ext4
+ mount_opts: ""
+ data:
+ uuid: cinder
+ size: 75
+ filesystems:
+ /data:
+ size: 75
+ type: ext4
+ mount_opts: ''
+
+vm-setup:
+ configuration-files:
+ main:
+ destination: /tmp/docker-databus-controller.conf
+ content: |-
+ # DMaaP Bus Controller OpenSource environment vars
+ CONT_DOMAIN=dcae.simpledemo.openecomp.org
+ DMAAPBC_INSTANCE_NAME=$dcae.instanceName
+
+ # The https port
+ # set to 0 if certificate is not ready
+ DMAAPBC_INT_HTTPS_PORT=0
+
+ DMAAPBC_KSTOREFILE=/opt/app/dcae-certificates
+ DMAAPBC_KSTOREPASS=foofoofoo
+ DMAAPBC_PVTKEYPASS=barbarbar
+
+ DMAAPBC_PG_ENABLED=true
+ #DMAAPBC_PGHOST=zldciad1vipstg00.dcae.simpledemo.openecomp.org
+ DMAAPBC_PGHOST=10.0.4.101
+ DMAAPBC_PGCRED=test234-ftl
+
+ DMAAPBC_DRPROV_FQDN=zldciad1vidrps00.simpledemo.openecomp.org
+
+ DMAAPBC_AAF_URL=https://aafapi.\\${CONT_DOMAIN}:8095/proxy/
+
+ DMAAPBC_TOPICMGR_USER=m99751@dmaapBC.openecomp.org
+ DMAAPBC_TOPICMGR_PWD=enc:zyRL9zbI0py3rJAjMS0dFOnYfEw_mJhO
+ DMAAPBC_ADMIN_USER=m99501@dcae.openecomp.org
+ DMAAPBC_ADMIN_PWD=enc:YEaHwOJrwhDY8a6usetlhbB9mEjUq9m
+
+ DMAAPBC_PE_ENABLED=false
+ DMAAPBC_PE_AAF_ENV=TBD
+ \ No newline at end of file
diff --git a/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml b/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml
new file mode 100644
index 0000000..f9b3fe9
--- /dev/null
+++ b/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml
@@ -0,0 +1,203 @@
+### Description of VM itself
+description: VM that runs PostgreSQL Data Base as a Service
+short-name: pstg
+number-vms-per-location: 1
+application-ids: [ dcae ]
+admin-id: ubuntu
+dns-cnames: [ global ]
+dns-service:
+ write:
+ dns-type : gss
+ cluster-type : gss
+
+lifecycle-management:
+ use-dcae-manager: yes
+
+installation-steps:
+
+- step: shell
+ command: cp /tmp/ecomp-nexus.crt /usr/local/share/ca-certificates/ ; update-ca-certificates
+ application-id: root
+
+- step: shell
+ command: echo 162.242.254.138 ecomp-nexus >> /etc/hosts
+ application-id: root
+
+- step: shell
+ command: |
+ case \\\\\$(hostname -a) in
+ *openecomp.org*)
+ sed -i /`hostname`/d /etc/hosts
+ cat /tmp/vm-*-hosts >> /etc/hosts
+ ;;
+ esac
+ apt-get update ; apt-get install -y maven openjdk-8-jdk unzip python-pip
+ pip install pyyaml
+ application-id: root
+
+- step: shell
+ command: |
+ (cd /opt/app ; curl -Lo apache-groovy-binary-2.4.6.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.6.zip )
+ (cd /opt/app ; unzip apache-groovy-binary-2.4.6.zip )
+ mkdir -p /opt/app/java/jdk
+ ln -s /usr /opt/app/java/jdk/jdk170
+ mkdir -p /opt/app/groovy
+ ln -s /opt/app/groovy-2.4.6 /opt/app/groovy/246
+ application-id: root
+
+- step: shell
+ command: |
+ echo nameserver 10.0.0.1 >> /etc/resolv.conf
+ echo "prepend domain-name-servers 10.0.0.1;" >> /etc/dhcp/dhclient.conf
+ echo nameserver 10.0.0.1 >> /etc/resolvconf/resolv.conf.d/head
+
+#- step: maven-artifact
+# group-id: org.openecomp.dcae.controller
+# artifact-id: dcae-controller-core-utils
+# version: ${dcae.env('open-ecomp-demo.versions.controller')}
+# type: zip
+# assembly-id: runtime
+# application-id: dcae
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/zip-snapshots/dcae-controller-core-utils-${dcae.env('open-ecomp-demo.versions.controller')}-runtime.zip
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: zip
+ artifact-id: dcae-controller-core-utils
+ application-id: dcae
+
+- step: shell
+ command: |
+ /opt/app/dcae-controller-core-utils/bin/fs-init.py
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-common-vm-manager
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: zip
+ assembly-id: runtime
+ application-id: dcae
+
+- step: maven-artifact
+ group-id: org.openecomp.dcae.controller
+ artifact-id: dcae-controller-service-storage-postgres-model
+ version: ${dcae.env('open-ecomp-demo.versions.controller')}
+ type: jar
+ application-id: dcae
+
+- step: shell
+ command: |
+ # prevent servers from starting
+ echo "exit 101" > /usr/sbin/policy-rc.d; chmod a+x /usr/sbin/policy-rc.d
+ apt-get update ; apt-get install -y postgresql libpq5 repmgr python-psycopg2 python3-psycopg2 libgetopt-java
+ rm -f /usr/sbin/policy-rc.d
+
+ application-id: root
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/cdf_${dcae.env('open-ecomp-demo.versions.postgres')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/postgresql-prep_${dcae.env('open-ecomp-demo.versions.postgres')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/postgresql-config_${dcae.env('open-ecomp-demo.versions.postgres')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/pgaas_${dcae.env('open-ecomp-demo.versions.postgres')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: http
+ url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae/deb-snapshots/org.openecomp.dcae.storage.pgaas/pgaas-post_${dcae.env('open-ecomp-demo.versions.postgres')}.deb
+ user-name: ${dcae.env('open-ecomp-demo.maven.user')}
+ password: ${dcae.env('open-ecomp-demo.maven.password')}
+ type: deb
+
+- step: shell
+ command: |
+ echo "dcae ALL=(postgres) NOPASSWD: ALL" > /etc/sudoers.d/dcae-postgres
+ sudo su dcae -c "/opt/app/dcae-controller-service-common-vm-manager/bin/manager.sh config"
+ sudo su dcae -c "/opt/app/dcae-controller-service-common-vm-manager/bin/manager.sh restart"
+
+
+openstack-vm-type:
+ volumeSizeGB: 75
+ memorySizeGB: 8
+ needPublicIp: true
+ numberOfCores: 8
+ rootDiskSizeGB: 40
+ diskSizeGB: 80
+ imageName: Ubuntu 16.04 LTS (Xenial Xerus) (PVHVM)
+ openstack-flavor-name: 8 GB Performance
+ disk-partitions:
+ osType: ubuntu
+ volumes:
+ opt:
+ uuid: ephemeral
+ size: 80
+ filesystems:
+ "/opt/tools" :
+ size: 80
+ type: ext4
+ mount_opts: ""
+ dbroot:
+ uuid: cinder
+ size: 75
+ filesystems:
+ "/dbroot/pgdata" :
+ size: 50
+ type: ext4
+ mount_opts: ""
+ "/dbroot/pglogs" :
+ size: 25
+ type: ext4
+ mount_opts: ""
+
+controller-instance-configuration:
+ "$class": org.openecomp.dcae.controller.service.common.vm.service.CommonVmServiceInstance
+ script: sudo -u postgres /opt/app/pgaas/bin/dcae_admin_db
+ vmConfiguration:
+ "$class": org.openecomp.dcae.controller.service.storage.postgres.service.PostgresServiceConfiguration
+ state: master
+ databases:
+ dmaap:
+ description: DMAAP Databus Configuration
+ ownerRole: dmaap_admin
+ roles:
+ dmaap_admin:
+ password: ${dcae.password('postgres.dmaap.admin')}
+ role: admin
+ roleComment: [ admin writer reader]
+ dmaap_user:
+ password: ${dcae.password('postgres.dmaap.user')}
+ role: writer
+ roleComment: [ admin writer reader]
+ dmaap_viewer:
+ password: ${dcae.password('postgres.dmaap.viewer')}
+ role: reader
+ roleComment: [ admin writer reader]
+vm-setup:
+ configuration-files:
+ main:
+ destination: /tmp/postgres.conf
+ content: |-
+ master: ${ENV.PGAASMASTER ?: "TDB env.yaml@vm-templates.vm-postgresql.PGAASMASTER"}
+ secondmaster: ${ENV.PGAASMASTER2 ?: "TDB env.yaml@vm-templates.vm-postgresql.PGAASMASTER2"}
+ DRTR_NODE_KSTOREFILE: /opt/app/dcae-certificate/keystore.jks
+ DRTR_NODE_KSTOREPASS: "%{certPassword}"
+ DRTR_NODE_PVTKEYPASS: "%{certPassword}"
+ PG_NODES : ${dcae.allServersFqdn().join('|')}
+ PG_JAVA_HOME : /opt/app/java/jdk/jdk170
+ PG_CLUSTER : site