Skip to content
Snippets Groups Projects
Commit 64eeb7cf authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

removed DEV_KEY value from file and added ansible-playbook command to run...

removed DEV_KEY value from file and added ansible-playbook command to run cheaha.yml file in the user_data file


This allows to run the playbook post the build for the desired env during deploy
parent c3847568
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ variables:
PKR_VAR_networks: '["8cf2f12e-905d-46d9-bc70-b0897c65f75a"]'
GIT_AUTHOR_NAME: "Gitlab runner"
GIT_AUTHOR_EMAIL: "gitlab@runner"
DEV_KEY: "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBXBfBmQDq1HK8U0zK6gDF0jyfWChuFYEPiRp1Wgl0XFJU7JoUngqkE/GAic8kCzKW0hPMiweSjmWdKlAapv/dk= krishmoodbidri@krishs-MacBook-Pro-3.local"
DEV_KEY: ""
INSTANCE_FLAVOR: "m1.medium-ruffner"
HTTP_PROXY_INSTANCE_NAME: "http-proxy"
SSH_PROXY_INSTANCE_NAME: "ssh-proxy"
......@@ -149,6 +149,7 @@ deploy_http_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ansible-playbook -i localhost, -c local ansible/cheaha.yml
EOF
- >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create
......@@ -185,6 +186,7 @@ deploy_ssh_proxy_node:
cat > user_data.txt <<EOF
#!/bin/bash
echo "$DEV_KEY" >> /root/.ssh/authorized_keys
ansible-playbook -i localhost, -c local ansible/cheaha.yml
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