[chef] Re: Re: Re: Re: Re: 0.7.14 -> 0.7.16... issues


Chronological Thread 
  • From: dreamcat four < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: 0.7.14 -> 0.7.16... issues
  • Date: Tue, 9 Feb 2010 21:08:07 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Jt+ZbaipT6R0T2QztPCWdmaxP2jO/TQPLWfOdoZnOAzc5x4kCgOaGvCDC6IZ3JtmSy 5FwwByz+6PCkfRt3IlzrESSB2s77bn7C7KNgBzdwL1D/049C6fQH0vSGF5nVL4Wyvx/o xg+0wtoo/orPkRSOo3LprdvJy8dHAUGbpq4hk=

$ ruby -e "puts :snmp-master"
-e:1: undefined local variable or method `master' for main:Object (NameError)

Dont use hyphen (dash) as part of symbol identifiers.
it should be safe underscore

>>> template "/etc/snmp/snmpd.conf" do
>>>   backup 0
>>>   mode 0444
>>>   owner "root"
>>>   group "root"
>>>   path "/etc/snmp/snmpd.conf"
>>>   variables(
>>>       :community => node[:community][:string],
>>>       :mrtgserver => "172.16.11.201/32",
>>>       :opennmsserver => "172.16.11.235/32",
>>>       :extradisk => node[:community][:disk],
>>> -      :snmp-master => node[:community][:master],
>>> +      :snmp_master => node[:community][:master],



Archive powered by MHonArc 2.6.16.

§