[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remote execution of tarsnap-keygen
On Wed, Jul 10, 2013 at 08:20:20PM +0200, Matthias Hörmann wrote:
> On a related note, I am just working on setting up tarsnap via Puppet
> and it would be really useful if tarsnap supported a directory for its
> configuration files,
> something like /etc/tarsnap.d where all configuration files in the
> directory are combined as one. The other thing that would be handy for
> that purpose would be the ability to specify the directories and files
> to include (or a default for them if none are specified on the
> commandline) in the configuration file too. While it is possible to
> work around that with a wrapper script of course it would make a
> modular backup (e.g. the Puppet MySQL module says backup
> /var/lib/mysql, the apache virtualhost module says backup
> /var/www/foo.example.com but to exclude
> /var/www/foo.example.com/logs because that could get too large,...).
The concat module would be one way to solve this:
https://github.com/ripienaar/puppet-concat
Each of your other modules can declare a fragment of the config and the
concat module will join all the bits together in to a single config file
for you. It's a pretty nice solution for this kind of problem.
Tim.
--
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x5AE7D984