On Tuesday, July 23, 2013 12:32:43 PM UTC-5, Bret Wortman wrote:
I'm trying to use a puppet manifest to set up a series of backup jobs on
servers which are each running a variety of mysql databases. My manifest
currently looks something like this, which almost works:
class backups () {
Oh. I've never really grokked the defined type stuff. I can see now I
need to dig in and make sense of it.
Thanks, John!
*
*
*Bret Wortman*
http://damascusgrp.com/
http://damascusgrp.com/ http://bretwortman.com/
http://about.me/wortmanbret
On Mon, Jul 29, 2013 at 1:19 PM, jcbollinger
For completeness, I solved this myself by using a template instead of
trying to do this all within a manifest:
#!/bin/sh
% databases.each do |db| -%
%= mysqldump --user admin #{db} | gzip mysql-#{db}-`date +%Y%m%d`.gz %
% end -%
% remote_dest.each do |rd| -%
%= rsync -arzv #{bkp_dest} #{rd} %