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
1 merge request!3Change compute reference to login
...@@ -149,6 +149,11 @@ deploy_http_proxy_node: ...@@ -149,6 +149,11 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys 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 EOF
- > - >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create export HTTP_PROXY_INSTANCE_ID=$(openstack server create
...@@ -185,6 +190,11 @@ deploy_ssh_proxy_node: ...@@ -185,6 +190,11 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF cat > user_data.txt <<EOF
#!/bin/bash #!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys 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 EOF
- > - >
export SSH_PROXY_INSTANCE_ID=$(openstack server create export SSH_PROXY_INSTANCE_ID=$(openstack server create
......
...@@ -34,3 +34,7 @@ ...@@ -34,3 +34,7 @@
- name: Set timezone to America/Chicago - name: Set timezone to America/Chicago
community.general.timezone: community.general.timezone:
name: America/Chicago 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