Skip to content
Snippets Groups Projects
Commit 6375a047 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

feat: add node exporter security group when enable

Using flag ENBLE_NODE_EXPORTER
parent fd1f8799
No related branches found
No related tags found
No related merge requests found
......@@ -209,6 +209,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"
......@@ -259,6 +262,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"
......@@ -310,6 +316,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"
......
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