Personally I don't think using puppet for this would not be the best
solution. However here is what I would do. Write a shell script to do what
you need, and than use puppet's EXEC statement to launch this command as
needed.
You could also use custom Fact for this.
For instance have you custom script do the export, while within puppet class
you have an "if" that looks if a particular fact is true. if it is set to
true than launch that exec command to do copy and import on your other host.
Does that make sense?
-----Original Message-----
From: newguy
Sent: Thursday, July 14, 2011 10:10 PM
To: Puppet Users
Subject: [Puppet Users] Re: Using puppet to import database on client side
Guys somebody please help!!!!
On Jul 14, 5:32 pm, newguy <aimanparv...@gmail.com> wrote:
Hi guys
I have database dump available on pastebin/exzxzxz
I want the puppet server to download the dump from pastebin and store
it at a fixed location(suppose /home/dump) and then open mysql on the
client side(mysql is installed on the client) and run the import
command so that the downloaded dump is used to make a database on the
client .
Please help guys.
Both client and server are Ubuntu 10.04.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.