On 6/21/2009 6:03 PM, Arno Lehmann wrote:

> Something I thought about recently :-)
>
> My idea was a way to create a fileset in the DIR through the bconsole
> API, and the ability to (later) add data to existing configuration
> files. The latter is probably a hard tsk, given the ways you can
> include configuration files...
>
> Imagine there was a bconsole command 'new fileset name= contents=',
> which injected a new fileset.

Just to throw another line of thought into the mix, I've been simplifying a 
*ton* of my system administration tasks with two tools that fit nicely into 
this problem - augeas, and puppet.

Augeas is a configuration editing tool and library that allows you to write a 
(relatively) simple parser description file called a lens, and use that lens 
to do bidirectional translation between the native config file format, and a 
tree structure.  This would vastly simplify both writing and maintaining an 
external program capable of reading and writing bacula config files.

http://augeas.net

Then, to kick it up a notch, there's puppet.  Puppet allows you to describe 
aspects of a system's configuration, and have them automatically applied.  For 
example, you might write a manifest that says "ensure this user exists with 
this password, and these six packages are installed".  Puppet then takes care 
of the messy details, such as figuring out which package manager you use, and 
how to call it.

http://reductivelabs.com/trac/puppet/

I'm already using a relatively simply puppet setup that allows me, by adding a 
single line to one master config file, to set up a client by:

   - installing all bacula packages
   - installing a template generated bacula-fd.conf file
   - installing all certificate and CA files for that host
   - open a hole in the iptables firewall allowing the director in
   - ensure that the service is configured to start on boot
   - start the service

With a native puppet type, it's quite possible for that same line to also 
trigger creation of all director config changes required to support the client 
as well.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
     GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to