From 40e03d253b2f1f2d0166217bd48789e5013562b5 Mon Sep 17 00:00:00 2001 From: egmsft Date: Fri, 12 Apr 2024 14:17:02 -0500 Subject: [PATCH] fixing bug that causes ood playbook failure with basic auth --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 2d54dd400..9d9f4be7a 100755 --- a/install.sh +++ b/install.sh @@ -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 @@ -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 ;; *)