GrandTyRant / chef-cookbook-hostname

Chef cookbook to set node's hostname and FQDN.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DESCRIPTION:

Sets hostname and FQDN of the node.

ATTRIBUTES:

set_fqdn - FQDN to set.

The asterisk character will be replaced with node.name. This way, you can add to base role this:

default_attributes :set_fqdn => '*.project-domain.com'

and have node set its FQDN and hostname based on its chef node name (which is provided on chef-client first run's command line).

RECIPES:

default

Will set node's FQDN to value of set_fqdn attribute, and hostname to its host part (up to first dot).

vmware

hostname::vmware recipe sets hostname automatically using vmtoolsd. You do not need to set node["set_fqdn"].

The latest code is hosted at https://github.com/3ofcoins/chef-cookbook-hostname

About

Chef cookbook to set node's hostname and FQDN.