~ajkavanagh/+junk/useful-things

« back to all changes in this revision

Viewing changes to charm-manual-testing/manila/v2_keystone/01-deploy.sh

  • Committer: Alex Kavanagh
  • Date: 2016-12-01 17:01:49 UTC
  • Revision ID: alex.kavanagh@canonical.com-20161201170149-ytewr1hw7z2xre8o
Added serverstack.yaml for juju & manila testing scripts

Note that the manila testing scripts are for serverstack ONLY.
There's a different github repo for manual testing of
manila.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#/bin/bash
 
2
 
 
3
# deploy the openstack bundle using Juju 1.x or 2.0
 
4
 
 
5
# This assumes that you have bootstrapped and (for Juju 2.0) switched to the
 
6
# model.
 
7
set -ex
 
8
 
 
9
version=$(juju --version | head -c 1)
 
10
if [ "$version" == "1" ]; then
 
11
    juju-deployer -L -c manila.yaml
 
12
elif [ "$version" == "2" ]; then
 
13
    juju deploy manila-juju-2.0.yaml
 
14
else
 
15
    echo "Can't work with version $version"
 
16
    exit 1
 
17
fi
 
18