summaryrefslogtreecommitdiffstats
path: root/ci/kubernetes/fetch-charms.sh
blob: 3906d7bd635f24907de8f794b656ead45cb8fee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -ex

distro=$1
mkdir -p $distro

function build {
    sudo apt-get install charm-tools -y
    (cd $distro/charm-$1; charm build -s $distro  -obuild src)
    mv $distro/charm-$1/build/$distro/$1 $distro
}

# openstack
charm pull cs:ntp $distro/ntp
git clone -b stable/18.02 https://github.com/openstack/charm-ceph-mon.git $distro/ceph-mon
git clone -b stable/18.02 https://github.com/openstack/charm-ceph-osd.git $distro/ceph-osd