- To set and persist a hostname, set
node['net']['hostname']
. - To set and persist an FQDN, set
node['net']['FQDN']
andnode['net']['IP']
. - Then include
recipe[lxmx_hostname]
in your run_list.
The following platform families are supported by the cookbook:
- debian - Debian, Linux Mint, Ubuntu
- rhel - Amazon Linux, CentOS, Oracle Linux, Scientific Linux, Red Hat Enterprise Linux
- gentoo - Gentoo
This cookbook depends on the following external cookbooks:
Sets and persists node hostname using different approaches on different platforms.
node['net']['hostname']
- node hostname to set and persist.node['net']['FQDN']
- (optional) node FQDN to set and persist.node['net']['IP']
- node IP address, set if you're setting an FQDN.
Copyright:: Vasily Mikhaylichenko and LxMx.
Licensed under BSD license.
http://opensource.org/licenses/BSD-2-Clause