Ticket #603 (closed defect: worksforme)
Directory prune option confusion
Reported by: | Matt Baker <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.9.6 Release |
Component: | bcfg2-client | Version: | 0.9.x |
Keywords: | prune, sgenshi | Cc: |
Description
prune option in POSIX.py for Directory elements in Rules does not seem to extend to files created in SGenshi.
In Rules/apache.xml I have:
<Directory name='/etc/apache2/sites-enabled'
prune='true' owner='root' group='root' perms='755'/>
<SymLink? name='/etc/apache2/sites-enabled/000-default'
to='/etc/apache2/sites-available/default'/>
In SGenshi/projects.xml I have:
name="/etc/apache2/sites-enabled/${name}.conf" to="${basedir}/${name}/apache/conf/${name}.conf"/>
On the first run with out anything in place I get all symlinks in /etc/apache2/sites-enabled installed. On the second run the prune option removes all but the 000-default symlink. On the third run the templated symlinks come back and thus a loop of removal and reinstallation.
I expect the prune option to be aware of an entry from any plugin.
This is when using an svn checkout from 24th Sept.
Pruning is scoped to a given bundle; are you including the first directory entry in the SGenshi bundle? There isn't anything else special about SGenshi.