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
I set a hostname using set_fqdn and alone, that works. I setup an interfaces file using harryyeh/chef-ipaddress and that works. But try to do both in the same cookbook, to a system that currently has some other hostname set...
This fails because the data bag in servers has an id that doesn't match the current hostname, even if you list ipaddress after hostname in the run_list, those things are apparently checked at parse time, and the hostname hasn't been set yet. Haven't found any workaround other than manually setting hostname with sudo hostname on the host before trying the cookbook.
Not sure if this is similar to #17 or not. Reporting it here, since @harryyeh 's cookbook seems to be out of maintenance and you might be using something else that you can tell me about, but maybe I should cross-post the issue there.
The text was updated successfully, but these errors were encountered:
I didn't, actually :/ I just settled on a multi stage process with one chef cookbook assuming that it knows how to set the network, and another after that does post-bootstrap stuff assuming it has already been set up correctly. If you have a better way, I am all ears!
I set a hostname using
set_fqdn
and alone, that works. I setup aninterfaces
file using harryyeh/chef-ipaddress and that works. But try to do both in the same cookbook, to a system that currently has some other hostname set...This fails because the data bag in servers has an
id
that doesn't match the current hostname, even if you listipaddress
afterhostname
in therun_list
, those things are apparently checked at parse time, and the hostname hasn't been set yet. Haven't found any workaround other than manually setting hostname withsudo hostname
on the host before trying the cookbook.Not sure if this is similar to #17 or not. Reporting it here, since @harryyeh 's cookbook seems to be out of maintenance and you might be using something else that you can tell me about, but maybe I should cross-post the issue there.
The text was updated successfully, but these errors were encountered: