On 18.6.2011 05:30, vagn scott wrote:
> 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.
You can separate the title from the actual command
exec { "uniqe title maybe with $title in it":
command => "wget...",
...
}
--
Kind Regards, Markus Falb
signature.asc
Description: OpenPGP digital signature
