blob: f68a14680f96f9d3882e83e40ce0acfe63ef97a3 [file] [log] [blame]
Dean Troyer1023ff72014-01-27 14:56:44 -06001# ironic.sh - Devstack extras script to install ironic
2
3if is_service_enabled ir-api ir-cond; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/ironic
7 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing Ironic"
9 install_ironic
10 install_ironicclient
11 cleanup_ironic
12 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
13 echo_summary "Configuring Ironic"
14 configure_ironic
15
16 if is_service_enabled key; then
17 create_ironic_accounts
18 fi
19
20 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
21 # Initialize ironic
22 init_ironic
23
24 # Start the ironic API and ironic taskmgr components
25 echo_summary "Starting Ironic"
26 start_ironic
27 fi
28
29 if [[ "$1" == "unstack" ]]; then
30 stop_ironic
31 cleanup_ironic
32 fi
33fi