Commit 0d8a8a30 authored by Daniel Baur's avatar Daniel Baur

...

parent bb683838
...@@ -44,6 +44,7 @@ def install(): ...@@ -44,6 +44,7 @@ def install():
def writeConfig(subject=None): def writeConfig(subject=None):
subject = subject or ctx subject = subject or ctx
postgre_ip_address = subject.instance.runtime_properties.postgre_ip_address
template = Template(ctx.get_resource(TEMPLATE_RESOURCE_NAME)) template = Template(ctx.get_resource(TEMPLATE_RESOURCE_NAME))
...@@ -52,7 +53,7 @@ def writeConfig(subject=None): ...@@ -52,7 +53,7 @@ def writeConfig(subject=None):
config = subject.node.properties.copy() config = subject.node.properties.copy()
config.update(dict( config.update(dict(
postgre_ip=subject.instance.runtime_properties.postgre_ip_address)) postgre_ip=postgre_ip_address))
ctx.logger.debug('Rendering the Jinja2 template to {0}.'.format(CONFIG_PATH)) ctx.logger.debug('Rendering the Jinja2 template to {0}.'.format(CONFIG_PATH))
ctx.logger.debug('The config dict: {0}.'.format(config)) ctx.logger.debug('The config dict: {0}.'.format(config))
......
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