You should usually run the exec with:
exec { "asdf":
...
logoutput => on_failure,
...
}
This prints to screen any error. Anyway the clue for your case is in
the error message:
err: /Stage[main]//Node[lucas.com.br]/Wordpress::Install[ ]/Exec[tar
-vzxf /var/www/wordpress.tar.gz]/returns: change from notrun to 0
failed: tar -vzxf /var/www/wordpress.tar.gz returned 1 instead of one
of [0] at /etc/puppet/modules/wordpress/manifests/install.pp:40
So trying to run it:
tar -vzxf /var/www/wordpress.tar.gz
echo $?
Should tell you what is wrong.
ken.
On Fri, Jun 17, 2011 at 2:14 PM, [email protected]
<[email protected]> wrote:
> Hi!
> I'm doing a module for the "puppet" for WordPress will implement.
> I'm having problems with this line:
>
> exec { "tar -vzxf ${downdir}wordpress.tar.gz":
> path =>
> ["/usr/local/bin","/opt/local/bin","/usr/bin","/usr/sbin"],
> }
>
> And the error generated is this:
>
> err: /Stage[main]//Node[lucas.com.br]/Wordpress::Install[ ]/Exec[tar -vzxf
> /var/www/wordpress.tar.gz]/returns: change from notrun to 0 failed: tar
> -vzxf /var/www/wordpress.tar.gz returned 1 instead of one of [0] at
> /etc/puppet/modules/wordpress/manifests/install.pp:40
>
> Can anyone help me?
>
>
>
>
> --
> Lucas Pereira Brígida
> www.codebroken.wordpress.com
>
> --
> 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.
>
--
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.