[chef] Re: Re: unable to use json roles in chef 11.12.2


Chronological Thread 
  • From: Vasiliy Tolstov < >
  • To:
  • Subject: [chef] Re: Re: unable to use json roles in chef 11.12.2
  • Date: Sat, 15 Nov 2014 00:05:00 +0400

Thanks,but im double check and in all roles i have this

14 нояб. 2014 г. 22:26 пользователь "Daniel DeLeo" < "> > написал:


On Friday, November 14, 2014 at 8:30 AM, Vasiliy Tolstov wrote:

> Hello. All works fine before i'm switching to json roles.
> Now i have error like:
>
> qemu: [2014-11-14T16:06:40+00:00] INFO: Setting the run_list to
> ["role[role-base]", "role[role-vm]", "role[env-zone-00]",
> "role[env-role-base-00]", "role[env-role-vm-00]",
> "role[env-node-vm00-00]"] from CLI options
> qemu: [2014-11-14T16:06:40+00:00] DEBUG: Applying attributes from json file
> qemu: [2014-11-14T16:06:40+00:00] DEBUG: Platform is exherbo version 3.14.23
> qemu:
> qemu: ================================================================================
> qemu: Error expanding the run_list:
> qemu: ================================================================================
> qemu:
> qemu: Unexpected Error:
> qemu: -----------------
> qemu: NoMethodError: undefined method `run_list_for' for
> #<Array:0x0000000288a980>


You’re probably missing the `json_class` attribute. http://docs.getchef.com/essentials_roles.html#json

--
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§