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

2011-05-01 Thread Rakhesh Sasidharan
On Sat, 30 Apr 2011 23:21 -0700, "Sans" wrote: > On May 1, 4:59 am, Matthew Black 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 s

Re: [Puppet Users] Adding already defined users to a group when its created

2011-05-01 Thread Rakhesh Sasidharan
On Fri, 29 Apr 2011 17:52 +0400, "Rakhesh Sasidharan" wrote: > Hi, > > I'm new to Puppet. Started using it about a week ago and absolutely > loving it! > > I'm trying to do something which I am not sure if possible or whether I > am even approaching it the right way. > > What I want to do is t

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

2011-05-01 Thread Sans
Hi Steven and vagn, I almost forgot about ldconfig, I had a look now and ldconfig doesn't appear to be working in this particular case. It's conventional for the so_name to be the name+major version of the library (although, not universally done), so ldconfig will create a link like "foo.so.1 -> f

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

2011-05-01 Thread Sans
Thanks Rakhesh, looking into it. Cheers!! On May 1, 8:14 am, "Rakhesh Sasidharan" wrote: > > 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 th

Re: [Puppet Users] Adding already defined users to a group when its created

2011-05-01 Thread Denmat
Hi, Sorry, just so I'm clear. You want create a user and a user group, and then add that user to an sshuser group? Can you create the user with all those groups by default? I don't see why it has to be so complicated unless you have something really specific you're trying to do. If you want

Re: [Puppet Users] Adding already defined users to a group when its created

2011-05-01 Thread Rakhesh Sasidharan
Hi, > Sorry, just so I'm clear. > > You want create a user and a user group, and then add that user to an > sshuser group? Yes. I want the user and users group to be always created. And the user added to the sshusers group only when the sshusers group exists (which happens when Puppet installs

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

2011-05-01 Thread Markus Falb
On 1.5.2011 10:15, Sans wrote: > Hi Steven and vagn, > > I almost forgot about ldconfig, I had a look now and ldconfig doesn't > appear to be working in this particular case. It's conventional for > the so_name to be the name+major version of the library (although, not > universally done), so ldco

Re: [Puppet Users] Definitive documentation for define?

2011-05-01 Thread Sirtaj Singh Kang
On 30-Apr-11, at 5:34 PM, Denmat wrote: [snip] I guess you would look here: http://docs.puppetlabs.com/guides/language_guide.html#resource-collections Thank you! I am both grateful and mortified - not sure how I missed that. -Taj. -- You received this message because you are subscribed t