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.
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!