Skip to content

Commit

Permalink
fixing bug that causes ood playbook failure with basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
egmsft committed Apr 12, 2024
1 parent a76488f commit 40e03d2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ case $TARGET in
run_playbook add_local_users
run_playbook cccluster
run_playbook scheduler
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml $PLAYBOOKS_DIR/ood-overrides-auth-$OOD_AUTH.yml
if [ "$OOD_AUTH" == "basic" ]; then
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml
else
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml $PLAYBOOKS_DIR/ood-overrides-auth-$OOD_AUTH.yml
fi
run_playbook ood-custom
run_playbook telegraf
run_playbook chrony
Expand All @@ -195,7 +199,11 @@ case $TARGET in
run_playbook $TARGET
;;
ood)
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml $PLAYBOOKS_DIR/ood-overrides-auth-$OOD_AUTH.yml
if [ "$OOD_AUTH" == "basic" ]; then
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml
else
run_playbook ood $PLAYBOOKS_DIR/ood-overrides-common.yml $PLAYBOOKS_DIR/ood-overrides-$SCHEDULER.yml $PLAYBOOKS_DIR/ood-overrides-auth-$OOD_AUTH.yml
fi
run_playbook ood-custom
;;
*)
Expand Down

0 comments on commit 40e03d2

Please sign in to comment.