Skip to content

hw-cookbooks/dns

This branch is 8 commits ahead of, 4 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1cec6d4 · May 1, 2014

History

24 Commits
Jun 28, 2013
Aug 14, 2013
Aug 14, 2013
Aug 14, 2013
Aug 14, 2013
May 1, 2014
May 1, 2014
Aug 14, 2013
May 1, 2014
May 1, 2014
Aug 14, 2013
Jun 28, 2013

Repository files navigation

DNS

Create DNS records on a variety of providers and create DNS records for your nodes automatically.

Recipes

  • default create DNS entry for current node
  • fqdn updates node fqdn and hosts file
  • chef-client updates the chef-client config resource to include original node name

LWRP

  • actions: :create, :destroy

Example

dns 'dns.example.org' do
  credentials :some_cloud_token => '[TOKEN]', :some_cloud_key => '[KEY]'
  provider 'some_cloud'
  entry_value '127.0.2.2'
  domain 'example.org'
end

Attributes

  • node[:dns][:provider] - dns provider name (must be fog compatible)
  • node[:dns][:domain] - domain of the record
  • node[:dns][:credentials] - hash of connection credentials (must be fog compatible)
  • node[:dns][:disable] - disable creation of node dns record
  • node[:dns][:entry][:name] - dns entry name
  • node[:dns][:entry][:type] - dns entry type
  • node[:dns][:entry][:value] - dns entry value
  • node[:dns][:chef_client_config] - automatically include dns::chef-client recipe

Infos