2a88ba639dc2d463bc62cf39ae63b0b7b9008423
[joid.git] / ci / opencontrail / fetch-charms.sh
1 #!/bin/bash -ex
2
3 distro=$1
4 mkdir -p $distro
5
6 function build {
7     sudo apt-get install charm-tools -y
8     (cd $distro/charm-$1; charm build -s $distro  -obuild src)
9     mv $distro/charm-$1/build/$distro/$1 $distro
10 }
11
12 # openstack
13 bzr branch lp:~narindergupta/charms/trusty/promise/trunk $distro/promise
14
15 git clone -b stable/17.08 https://github.com/openstack/charm-hacluster.git $distro/hacluster
16 git clone -b stable/17.08 https://github.com/openstack/charm-ceilometer.git $distro/ceilometer
17 git clone -b stable/17.08 https://github.com/openstack/charm-ceilometer-agent.git $distro/ceilometer-agent
18 git clone -b stable/17.08 https://github.com/openstack/charm-ceph-mon.git $distro/ceph-mon
19 git clone -b stable/17.08 https://github.com/openstack/charm-ceph-osd.git $distro/ceph-osd
20 git clone -b stable/17.08 https://github.com/openstack/charm-ceph-radosgw.git $distro/ceph-radosgw
21 git clone -b stable/17.08 https://github.com/openstack/charm-cinder.git $distro/cinder
22 git clone -b stable/17.08 https://github.com/openstack/charm-cinder-ceph.git $distro/cinder-ceph
23 git clone -b stable/17.08 https://github.com/openstack/charm-glance.git $distro/glance
24 git clone -b stable/17.08 https://github.com/openstack/charm-keystone.git $distro/keystone
25 git clone -b stable/17.08 https://github.com/openstack/charm-percona-cluster.git $distro/percona-cluster
26 git clone -b stable/17.08 https://github.com/openstack/charm-neutron-api.git $distro/neutron-api
27 git clone -b stable/17.08 https://github.com/openstack/charm-neutron-gateway.git $distro/neutron-gateway
28 git clone -b stable/17.08 https://github.com/openstack/charm-neutron-openvswitch.git $distro/neutron-openvswitch
29 git clone -b stable/17.08 https://github.com/openstack/charm-nova-cloud-controller.git $distro/nova-cloud-controller
30 git clone -b stable/17.08 https://github.com/openstack/charm-nova-compute.git $distro/nova-compute
31 git clone -b stable/17.08 https://github.com/openstack/charm-openstack-dashboard.git $distro/openstack-dashboard
32 git clone -b stable/17.08 https://github.com/openstack/charm-rabbitmq-server.git $distro/rabbitmq-server
33 git clone -b stable/17.08 https://github.com/openstack/charm-heat.git $distro/heat
34 git clone -b stable/17.08 https://github.com/openstack/charm-lxd.git $distro/lxd
35 git clone https://github.com/openbaton/juju-charm.git $distro/openbaton
36
37 charm pull cs:$distro/mongodb $distro/mongodb
38 charm pull cs:$distro/ntp $distro/ntp
39 charm pull cs:$distro/aodh $distro/aodh
40 charm pull cs:~free.ekanayaka/xenial/haproxy-1 $distro/haproxy
41 charm pull cs:~narindergupta/congress-1 $distro/congress
42
43 #pulling scaleio charms.
44 charm pull cs:~cloudscaling/scaleio-mdm $distro/scaleio-mdm
45 charm pull cs:~cloudscaling/scaleio-sds $distro/scaleio-sds
46 charm pull cs:~cloudscaling/scaleio-gw $distro/scaleio-gw
47 charm pull cs:~cloudscaling/scaleio-sdc $distro/scaleio-sdc
48 charm pull cs:~cloudscaling/scaleio-openstack $distro/scaleio-openstack
49 charm pull cs:~cloudscaling/scaleio-cluster $distro/scaleio-cluster
50 charm pull cs:~cloudscaling/scaleio-gui $distro/scaleio-gui
51
52 git clone https://github.com/Juniper/contrail-charms.git
53 cd contrail-charms/
54 mv * ../$distro/
55 cd ../
56 rm -rf contrail-charms/
57