You’re hitting this bug: https://tickets.opscode.com/browse/CHEF-5011
Which means you have code like:
template “path” do
# correct code
something_that_raises_no_method_error
end
Though this bug does not impact any correct chef code, it makes debugging difficult so we’re going to release an update to fix it soon.
--
Daniel DeLeo
> (xxx-prod) Douglass-Mac-mini: knife-eu2 node show osg04-eu2.xxx.net (http://osg04-eu2.xxx.net)
On Friday, February 14, 2014 at 12:40 PM, Douglas Garstang wrote:
> I've just started trying to use environments in chef. Everything worked find locally with vagrant, but after uploading the cookbook to the target machine, and attempting to do a chef client run, I am seeing this error:
>
> NoMethodError
> -------------
> No resource or method named `template' for `Chef::Recipe "default"'
>
> I have no idea what is going on here. If chef can't find it's own template resource, then something is seriously wrong. This is a fresh instance.
>
> I can confirm my environment is there...
>
> (xxx-prod) Douglass-Mac-mini: knife-eu2 environment show eu2-prod
> chef_type: environment
> cookbook_versions:
> default_attributes:
> description:
> json_class: Chef::Environment
> name: eu2-prod
> override_attributes:
>
> I can also confirm that the node belongs to the environment:
>
> Node Name: osg04-eu2.xxx.net (http://osg04-eu2.xxx.net)
> Environment: eu2-prod
> FQDN:
> IP:
> Run List: role[location_eu2_prod], role[role_base], role[role_osg]
> Roles:
> Recipes:
> Platform:
> Tags:
>
> What gives?
>
> Doug.
Archive powered by MHonArc 2.6.16.