lazy evaluation of the template variables

Signed-off-by: Markus Wagner <markus.wagner@open-xchange.com>
This commit is contained in:
Markus Wagner 2017-02-09 15:37:16 +01:00
parent 1c883490db
commit 9f917c5e27

View File

@ -135,7 +135,9 @@ end
group node['root_group']
mode '0644'
notifies :restart, 'service[postfix]'
variables(settings: node['postfix'][cfg])
variables(
lazy { { settings: node['postfix'][cfg] } }
)
cookbook node['postfix']["#{cfg}_template_source"]
end
end