summaryrefslogtreecommitdiffstats
path: root/ci/clean.sh
blob: 105ef0cbed84eeb6b314a6e6302dd18541397be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -ex

if [ -d $HOME/.juju/environments ]; then
    echo " " > status.txt
    juju status  &>>status.txt || true
    if [ "$(grep -c "environment is not bootstrapped" status.txt )" -ge 1 ]; then
        echo " environment is not bootstrapped ..."
    else
        echo " environment is bootstrapped ..."
        juju destroy-environment demo-maas  -y
    fi
    rm -rf precise
    rm -rf trusty
    rm -rf xenial
    rm -rf $HOME/.juju/j*
    rm -rf $HOME/.juju/.deployer-store-cache
    rm -rf $HOME/.juju/environments
    rm -rf $HOME/.juju/ssh
fi
s="l l-Scalar l-Scalar-Plain">cinder-controller - glance - hosts: network sudo: True roles: - common - neutron-network - hosts: storage sudo: True roles: - common - cinder-volume - hosts: compute sudo: True roles: - common - nova-compute - neutron-compute - hosts: odl remote_user: root sudo: True roles: - odl