On Sat, 30 Apr 2011 23:21 -0700, "Sans" <r.santanu....@gmail.com> wrote:
> On May 1, 4:59 am, Matthew Black <mjbl...@gmail.com> wrote:
> > You can put a requires in the file resource
> >
> > require => Package["packagename"]
> >
> > then it will install the package first then put in the symlink.
> >
> That not what I actually want. I just simply want: if the package
> already installed, create the sym-link otherwise, do nothing. Cheers!!

In that case my suggestion of yesterday should do the trick - 

Have a Exec resource with a command to link the files above, but which
runs only if the file does not already exist. Something along the lines
of the example mentioned here -
http://www.puppetcookbook.com/posts/exec-onlyif.html

Regards.

-- 
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.

Reply via email to