Add OneLab Helm chart, Argo CD Application, and GitOps values for k3s
Made-with: Cursor
This commit is contained in:
21
app/reconfigure.sh
Normal file
21
app/reconfigure.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
#!/bin/bash
|
||||
# Usage: ./reconfigure.sh [--no-pull]
|
||||
|
||||
onelab_no_pull=""
|
||||
|
||||
for arg in "$@"; do
|
||||
if [[ "$arg" == "--no-pull" ]]; then
|
||||
onelab_no_pull="no-pull"
|
||||
fi
|
||||
done
|
||||
|
||||
LOG_PATH="./logs/ansible/$(date +%F)-ansible.log"
|
||||
PLAYBOOK="./installation/1.27.0/app/playbooks/reconfigure.yml"
|
||||
EXTRA_VARS=()
|
||||
|
||||
if [[ -n "$onelab_no_pull" ]]; then
|
||||
EXTRA_VARS+=("-e" "policy=$onelab_no_pull")
|
||||
fi
|
||||
|
||||
ANSIBLE_LOG_PATH="$LOG_PATH" ansible-playbook "$PLAYBOOK" "${EXTRA_VARS[@]}"
|
||||
Reference in New Issue
Block a user