~openstack-charm-testers/openstack-charm-testing/openstack-monitoring

« back to all changes in this revision

Viewing changes to tools/sec_groups.sh

  • Committer: Edward Hope-Morley
  • Date: 2016-12-05 15:01:45 UTC
  • mfrom: (220.1.37 openstack-charm-testing)
  • Revision ID: edward.hope-morley@canonical.com-20161205150145-5xs44qcs5ifqsnl5
rebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
# Set n-g mtu; add sec groups for basic access
3
3
 
4
 
juju set neutron-gateway instance-mtu=1300
 
4
juju set neutron-gateway instance-mtu=1300 ||
 
5
    juju config neutron-gateway instance-mtu=1300
 
6
 
5
7
for port in 22 80 443 3128; do
6
8
        nova secgroup-add-rule default tcp $port $port 0.0.0.0/0
7
9
        nova secgroup-add-rule default tcp $port $port ::/0