- From: "Mark J. Reed" <
>
- To:
- Subject: [chef] mode value for directory resource?
- Date: Wed, 11 Aug 2010 17:05:42 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VTs/MWQhJWm9O/lGpS/nUmgKUNDJSDhzR4edrCpueLi9QZd8CbxkqWDvYVp3x9dBF6 fQ/Dfggbdot4m3ejR7nmlXnlB+PGCjE/Hops4otHe1gmSEC9f8RfFu/PbDO8uKEk9HQt 4gzu+6mBQ0SubdO8fUhO7gsLQ198AyLfQk8Nk=
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
<
>
- [chef] mode value for directory resource?, Mark J. Reed, 08/11/2010
Archive powered by MHonArc 2.6.16.