Skip to content
Snippets Groups Projects
Commit 296a6003 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-clusterhooks-at-deploy' into 'feat-hpc-factory'

feat: Run clusterhooks at deploy time for proxies

See merge request !108
parents c3847568 eded233b
No related branches found
No related tags found
2 merge requests!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.,!108feat: Run clusterhooks at deploy time for proxies
......@@ -149,6 +149,11 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME}
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
- >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create
......@@ -185,6 +190,11 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
git clone ${CI_REPOSITORY_URL} /tmp/${CI_PROJECT_NAME}
cd /tmp/${CI_PROJECT_NAME}
git checkout ${CI_COMMIT_REF_NAME}
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
- >
export SSH_PROXY_INSTANCE_ID=$(openstack server create
......
......@@ -34,3 +34,7 @@
- name: Set timezone to America/Chicago
community.general.timezone:
name: America/Chicago
retries: 3
delay: 3
register: result
until: not result.failed
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