[chef] RE: Templates - Location Specificity - Not working


Chronological Thread 
  • From: Wade Peacock < >
  • To: " " < >
  • Subject: [chef] RE: Templates - Location Specificity - Not working
  • Date: Tue, 25 Jun 2013 19:38:59 +0000
  • Accept-language: en-CA, en-US

Doh.  Got it working. Had a comma not a period on directory name. My Bad.

 

 

From: Wade Peacock [mailto:
Sent: Tuesday, June 25, 2013 12:35 PM
To: ' '
Subject: [chef] Templates - Location Specificity - Not working

 

Hey All,

 

I've just had the need to choose a template based on node[:fqdn]

 

According to http://docs.opscode.com/essentials_cookbook_templates_location_specificity.html  it should work.

 

However during the chef-client run it does not seem to look for host-<fsdn> directories.

 

OS is oracle linux 5.x

Chef-client is version 10.26.0

 

Here is a sample of the error

 

Chef::Exceptions::FileNotFound

------------------------------

 

Cookbook 'mycookbook' (0.1.0) does not contain a file at any of these locations:

  templates/oracle-5.5/hosts.erb

  templates/oracle/hosts.erb

  templates/default/hosts.erb

 

It should be looking for:

templates/host-myhost.domain.com/hosts.erb

 

Anyone have any thoughts

 

 

Wade Peacock

Production IT - Automation/System Engineer  |  Vision Critical  

direct +1.604.629.9358  mobile +1.604.363.8137  

web visioncritical.com  | @VisionCritical on Twitter  |  Visit Vision Critical on LinkedIn   

 

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

 

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-stories

 




Archive powered by MHonArc 2.6.16.

§