~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:30:11 UTC
  • mfrom: (743.1.2)
  • Revision ID: git-v1:ab8d1ec481c222870a27e2f7c3c7b6d5465252ce
Merge "Revert "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`
25
24
 
26
25
virtinstall=0
27
26
labname=$1
51
50
sudo apt-get install software-properties-common -y
52
51
sudo apt-add-repository ppa:juju/stable -y
53
52
sudo apt-add-repository ppa:maas/stable -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
 
 
 
53
sudo apt-add-repository cloud-archive:pike -y
60
54
if [ "aarch64" == "$NODE_ARCTYPE" ]; then
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
 
55
sudo add-apt-repository ppa:ubuntu-cloud-archive/pike-staging -y
66
56
fi
67
57
sudo apt-get update -y || true
68
58
#sudo apt-get dist-upgrade -y
69
59
 
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 \
 
60
sudo apt-get install bridge-utils openssh-server bzr git virtinst qemu-kvm libvirt-bin \
78
61
             maas maas-region-controller juju python-pip python-psutil python-openstackclient \
79
62
             python-congressclient gsutil charm-tools pastebinit python-jinja2 sshpass \
80
63
             openssh-server vlan ipmitool jq expect snap -y --allow-unauthenticated
81
 
fi
82
64
 
83
65
if [ "aarch64" == "$NODE_ARCTYPE" ]; then
84
66
    sudo apt-get install qemu qemu-efi qemu-system-aarch64 -y --allow-unauthenticated
86
68
 
87
69
sudo -H pip install --upgrade pip
88
70
 
 
71
 
89
72
#
90
73
# Config preparation
91
74
#