Skip to content
Snippets Groups Projects

Create multi homed proxy

1 file
+ 14
0
Compare changes
  • Side-by-side
  • Inline
  • We wanted to create a multi-homed instance connected to proxy-net and
    internal-net because the nfs-mounts are shared via internal net by the server.
    However, the NIC on internal-net wasn’t getting an IP assigned automatically
    and this was creating an issue for NFS server to communicate with the clients.
    So we created a port and assigned that port during instance creation
+ 14
0
@@ -155,10 +155,17 @@ deploy_http_proxy_node:
@@ -155,10 +155,17 @@ deploy_http_proxy_node:
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
EOF
 
- >
 
export HTTP_PROXY_INSTANCE_PORT=$(openstack port create
 
-c id -f value --network $INTERNALNET
 
--fixed-ip subnet=$INTERNALNET_SN,ip-address=$INTERNALNET_IP
 
--disable-port-security
 
${HTTP_PROXY_INSTANCE_NAME}_internal_port)
- >
- >
export HTTP_PROXY_INSTANCE_ID=$(openstack server create
export HTTP_PROXY_INSTANCE_ID=$(openstack server create
-c id -f value --image $HTTP_PROXY_IMAGE_ID
-c id -f value --image $HTTP_PROXY_IMAGE_ID
--network $PROXY_NETWORK
--network $PROXY_NETWORK
 
--port $HTTP_PROXY_INSTANCE_PORT
--security-group webserver_sec_group
--security-group webserver_sec_group
--security-group allow-ssh
--security-group allow-ssh
--user-data user_data.txt
--user-data user_data.txt
@@ -196,10 +203,17 @@ deploy_ssh_proxy_node:
@@ -196,10 +203,17 @@ deploy_ssh_proxy_node:
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
ansible-playbook -c local -i 127.0.0.1, ansible/cheaha.yml | tee -a ansible.log
rm -rf /tmp/${CI_PROJECT_NAME}
rm -rf /tmp/${CI_PROJECT_NAME}
EOF
EOF
 
- >
 
export SSH_PROXY_INSTANCE_PORT=$(openstack port create
 
-c id -f value --network $INTERNALNET
 
--fixed-ip subnet=$INTERNALNET_SN,ip-address=$INTERNALNET_IP
 
--disable-port-security
 
$SSH_PROXY_INSTANCE_NAME_internal_port)
- >
- >
export SSH_PROXY_INSTANCE_ID=$(openstack server create
export SSH_PROXY_INSTANCE_ID=$(openstack server create
-c id -f value --image $SSH_PROXY_IMAGE_ID
-c id -f value --image $SSH_PROXY_IMAGE_ID
--network $PROXY_NETWORK
--network $PROXY_NETWORK
 
--port $SSH_PROXY_INSTANCE_PORT
--security-group allow-ssh
--security-group allow-ssh
--user-data user_data.txt
--user-data user_data.txt
--flavor $INSTANCE_FLAVOR
--flavor $INSTANCE_FLAVOR
Loading