Hey Thanks for the help, I was able to download the dump file successfully but when I try to execute the mysql command I get the following error:
Could not run Puppet configuration client: 'mysql -uroot -pring parasol < download.php?i=hV0wsTfa' is both unqualifed and specified no search path at /etc/puppet/environments/abcd/modules/vim/manifests/ init.pp:25 here is my exec where am trying to run mysql command: exec {"Get db": command => "mysql -uroot -proot papa < dumpfile.sql", require => exec["Retrieve dump"], } Thanks for your efforts On Jul 15, 10:03 am, newguy <aimanparv...@gmail.com> wrote: > Yes Marek, it does make sense and thanks for this help, lemme try what > Al @ Lab42 has suggested first as I have been told to do things by > Puppet. In case I fail then I will look in to your suggestion. > > Thanks anyways > > On Jul 14, 11:43 pm, "Marek Dohojda" <chro...@gmail.com> wrote: > > > > > > > > > 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 > > athttp://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.