File: plugin.sh

package info (click to toggle)
python-osprofiler 4.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 760 kB
  • sloc: python: 4,828; makefile: 170; sh: 161
file content (31 lines) | stat: -rw-r--r-- 837 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
#!/bin/bash
# DevStack extras script to install osprofiler

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

source $DEST/osprofiler/devstack/lib/osprofiler

if [[ "$1" == "stack" && "$2" == "install" ]]; then
    echo_summary "Configuring system services for OSProfiler"
    install_osprofiler_collector

elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
    echo_summary "Configuring OSProfiler"
    configure_osprofiler

elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
    echo_summary "Configuring Tempest"
    configure_osprofiler_in_tempest

elif [[ "$1" == "unstack" ]]; then
    if [[ "$OSPROFILER_COLLECTOR" == "jaeger" || \
            "$OSPROFILER_COLLECTOR" == "otlp" ]]; then
        echo_summary "Deleting jaeger docker container"
        drop_jaeger
    fi
fi

# Restore xtrace
$XTRACE