You can put a requires in the file resource

require => Package["packagename"]


then it will install the package first then put in the symlink.

On Sat, Apr 30, 2011 at 5:12 AM, Sans <[email protected]> wrote:

> Dear all,
>
> I'm trying to do this. Say for example, I want this link: "liblcgdm.so
> -> liblcgdm.so.1.8.0" to be present on the client only if "lcgdm-
> libs-1.8.0-1sec.sl5" is already listed. I already have this to create
> the link:
>
> file {
>    'liblcgdm.so':
>     ensure => symlink,
>     name   => '/opt/lcg/lib/liblcgdm.so',
>     target => 'liblcgdm.so.1.8.0';
> }
>
> but how do I check the existence of that particular package
> beforehand? Thanks in advance for your time. Cheers!!
>
> --
> 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.

Reply via email to