- From: "Mark J. Reed" <
>
- To:
- Subject: [chef] Re: mode value for directory resource?
- Date: Wed, 11 Aug 2010 17:10:06 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RVFT446iopa2yYEwpl8L4NiJEADZWhi092wg91qow6HoRw++dBB/pPMvKON/TLvMu6 C5ZZYTq2D3q/2gtrc5OPEvIdddqAdhOin2ez7ow4EJfcEuHFW0xpufhABPP2rID+OeAA lLv6ZUU82blPaOzT0iwnPGKCNvhPmRxU1rrBo=
Oh, and I saw this on
http://wiki.opscode.com/display/chef/Resources#Resources-Directory:
>
A note about mode: When specifying the mode, the value can be a quoted
>
string, eg "644". For a >numeric value (i.e., without quotes), it should be
>
5 digits, e.g., 00644 to ensure that Ruby can parse it >correctly. For more
>
detail, see Ticket CHEF-174.
But neither the quotes nor the leading zero helped.
On Wed, Aug 11, 2010 at 5:05 PM, Mark J. Reed
<
>
wrote:
>
OK, this is bombing on me:
>
>
directory "/foo/bar" do
>
owner "username'
>
group "groupname"
>
mode 0700
>
end
>
>
I've tried all of
>
>
mode "0700"
>
mode 0700
>
mode 700
>
mode "700"
>
>
And I always get this:
>
>
ERROR: directory[/foo/bar]
>
(/var/chef/cache/cookbooks/mycookbook/recipes/foo.rb:21:in
>
`from_file') had an error:
>
Option mode's value 44 does not match regular expression /^\d{3,4}$/
>
>
So it looks like something's converting to decimal (0700 octal = 448
>
decimal), stripping off the 8 because it's not a legal octal digit,
>
and then complaining about the invalid mode. Any help here?
>
>
This is chef 0.9.8.
>
>
--
>
Mark J. Reed
>
<
>
>
--
Mark J. Reed
<
>
Archive powered by MHonArc 2.6.16.