~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/03-maasdeploy.sh

  • Committer: Narinder Gupta
  • Date: 2017-12-01 18:28:41 UTC
  • Revision ID: git-v1:961a72560c9c6d1a5c3cf50c8e3358f88e901ff5
modified for bionic support for future deployment.

Change-Id: Ife9d8e071d2ffb36238decfa0f1d934d1a0b0c88
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

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
68
86
 
69
87
sudo -H pip install --upgrade pip
70
88
 
71
 
 
72
89
#
73
90
# Config preparation
74
91
#