[chef] Templates - Location Specificity - Not working


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

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<http://www.visioncritical.com/>  | @VisionCritical on 
Twitter<https://twitter.com/visioncritical>  |  Visit Vision Critical on 
LinkedIn<http://www.linkedin.com/company/vision-critical>

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<http://www.visioncritical.com/client-stories>

<<attachment: winmail.dat>>




Archive powered by MHonArc 2.6.16.

§