laradji / zabbix

Zabbix chef cookbook
Apache License 2.0
91 stars 125 forks source link

node['fqdn'] should be lazy evalued during template rendering #205

Open gionn opened 9 years ago

gionn commented 9 years ago

Hi,

we are using the hostname cookbook (https://github.com/3ofcoins/chef-cookbook-hostname) to configure /etc/hostname in our nodes, that correctly issue an ohai reload after having changing it, however due to how chef evaluates attributes, this recipe will continue to use the previous value of node['fqdn'], so at the template resource should be better to use the lazy evaluation to make it properly works.

Thanks!