frontend: send ipv4 + ipv6 connection in slaves.

Useful if owner of slave defined a custom domain and has to define by himself DNS entry.
parent bf09f65a
...@@ -159,7 +159,12 @@ class Recipe(BaseSlapRecipe): ...@@ -159,7 +159,12 @@ class Recipe(BaseSlapRecipe):
self.logger.debug("Sending connection parameters of slave " self.logger.debug("Sending connection parameters of slave "
"instance: %s" % reference) "instance: %s" % reference)
try: try:
self.setConnectionDict(dict(site_url=url), reference) connection_dict = {
'frontend_ipv6_address': self.getGlobalIPv6Address(),
'frontend_ipv4_address': self.getLocalIPv4Address(),
'site_url': url
}
self.setConnectionDict(connection_dict, reference)
except: except:
self.logger.fatal("Error while sending slave %s informations: %s", self.logger.fatal("Error while sending slave %s informations: %s",
reference, traceback.format_exc()) reference, traceback.format_exc())
...@@ -167,8 +172,8 @@ class Recipe(BaseSlapRecipe): ...@@ -167,8 +172,8 @@ class Recipe(BaseSlapRecipe):
# Then set it for master instance # Then set it for master instance
self.setConnectionDict( self.setConnectionDict(
dict(site_url=apache_parameter_dict["site_url"], dict(site_url=apache_parameter_dict["site_url"],
domain_ipv6_address=self.getGlobalIPv6Address(), frontend_ipv6_address=self.getGlobalIPv6Address(),
domain_ipv4_address=self.getLocalIPv4Address())) frontend_ipv4_address=self.getLocalIPv4Address()))
# Promises # Promises
promise_config = dict( promise_config = dict(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment