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
Activity
Chris Walters
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Chris Walters [ cw ] |
Chris Walters
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Chris Walters
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Adam Jacob
made changes -
| Triage Status | [Triaged] |
Bryan McLellan [Opscode]
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Chris Walters [ cw ] | |
| Resolution | Duplicate [ 3 ] |
Bryan McLellan [Opscode]
made changes -
| Component/s | Providers [ 10005 ] |
Bryan McLellan [Opscode]
made changes -
| Component/s | Chef Client [ 10000 ] | |
| Component/s | Resources [ 10004 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 10355 ] | New OSS [ 18399 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 18399 ] | OSS: Product Management [ 26307 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
22d 7h 12m | 1 | Chris Walters | 29/Apr/09 5:55 AM | |||||
|
224d 13h 34m | 1 | Chris Walters | 09/Dec/09 7:29 PM | |||||
|
341d 22h 8m | 1 | Bryan McLellan [Opscode] | 16/Nov/10 5:37 PM |
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.