Skip to content
Snippets Groups Projects
Commit 985552c9 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
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
......
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