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

feat: Run clusterhooks at deploy time for proxies

We are providing hooks into the cluster we need at deploy time rather
than baking them at build time.
This will enable us to build once and deploy across multiple clusters.
Otherwise, we need to build image whenever you need to deploy to a
different cluster.
parent c3847568
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,10 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
git clone ${CI_REPOSITORY_URL} /tmp/hpc-factory
cd /tmp/hpc-factory
git checkout ${CI_COMMIT_REF_NAME}
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
EOF
- >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create
......@@ -185,6 +189,10 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
git clone ${CI_REPOSITORY_URL} /tmp/hpc-factory
cd /tmp/hpc-factory
git checkout ${CI_COMMIT_REF_NAME}
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
EOF
- >
export SSH_PROXY_INSTANCE_ID=$(openstack server create
......
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