Adds Firewall rules for neutron access.
Allows connection to the neutron api service only for: CONFIG_NEUTRON_SERVER_HOST CONFIG_NEUTRON_L3_HOSTS CONFIG_NEUTRON_DHCP_HOSTS CONFIG_NEUTRON_METADATA_HOSTS CONFIG_NOVA_COMPUTE_HOSTS This patch is for neutron only, rules for the other services are being developed since the bug addresses the entire openstack installation. Fixes (partially): rhbz#1002063 Change-Id: I1e850ed9f205567a05e8115d1ce9c3644cd705a9
This commit is contained in:
@@ -377,6 +377,12 @@ def createManifest(config):
|
|||||||
elif controller.CONF['CONFIG_NEUTRON_L2_PLUGIN'] == 'linuxbridge':
|
elif controller.CONF['CONFIG_NEUTRON_L2_PLUGIN'] == 'linuxbridge':
|
||||||
manifest_data = getManifestTemplate("neutron_lb_plugin.pp")
|
manifest_data = getManifestTemplate("neutron_lb_plugin.pp")
|
||||||
appendManifestFile(manifest_file, manifest_data, 'neutron')
|
appendManifestFile(manifest_file, manifest_data, 'neutron')
|
||||||
|
# Firewall Rules
|
||||||
|
config['FIREWALL_ALLOWED'] = ",".join(["'%s'" % i for i in q_hosts])
|
||||||
|
config['FIREWALL_SERVICE_NAME'] = "neutron"
|
||||||
|
config['FIREWALL_PORTS'] = "'9696'"
|
||||||
|
manifest_data = getManifestTemplate("firewall.pp")
|
||||||
|
appendManifestFile(manifest_file, manifest_data, 'neutron')
|
||||||
|
|
||||||
def createKeystoneManifest(config):
|
def createKeystoneManifest(config):
|
||||||
manifestfile = "%s_keystone.pp"%controller.CONF['CONFIG_KEYSTONE_HOST']
|
manifestfile = "%s_keystone.pp"%controller.CONF['CONFIG_KEYSTONE_HOST']
|
||||||
|
|||||||
@@ -4,8 +4,3 @@ class { 'neutron::server':
|
|||||||
enabled => true,
|
enabled => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
firewall { '001 neutron incoming':
|
|
||||||
proto => 'tcp',
|
|
||||||
dport => ['9696'],
|
|
||||||
action => 'accept',
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user