Ticket #628 (closed enhancement: fixed)

Opened 14 years ago

Last modified 14 years ago

different file attributes and altsrc

Reported by: Martin <[email protected]…> Owned by: desai
Priority: minor Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-client Version:
Keywords: Cc:


I have the following Bundle:

<Bundle name='example'>
  <Group name='a'>
    <ConfigFile name='/etc/a.conf'/>
  <Group name='b'>
    <ConfigFile name='/etc/b.conf' altsrc='/etc/a.conf'/>

Now I generate /etc/a.conf with a TGenshi template that checks internally if the variable realname is set. So it can generate different content for /etc/a.conf and /etc/b.conf.

Now I have a client that is in group a and b, so i should get a.conf and b.conf, but the file permissions of both files should be different, too! Is there a way to realize this?

I tried to do it with the Permissions tag, but it didn't work. (See #627)


Change History

comment:1 Changed 14 years ago by solj

  • Milestone changed from Bcfg2 0.9.6 Release to Bcfg2 1.0 Release

comment:2 Changed 14 years ago by desai

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

This is now handled in 1.0 with SGenshi bundle templates. See Plugins/SGenshi? for details/examples.

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.