On 06/17/2011 09:14 AM, lucas.brig...@ymail.com 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"],
            }

1. make sure wordpress.tar.gz is on the machine before you try to untar it
2. put the x first: tar xzvf wordpress.tar.gz

or you can do what I do and pipe that archive into tar:

exec { "true $title && wget -O - $upstream | tar xzf - --xform 's,wordpress/,,'":
                cwd         => "$top",
                creates     => "$top/license.txt",
                before      => File[ "$top/setup.mysql" ],
        }

the reason for the 'true $title &&' part is
that I want to be able to use this exec multiple times (it is in a defined class).
So I need to get the $title in there so puppet doesn't think it is
a duplicate definition.

OK, that's confusing. the whole thing (wordpress, not the
entire lamp stack) is in a tarfile attachement.
Hope the list  accepts it.


And the error generated is this:

    err: /Stage[main]//Node[lucas.com.br
    <http://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 <http://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 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.

Attachment: wordpress-module.tgz
Description: application/compressed-tar

Reply via email to