On Thu, 07 Oct 2010 11:59:29 +0200
Felix Frank wrote:

Hi Felix,


> > exec {
> >  'svn_check_out' :
> >  cwd     => '/opt/localconf',
> >  command => 'svn co svn://repo/',
> >  create  => '/opt/localconf/repo',
> >  require => Files['localconf'],
> > }

> I'd rather define a sensible creates (note the final "s") parameter
> inside the checkout location, if that is at all possible, instead of
> inventing an artificial flag.
> This is even more important if you manage several svn checkouts like
> that.
ok, I'll change it to repo name. Makes more sense :-) 
thanks.

[...] 
> > Finally, the "exec question" is:
> > 
> > how do you manage an exec that "depends" (unless) on 2 or more
> > conditions? may I separate them in the unless with logical or (||)? 
> 
> Since the "onlyif" is executed in a shell (afaik), using shell
> operator like || and && is perfectly legitimate.

onlyif/unless I guess.

> I like to separate the commands into variables like
> $package = "dpkg -l '$package*' | awk '\$1 ~ /ii/'"
> $process = "..."
> exec { "...": onlyif => "$package && $process" }
nice.

> Regards,
> Felix
Thanks for your quick answer Felix,

Cheers,
Arnau

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to