Skip to content

franco/chef-hostname

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%