Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 1 | # tempest.sh - DevStack extras script |
| 2 | |
Dean Troyer | cdf3d76 | 2013-10-15 09:42:43 -0500 | [diff] [blame] | 3 | if is_service_enabled tempest; then |
| 4 | if [[ "$1" == "source" ]]; then |
| 5 | # Initial source |
| 6 | source $TOP_DIR/lib/tempest |
| 7 | elif [[ "$1" == "stack" && "$2" == "install" ]]; then |
| 8 | echo_summary "Installing Tempest" |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 9 | install_tempest |
Dean Troyer | cdf3d76 | 2013-10-15 09:42:43 -0500 | [diff] [blame] | 10 | elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then |
| 11 | # Tempest config must come after layer 2 services are running |
| 12 | : |
| 13 | elif [[ "$1" == "stack" && "$2" == "extra" ]]; then |
| 14 | echo_summary "Initializing Tempest" |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 15 | configure_tempest |
Attila Fazekas | 1d29d8b | 2013-01-07 15:51:32 +0100 | [diff] [blame] | 16 | init_tempest |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 17 | fi |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 18 | |
Dean Troyer | cdf3d76 | 2013-10-15 09:42:43 -0500 | [diff] [blame] | 19 | if [[ "$1" == "unstack" ]]; then |
| 20 | # no-op |
| 21 | : |
| 22 | fi |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 23 | |
Dean Troyer | cdf3d76 | 2013-10-15 09:42:43 -0500 | [diff] [blame] | 24 | if [[ "$1" == "clean" ]]; then |
| 25 | # no-op |
| 26 | : |
| 27 | fi |
| 28 | fi |
Dean Troyer | 768295e | 2013-01-09 13:42:03 -0600 | [diff] [blame] | 29 | |