File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ if [ -z "$OS_AUTH_URL" ]; then
4545fi
4646
4747if neutron net-list| grep -q $DEIS_NETWORK & > /dev/null; then
48- NETWORK_ID=$( neutron net-list | grep internal | awk -F' | ' ' {print $2}' )
48+ NETWORK_ID=$( neutron net-list | grep $DEIS_NETWORK | awk -F' | ' ' {print $2}' )
4949else
5050 echo_yellow " Creating deis private network..."
5151 CIDR=${DEIS_CIDR:- 10.21.12.0/ 24}
5858
5959if ! neutron security-group-list | grep -q $DEIS_SECGROUP & > /dev/null; then
6060 neutron security-group-create $DEIS_SECGROUP
61+ # Allow SSH from anywhere.
6162 neutron security-group-rule-create --protocol tcp --remote-ip-prefix 0/0 --port-range-min 22 --port-range-max 22 $DEIS_SECGROUP
62- neutron security-group-rule-create --protocol tcp --remote-ip-prefix 0/0 --port-range-min 2222 --port-range-max 22222 $DEIS_SECGROUP
63+ # Allow git push from anywhere
64+ neutron security-group-rule-create --protocol tcp --remote-ip-prefix 0/0 --port-range-min 2222 --port-range-max 2222 $DEIS_SECGROUP
65+ # allow web from anywhere
6366 neutron security-group-rule-create --protocol tcp --remote-ip-prefix 0/0 --port-range-min 80 --port-range-max 80 $DEIS_SECGROUP
67+ # allow ping from anywhere.
6468 neutron security-group-rule-create --protocol icmp --remote-ip-prefix 0/0 $DEIS_SECGROUP
69+ # allow intra-sec-group communication
70+ neutron security-group-rule-create --remote-group-id $DEIS_SECGROUP $DEIS_SECGROUP
6571fi
6672
6773if [ -z " $DEIS_NUM_INSTANCES " ]; then
You can’t perform that action at this time.
0 commit comments