Ticket #603 (closed defect: worksforme)

Opened 14 years ago

Last modified 14 years ago

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:


prune option in 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'


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.


Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to worksforme

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.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.