Skip to content
Snippets Groups Projects
Commit ae41ed0c authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Merge branch 'feat-dynamic-hosts' into 'feat-hpc-factory'

feat: dynamic create hosts inventory file

See merge request !133
parents 94c65d40 692379cb
No related branches found
No related tags found
2 merge requests!133feat: dynamic create hosts inventory file,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
Pipeline #12222 passed with stage
in 59 seconds
...@@ -199,7 +199,11 @@ deploy_ssh_proxy_node: ...@@ -199,7 +199,11 @@ deploy_ssh_proxy_node:
git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME} git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME} cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME} git checkout ${CI_COMMIT_REF_NAME}
ansible-playbook -c local -i 127.0.0.1, --extra-vars="$EXTRA_VARS" ansible/cluster.yml | tee -a /tmp/ansible.log cat >> ansible/hosts<<EEOF
[$ENV]
127.0.0.1
EEOF
ansible-playbook -c local -i ansible/hosts --extra-vars="$EXTRA_VARS" ansible/cluster.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME} rm -rf /tmp/${CI_PROJECT_NAME}
EOF EOF
- | - |
......
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