File: plugin.sh

package info (click to toggle)
python-osprofiler 1.2.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 460 kB
  • sloc: python: 2,546; makefile: 196; sh: 43
file content (24 lines) | stat: -rw-r--r-- 628 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
# DevStack extras script to install Rally

# Save trace setting
XTRACE=$(set +o | grep xtrace)
set -o xtrace

source $DEST/osprofiler/devstack/lib/osprofiler

if [[ "$1" == "source" ]]; then
    # Initial source
    source $TOP_DIR/lib/rally
# elif [[ "$1" == "stack" && "$2" == "install" ]]; then
#    echo_summary "Installing OSprofiler"
#    install_rally
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
    echo_summary "Configuring OSprofiler"
    configure_osprofiler
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
    echo_summary "Initializing OSprofiler"
    init_osprofiler
fi

# Restore xtrace
$XTRACE