Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rc/hpc-factory
  • louistw/hpc-factory
  • jpr/hpc-factory
  • krish94/hpc-factory
  • atlurie/hpc-factory
  • dwheel7/hpc-factory
6 results
Show changes
Commits on Source (2)
......@@ -199,6 +199,9 @@ deploy_http_proxy_node:
[$ENV]
127.0.0.1
EEOF
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
sed -i -E "s|(enable_node_exporter: ).*|\1true|" ansible/group_vars/all
fi
ansible-playbook -c local -i ansible/hosts --extra-vars="$EXTRA_VARS" ansible/cluster.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
......@@ -209,6 +212,9 @@ deploy_http_proxy_node:
cmd+=" --network $PROXY_NETWORK"
cmd+=" --security-group webserver_sec_group"
cmd+=" --security-group allow-ssh"
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
cmd+=" --security-group node-exporter"
fi
cmd+=" --user-data user_data.txt"
if [ -n "$HTTP_PROXY_PORT" ];then cmd+=" --port $HTTP_PROXY_PORT"; fi
cmd+=" --wait $HTTP_PROXY_INSTANCE_NAME"
......@@ -250,6 +256,9 @@ deploy_ssh_proxy_node:
[$ENV]
127.0.0.1
EEOF
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
sed -i -E "s|(enable_node_exporter: ).*|\1true|" ansible/group_vars/all
fi
ansible-playbook -c local -i ansible/hosts --extra-vars="$EXTRA_VARS" ansible/cluster.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
......@@ -259,6 +268,9 @@ deploy_ssh_proxy_node:
cmd+=" --flavor $INSTANCE_FLAVOR"
cmd+=" --network $PROXY_NETWORK"
cmd+=" --security-group allow-ssh"
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
cmd+=" --security-group node-exporter"
fi
cmd+=" --user-data user_data.txt"
if [ -n "$SSH_PROXY_PORT" ];then cmd+=" --port $SSH_PROXY_PORT"; fi
cmd+=" --wait $SSH_PROXY_INSTANCE_NAME"
......@@ -300,6 +312,9 @@ deploy_login_node:
[$ENV]
127.0.0.1
EEOF
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
sed -i -E "s|(enable_node_exporter: ).*|\1true|" ansible/group_vars/all
fi
s3cmd get --force -r --access_key=$AWS_ACCESS_KEY_ID --secret_key=$AWS_SECRET_ACCESS_KEY --host=$AWS_HOST --host-bucket=$AWS_HOST s3://cheaha-cloud-ansible-files/ /tmp/${CI_PROJECT_NAME}/ansible/files/
ansible-playbook -c local -i ansible/hosts --extra-vars="$EXTRA_VARS" ansible/cluster.yml | tee -a /tmp/ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
......@@ -310,6 +325,9 @@ deploy_login_node:
cmd+=" --flavor $INSTANCE_FLAVOR"
cmd+=" --network $INSTANCE_NETWORK"
cmd+=" --security-group allow-ssh"
if [ ${ENABLE_NODE_EXPORTER:-false} = true ]; then
cmd+=" --security-group node-exporter"
fi
cmd+=" --user-data user_data.txt"
if [ -n "$LOGIN_PORT" ];then cmd+=" --port $LOGIN_PORT"; fi
cmd+=" --wait $LOGIN_INSTANCE_NAME"
......