franco / chef-hostname

Cookbook "hostname" for Opscode Chef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Sets hostname and FQDN of the node.

Attributes

See attributes/default.rb for default values.

Expects node[:set_fqdn] to be an string containing the node FQDN.

Also, Chef reload method after hostname/FQDN update can be specified at node[:set_fqdn_reload_method]:

  • restart - Restart Chef (by default)

  • reload - Reload Ohai

Usage

Node configuration example to set hostname node and FQDN node.domain.com:

{
  "set_fqdn": "node.domain.com",
  "run_list": [
    "recipe[hostname]"
  ]
}

About

Cookbook "hostname" for Opscode Chef


Languages

Language:Ruby 100.0%