[Keystone][Firewall] Open Keystone port for ALL
Fixes: bz#1041560 Change-Id: Id7dadfcab58263e80ead286973c03bf9ef5c2f88
This commit is contained in:
@@ -121,12 +121,7 @@ def initSequences(controller):
|
|||||||
def create_manifest(config):
|
def create_manifest(config):
|
||||||
manifestfile = "%s_keystone.pp" % config['CONFIG_KEYSTONE_HOST']
|
manifestfile = "%s_keystone.pp" % config['CONFIG_KEYSTONE_HOST']
|
||||||
manifestdata = getManifestTemplate("keystone.pp")
|
manifestdata = getManifestTemplate("keystone.pp")
|
||||||
hosts = set()
|
config['FIREWALL_ALLOWED'] = "'ALL'"
|
||||||
for key, value in host_iter(config):
|
|
||||||
if (key.find("MYSQL") != -1) or (key.find("QPID") != -1):
|
|
||||||
continue
|
|
||||||
hosts.add(value.strip())
|
|
||||||
config['FIREWALL_ALLOWED'] = ",".join(["'%s'" % i for i in hosts])
|
|
||||||
config['FIREWALL_SERVICE_NAME'] = "keystone"
|
config['FIREWALL_SERVICE_NAME'] = "keystone"
|
||||||
config['FIREWALL_PORTS'] = "'5000', '35357'"
|
config['FIREWALL_PORTS'] = "'5000', '35357'"
|
||||||
manifestdata += getManifestTemplate("firewall.pp")
|
manifestdata += getManifestTemplate("firewall.pp")
|
||||||
|
|||||||
Reference in New Issue
Block a user