Re: [Puppet Users] How to check if a package exists

2011-04-30 Thread Steven Acres
On Sun, May 1, 2011 at 12:48 AM, vagn scott wrote: > > Please look at > >ldconfig -N > > it will update the links for you. > > You could try something like (warning untested) > > class foo { >package { "liblcgdm": >notify => Exec[ "ldconfig::update" ], >} > >

Re: [Puppet Users] How to check if a package exists

2011-04-30 Thread vagn scott
Please look at ldconfig -N it will update the links for you. You could try something like (warning untested) class foo { package { "liblcgdm": notify => Exec[ "ldconfig::update" ], } include ldconfig::update } class ldconfig::update { exec

Re: [Puppet Users] How to check if a package exists

2011-04-30 Thread Matthew Black
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 wrote: > Dear all, > > I'm trying to do this. Say for example, I want this link: "liblcgdm.so > -> liblcgdm.so.1.

Re: [Puppet Users] How to check if a package exists

2011-04-30 Thread Rakhesh Sasidharan
Hi Sans! On Sat, 30 Apr 2011 02:12 -0700, "Sans" 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: >

[Puppet Users] How to check if a package exists

2011-04-30 Thread Sans
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