You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
Just commenting in case this is something being considered for refactor. The chef_lifecycle script in this repo is currently just a static file and greps for node_name in the client.rb to determine instance name.
Aight, so far I've been using user-data to craft a custom client.rb with the node_name set, the rationale being that names are based on a mix of instance tags + instance id and that the node_name would therefore never vary.
I'll need to test how our nodes behave to having the hostname changed in user-data, but I don't foresee any issues so far and will look into getting this changed for you. Alternately, it may even be possible to do something with firstrun.json.
Just commenting in case this is something being considered for refactor. The chef_lifecycle script in this repo is currently just a static file and greps for node_name in the client.rb to determine instance name.
Currently it is recommended to leave
node_name
out of the chef client.rb, see node_name setting here and let chef determine it automatically from ohai data. Sonode_name
seems like sort of an odd thing to depend on here: https://github.com/JonathanSerafini/chef-cfn/blob/master/files/default/chef_lifecycle#L15Maybe this could be moved to a template that is rendered with the node name via ohai data or be converted to just use the ohai data directly.
Thanks for providing this cookbook.
The text was updated successfully, but these errors were encountered: