[chef] Environment - No resource or method named `template'


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Environment - No resource or method named `template'
  • Date: Fri, 14 Feb 2014 12:40:56 -0800

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:

(xxx-prod) Douglass-Mac-mini: knife-eu2 node show osg04-eu2.xxx.net
Node Name:   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.

§