[Packstack] enchange ipv6 support
We should support ipv6 or ipv4 only installation and we should set firewall according to ip version. Resolves-Bug: rhbz#1185652 Change-Id: I7bacf81373a6e0567e0c3fdebacf47cd5c683ad2
This commit is contained in:

committed by
Gael Chamoulaud

parent
b1049fd9f9
commit
aa45027939
@@ -105,6 +105,11 @@ def create_manifest(config, messages):
|
||||
suffix = 'noinstall'
|
||||
host = config['CONFIG_CONTROLLER_HOST']
|
||||
|
||||
if config['CONFIG_IP_VERSION'] == 'ipv6':
|
||||
config['CONFIG_MARIADB_HOST_URL'] = "[%s]" % host
|
||||
else:
|
||||
config['CONFIG_MARIADB_HOST_URL'] = host
|
||||
|
||||
manifestfile = "%s_mariadb.pp" % host
|
||||
manifestdata = [getManifestTemplate('mariadb_%s' % suffix)]
|
||||
|
||||
|
Reference in New Issue
Block a user