~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/03-maasdeploy.sh

  • Committer: Gerrit Code Review
  • Author(s): Narinder Gupta
  • Date: 2017-12-01 16:20:03 UTC
  • mfrom: (743.1.1)
  • Revision ID: git-v1:905cbf68be10940e56ae5508f1f605a3994cd593
Merge "adding latest release charm support."

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    usage;
22
22
fi
23
23
 
 
24
opnfvdistro=`cat /etc/lsb-release | grep CODENAME | cut -d "=" -f 2`
24
25
 
25
26
virtinstall=0
26
27
labname=$1
50
51
sudo apt-get install software-properties-common -y
51
52
sudo apt-add-repository ppa:juju/stable -y
52
53
sudo apt-add-repository ppa:maas/stable -y
53
 
sudo apt-add-repository cloud-archive:pike -y
 
54
if [ "bionic" == "$opnfvdistro" ]; then
 
55
    echo "no cloud archive needed"
 
56
else
 
57
    sudo apt-add-repository cloud-archive:pike -y
 
58
fi
 
59
 
54
60
if [ "aarch64" == "$NODE_ARCTYPE" ]; then
55
 
sudo add-apt-repository ppa:ubuntu-cloud-archive/pike-staging -y
 
61
    if [ "bionic" == "$opnfvdistro" ]; then
 
62
        echo "no repository needed"
 
63
    else
 
64
        sudo add-apt-repository ppa:ubuntu-cloud-archive/pike-staging -y
 
65
    fi
56
66
fi
57
67
sudo apt-get update -y || true
58
68
#sudo apt-get dist-upgrade -y
59
69
 
60
 
sudo apt-get install bridge-utils openssh-server bzr git virtinst qemu-kvm libvirt-bin \
 
70
if [ "bionic" == "$opnfvdistro" ]; then
 
71
    sudo apt-get install bridge-utils openssh-server bzr git virtinst qemu-kvm libvirt-bin \
 
72
             maas maas-region-controller juju python-pip python-psutil python-openstackclient \
 
73
             python-congressclient gsutil pastebinit python-jinja2 sshpass \
 
74
             openssh-server vlan ipmitool jq expect snap -y --allow-unauthenticated
 
75
    sudo snap install charm
 
76
else
 
77
    sudo apt-get install bridge-utils openssh-server bzr git virtinst qemu-kvm libvirt-bin \
61
78
             maas maas-region-controller juju python-pip python-psutil python-openstackclient \
62
79
             python-congressclient gsutil charm-tools pastebinit python-jinja2 sshpass \
63
80
             openssh-server vlan ipmitool jq expect snap -y --allow-unauthenticated
 
81
fi
64
82
 
65
83
if [ "aarch64" == "$NODE_ARCTYPE" ]; then
66
84
    sudo apt-get install qemu qemu-efi qemu-system-aarch64 -y --allow-unauthenticated