summaryrefslogtreecommitdiffstats
path: root/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml
blob: 637da376e0aa723cb77f544862c0d6157d66cf43 (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
### 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: |
    mkdir -p /opt/app
    (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: 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.apod.cdap/deb-snapshots/dcae-cdap-small-hadoop_${dcae.env('open-ecomp-demo.versions.apod')}.deb
  type: deb

- step: http
  url: ${dcae.env('open-ecomp-demo.maven.rawurl')}/org.openecomp.dcae.apod.analytics/deb-snapshots/dcae-analytics-tca_${dcae.env('open-ecomp-demo.versions.apod')}.deb
  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"