[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote execution of tarsnap-keygen



David, did you try using a wrapper script with expect?

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,...).



On Wed, Jul 10, 2013 at 7:50 PM, David Christensen <toastedpenguinbrew@gmail.com> wrote:
I am using Saltstack aka salt for configuration management and it provides remote command execution.  However the remote command execution is not interactive, you send the command, the command is run remotely and when it completes you get a response.  I have been working on getting tarsnap installed from a local centos repo using salt on all my target servers and I would like to run the keygen after the install completes.  Is there anyway to specify the passphrase during tarsnap-keygen?

I am aware of the security issues with having a script containing the passphrase sitting on a server, salt eliminates this, I am just looking to run the setup of tarsnap remotely.

David