[chef] spiceweasel help


Chronological Thread 
  • From: Chris < >
  • To:
  • Subject: [chef] spiceweasel help
  • Date: Mon, 20 Feb 2012 17:17:47 -0800
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.204.156.207 as permitted sender) ; dkim=pass

hi chefs!

i've just started playing around with Spiceweasel because it sounds awesome and we potentially have many chef environments to setup (thanks Matt!). I've run into a snag though, i created a very simple yml file with just nodes in it, but when i pass it to Spiceweasel i get:

/usr/lib64/ruby/gems/1.8/gems/spiceweasel-1.0.0/bin/spiceweasel:72: /usr/lib64/ruby/gems/1.8/gems/spiceweasel-1.0.0/lib/spiceweasel/environment_list.rb:68: odd number list for Hash (SyntaxError)
      envfile = JSON.parse(f, {symbolize_names: 'false'})
                                               ^
/usr/lib64/ruby/gems/1.8/gems/spiceweasel-1.0.0/lib/spiceweasel/environment_list.rb:68: syntax error, unexpected ':', expecting '}'
      envfile = JSON.parse(f, {symbolize_names: 'false'})
                                               ^
/usr/lib64/ruby/gems/1.8/gems/spiceweasel-1.0.0/lib/spiceweasel/environment_list.rb:68: syntax error, unexpected '}', expecting kEND
      envfile = JSON.parse(f, {symbolize_names: 'false'})
                                                        ^
from /usr/bin/spiceweasel:19:in `load'
from /usr/bin/spiceweasel:19

my yml file looks like:
nodes:
- node1:
- role[base]
- -d centos5-gem-internet -x root -E test

i have both base role and test environment json files in the correct repo directories too, any ideas?

Thanks!

--
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.



Archive powered by MHonArc 2.6.16.

§