---
+# These defaults are present to allow certain tasks to no-op if a secrets repo
+# hasn't been defined. If you want to override these, do so in the secrets repo
+# itself. We override these in $repo/ansible/inventory/group_vars/cobbler.yml
+secrets_repo:
+ name: UNDEFINED
+ url: null
+
# Where to download ISOs
iso_dir: /var/lib/cobbler/isos
# Mount point to use for ISOs during import
export USER=root
export HOME=/root
ANSIBLE_CM_PATH=/root/ceph-cm-ansible
+SECRETS_REPO_NAME={{ secrets_repo.name }}
# Bail if the ssh port isn't open, as will be the case when this is run
# while the installer is still running. When this is triggered by
mkdir -p /var/log/ansible
+if [ $SECRETS_REPO_NAME != 'UNDEFINED' ]
+then
+ ANSIBLE_SECRETS_PATH=/root/$SECRETS_REPO_NAME
+ pushd $ANSIBLE_SECRETS_PATH
+ git pull
+ popd
+fi
pushd $ANSIBLE_CM_PATH
+git pull
export ANSIBLE_SSH_PIPELINING=1
export ANSIBLE_HOST_KEY_CHECKING=False
# Tell ansible to create users and populate authorized_keys