Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 0.6.0
-
Fix Version/s: None
-
Component/s: Chef Client
-
Labels:None
Description
for dir in [ "modules", "themes" ] do
directory "/var/lib/drupal6/#{dir}" do
owner "drupal"
group "www-data"
mode 0775
recursive true
end
link "/usr/share/drupal6/sites/default/#{dir}" do
to "/var/lib/drupal6/#{dir}"
end
end
The issue here is that the "recursive" property is implemented to mean something like "make_parents", corresponding to "mkdir -p".
I will make that functionality respond to a "make_parents" property and implement "recursive" to recursively apply perms and ownership to the earliest component of the directory that does not already exist or the specified directory if they all do.
For example, if the directory /foo exists and directory resource for "/foo/bar/baz" has action :create and recursive true, /foo/bar and /foo/bar/baz will be created with the specified properties.