File: plugin.sh

package info (click to toggle)
python-shade 1.30.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,172 kB
  • sloc: python: 33,348; sh: 111; makefile: 17
file content (54 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Install and configure **shade** library in devstack
#
# To enable shade in devstack add an entry to local.conf that looks like
#
# [[local|localrc]]
# enable_plugin shade git://git.openstack.org/openstack-infra/shade

function preinstall_shade {
    :
}

function install_shade {
    if use_library_from_git "shade"; then
        # don't clone, it'll be done by the plugin install
        setup_dev_lib "shade"
    else
        pip_install "shade"
    fi
}

function configure_shade {
    :
}

function initialize_shade {
    :
}

function unstack_shade {
    :
}

function clean_shade {
    :
}

# This is the main for plugin.sh
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
    preinstall_shade
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
    install_shade
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
    configure_shade
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
    initialize_shade
fi

if [[ "$1" == "unstack" ]]; then
    unstack_shade
fi

if [[ "$1" == "clean" ]]; then
    clean_shade
fi