Bug #2797
tag not inherited by subfiles if "recurse=>true" on a file type.
| Status: | Closed | Start: | 11/10/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | tags | |||
| Target version: | 0.25.2 | |||
| Affected version: | 0.25.1 | Branch: | tickets/0.25.x/2797 | |
| Keywords: | ||||
| Votes: | 0 |
Description
Take this :
class myclass {
file { "/etc/mydir/":
owner => root,
group => root,
mode => 644,
recurse => true,
source => "puppet://puppet01/mydir/",
ignore => ".svn*",
}
}
Running puppetd —test —tags myclass will update the directory itself (mode for example) , but the recursed files won’t. (You get “Not tagged with myclass” for each subfiles if you run with —debug.)
As a workaround, you can add a tag in the file description :
tag => mytag
History
Updated by Brice Figureau 9 months ago
- Status changed from Unreviewed to Ready for Testing
- Assigned to set to Brice Figureau
- Target version set to 0.25.2
- Branch set to tickets/0.25.x/2797
Patch sent to puppet-dev and available for testing in my github repository branch tickets/0.25.x/2797: http://github.com/masterzen/puppet/tree/tickets/0.25.x/2797
Updated by James Turnbull 9 months ago
- Status changed from Ready for Testing to Closed
Pushed in commit:“40135609c8cfc7b70369a848a383a687a216f6a7” in branch 0.25.x