[chef] Re: node name not being used for cookbook_file file specificity with chef-solo.


Chronological Thread 
  • From: Joshua Timberman < >
  • To:
  • Subject: [chef] Re: node name not being used for cookbook_file file specificity with chef-solo.
  • Date: Thu, 24 May 2012 12:48:59 -0600

Hello,

On Tue, May 22, 2012 at 3:34 PM, William McVey 
< >
 wrote:
> 'm working on managing some hosts on a remote network using chef-solo. In a
> cookbook recipe, I'm trying to push out a host-specific configuration file
> using file specificity and was surprised that a cookbook_file resource
> wasn't getting the nodename specific file location.

The node name is not used, the FQDN is. The per-host directories
should be named "host-FQDN-of-node". For example, if your managed
node's FQDN is "lucid32.example.com", then this path to the file
source you want to manage in your cookbook would be:

cookbooks/redacted/files/host-lucid32.example.com/inetfilter

-- 
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman



Archive powered by MHonArc 2.6.16.

§