Can I set fqdn for chef nodes?

I have several servers with a custom internal local domain - x.local. So, I have s1.x.local servers, etc. My knife reports fqdn as s1.domain.com. Can I change this without changing the names that the servers think they have? Or do I need to change server names? Thanks.

+7
source share
1 answer

You can, but it will not remain set for the value you give it.

The FQDN attribute is what is known as an automatic attribute in a chef. He sets Ohai every time Ohai runs.

Therefore, although you can change the value of the FQDN attribute, the next time Ohai starts, it will return the value returned by hostname --fqdn .

Therefore, as stated above, if you want to constantly change the FQDN attribute, you will need to change the host name.

+11
source

All Articles