On Fri, Jul 15, 2011 at 11:17:40AM -0700, newguy wrote:
> Yes I did that and got the following error:
> change from notrun to 0 failed: /usr/bin/mysql -uroot -pring parasol <
> download.php?i=hV0wsTfa returned 1 instead of one of [0] at /etc/
> puppet/environments/ss/modules/vim/manifests/init.pp:29
>
> This is my exec:
>
> exec {"Get db":
> command => "/usr/bin/mysql -uroot -pring parasol < download.php?
> i=hV0wsTfa",
> require => exec["Retrieve dump"],
> }
>
>
> Please help
Well it meanst that you command exited with an exit code of 1 instead of
0. So the easiest way to debug this is to run the command by hand in a
shell
# /usr/bin/mysql -uroot -pring parasol < download.php?i=hV0wsTf
# echo $?
Is download.php?i=hV0wsTf really the filename? I would also suggest to
provide the full path to the inputfile because you never know where
someone runs puppet (or provide the cwd parameter to switch to the
desired directory first)
-Stefan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.