[chef] RE: Re: RE: fqdn and Chef Server


Chronological Thread 
  • From: "Kadel-Garcia, Nico" < >
  • To: " " < >
  • Subject: [chef] RE: Re: RE: fqdn and Chef Server
  • Date: Thu, 29 May 2014 21:02:32 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;

I'm afraid that the latest fqdn cookbook is bombing out on my CentOS 6 test 
environment as follows, so I really can't recommend it until this sort of 
problemis resolved.


--
Nico Kadel-Garcia
Senior Systems Consultant
Email: 

Cell Phone: +1.339.368.2428





Starting Chef Client, version 11.12.4
resolving cookbooks for run list: ["fqdn"]
Synchronizing Cookbooks:
  - now
  - hostsfile
  - line
  - fqdn
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/fqdn/recipes/default.rb
================================================================================


ArgumentError
-------------
node['machine_fqdn'] must be set


Cookbook Trace:
---------------
  /var/cache/chef/cookbooks/fqdn/libraries/machine_fqdn.rb:17:in 
`sanity_check'
  /var/cache/chef/cookbooks/fqdn/libraries/machine_fqdn.rb:10:in `initialize'
  /var/cache/chef/cookbooks/fqdn/recipes/_rhel.rb:21:in `new'
  /var/cache/chef/cookbooks/fqdn/recipes/_rhel.rb:21:in `from_file'
  /var/cache/chef/cookbooks/now/libraries/default.rb:23:in 
`include_recipe_now'
  /var/cache/chef/cookbooks/fqdn/recipes/default.rb:27:in `from_file'


Relevant File Content:
----------------------
/var/cache/chef/cookbooks/fqdn/libraries/machine_fqdn.rb:

 10:      sanity_check node
 11:      set_attributes node
 12:    end
 13:
 14:    private
 15:
 16:    def sanity_check(node)
 17>>     fail ArgumentError, "node['machine_fqdn'] must be set" if 
node['machine_fqdn'].nil?
 18:      dots = node['machine_fqdn'].split('.').count - 1
 19:      fail ArgumentError, 'There must be least one dot in an FQDN' if 
dots < 1
 20:    end
 21:
 22:    def set_attributes(node)
 23:      @fqdn = node['machine_fqdn']
 24:      head, *tail = node['machine_fqdn'].split('.')
 25:
 26:      if node['machine_fqdn_as_hostname']




Running handlers:
Running handlers complete




Archive powered by MHonArc 2.6.16.

§