Skip to content
Snippets Groups Projects
Commit 0eae37ac authored by Arie Peterson's avatar Arie Peterson
Browse files

Generate keycloak password from ansible

parent e76718de
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
# Ignore files created during CI using test/ci-bootstrap.py
/test/group_vars/
/test/secrets/
/test/inventory.yml
# Etc
......
......@@ -31,7 +31,6 @@ bootstrap:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
# - mkdir -p --mode 700 ~/.ssh
- ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --create_droplet
- echo "import cosmos; cosmos.terminate_droplets_by_name(\"^ci-${CI_JOB_ID}\$\")"
- python3 -c "import cosmos; cosmos.terminate_droplets_by_name(\"^ci-${CI_JOB_ID}\$\")"
artifacts:
paths:
......
......@@ -6,4 +6,4 @@ domain: "example.com"
admin_email: "admin@example.com"
# Label of this deployment.
release_name: "test"
keycloak_password: 'baevooPee9ahkah8hew6heer5gooNooc'
keycloak_password: "{{ lookup('password', './secrets/keycloak_admin_password') }}"
../ansible/bootstrap.yml
\ No newline at end of file
......@@ -189,7 +189,7 @@ if __name__ == "__main__":
# Bootstrap
# playbook path here is relative to private_data_dir/project, see
# https://ansible-runner.readthedocs.io/en/latest/intro.html#inputdir
playbook='../ansible/bootstrap.yml'
playbook='./bootstrap.yml'
ansible_playbook_cmd = 'ansible-playbook %s' % playbook
log.info('Running %s', ansible_playbook_cmd)
......
../ansible/roles
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment