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.
Jordan Dea-Mattson
source share