{"action":"opened","issue":{"url":"https://api.github.com/repos/atomic-penguin/cookbook-certificate/issues/46","labels_url":"https://api.github.com/repos/atomic-penguin/cookbook-certificate/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/atomic-penguin/cookbook-certificate/issues/46/comments","events_url":"https://api.github.com/repos/atomic-penguin/cookbook-certificate/issues/46/events","html_url":"https://github.com/atomic-penguin/cookbook-certificate/issues/46","id":58975784,"number":46,"title":"Use lazy attribute evaluation for the fqdn references","user":{"login":"fletchowns","id":153107,"avatar_url":"https://avatars.githubusercontent.com/u/153107?v=3","gravatar_id":"","url":"https://api.github.com/users/fletchowns","html_url":"https://github.com/fletchowns","followers_url":"https://api.github.com/users/fletchowns/followers","following_url":"https://api.github.com/users/fletchowns/following{/other_user}","gists_url":"https://api.github.com/users/fletchowns/gists{/gist_id}","starred_url":"https://api.github.com/users/fletchowns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fletchowns/subscriptions","organizations_url":"https://api.github.com/users/fletchowns/orgs","repos_url":"https://api.github.com/users/fletchowns/repos","events_url":"https://api.github.com/users/fletchowns/events{/privacy}","received_events_url":"https://api.github.com/users/fletchowns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T21:50:27Z","updated_at":"2015-02-25T21:50:27Z","closed_at":null,"body":"In order to be compatible with cookbooks that set the hostname during a converge like the [system cookbook](https://github.com/xhost-cookbooks/system), can we change the references to ```node['fqdn']``` to use [lazy attribute evaluation](https://docs.chef.io/resource_common.html#lazy-attribute-evaluation)? See [this issue](https://github.com/xhost-cookbooks/system/issues/7) for some background info.\r\n\r\nI had to use this the following as a workaround:\r\n```\r\nsome_cert = certificate_manage \"wildcard\" do\r\n  cert_file lazy { \"#{node['fqdn']}.pem\" }\r\n  key_file lazy { \"#{node['fqdn']}.key\" }\r\n  chain_file lazy { \"#{node['fqdn']}-bundle.crt\" }\r\nend\r\n```"}}