Commit 217990a5 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow current profile changes.

parent 3ec22f0b
...@@ -72,7 +72,8 @@ class Recipe(GenericBaseRecipe): ...@@ -72,7 +72,8 @@ class Recipe(GenericBaseRecipe):
# Prepare all filestorages # Prepare all filestorages
server_snippet = "" server_snippet = ""
i = 0 i = 0
for address in self.options['address'].split(): name = self.options['name']
for address in self.options['backend-list'].split():
i += 1 i += 1
server_snippet += self.substituteTemplate( server_snippet += self.substituteTemplate(
snippet_filename, dict( snippet_filename, dict(
...@@ -85,7 +86,7 @@ class Recipe(GenericBaseRecipe): ...@@ -85,7 +86,7 @@ class Recipe(GenericBaseRecipe):
ip=self.options['ip'], ip=self.options['ip'],
port=self.options['port'], port=self.options['port'],
server_text=server_snippet, server_text=server_snippet,
server_check_path=server_check_path,) server_check_path=self.options['server-check-path'],)
template_filename = self.getTemplateFilename('haproxy.cfg.in') template_filename = self.getTemplateFilename('haproxy.cfg.in')
configuration_path = self.createFile( configuration_path = self.createFile(
self.options['conf-path'], self.options['conf-path'],
......
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