[Puppet Users] Re: error just trying to use puppetmasterd.conf

2009-03-18 Thread Paul Lathrop
puppetmasterd.conf is deprecated, and all the *d.conf files are known to cause problems if they exist and you are using a newer version of Puppet. Remove all of these, and use puppet.conf instead. What version of Puppet are you using? I recommend getting the latest stable version, which I believ

[Puppet Users] Custom Types and autonotify?

2009-03-18 Thread Jim Pirzyk
I have been working on full feature syslog type and providers. I have a few questions about how to do things. 1) How do I have a type 'implement' functionality from another type. For example, I have these 2 types: file {"/var/log/ipfw.log": ensure => present, mode => 600,

[Puppet Users] error just trying to use puppetmasterd.conf

2009-03-18 Thread Jonathan Mills
Situation: I have a new puppet install that I'm learning how to use. Puppetmasterd runs fine when there are no explicitly defined puppetmasterd directives in any conf file. I am trying to use a puppetmasterd.conf, however, and tweak some settings. I generated my puppetmasterd.conf file

[Puppet Users] Re: Howto depend on a package from another class?

2009-03-18 Thread Bruce Richardson
On Wed, Mar 18, 2009 at 06:31:36AM -0400, Trevor Vaughan wrote: > > I.e. > > class pam-ldap { > include "openldap-client" > } > > If anyone does know of a problem with this, could you shed some light on it? There are several potential problems with it; the way puppet works, the point at whic

[Puppet Users] Re: Howto depend on a package from another class?

2009-03-18 Thread Ivo van der Meer
Hi, Thanks for all the replys, it really helped! Here is my pam-ldap class, which depends on the openldap-client class and works fine with the help I got from you guys. It thought it was harder than it is.. Just add require => Package["openldap-client"] and it works since it's coming from openld

[Puppet Users] Re: Howto depend on a package from another class?

2009-03-18 Thread Trevor Vaughan
Hmm...that's interesting. As far as I know, there are no adverse side effects to just including the other class in the dependent class. I.e. class pam-ldap { include "openldap-client" } If anyone does know of a problem with this, could you shed some light on it? It may increase compile time

[Puppet Users] Re: Howto depend on a package from another class?

2009-03-18 Thread paul matthews
Have you tried within the Package instruction for pam-ldap:- require => Package["openldap-client"] or if the openldap-client package is wrapped up in a class require => Class["openldap-client"] Cheers Paul 2009/3/18 Ivo van der Meer > > Hi, > > I have a class and want to depend on a Package

[Puppet Users] Re: Howto depend on a package from another class?

2009-03-18 Thread Bruce Richardson
On Wed, Mar 18, 2009 at 09:09:47AM +0100, Ivo van der Meer wrote: > > Hi, > > I have a class and want to depend on a Package from another class, how do I > solve this ?? Just depend on the package. Then you don't have to care who provides it. Is is that you want to the dependency on the packa

[Puppet Users] Howto depend on a package from another class?

2009-03-18 Thread Ivo van der Meer
Hi, I have a class and want to depend on a Package from another class, how do I solve this ?? I have 2 classes one is called openldap-client and the other is called pam-ldap. I want pam-ldap to depend on the openldap-client class which has a Package called openldap-client. I've tried the followi

[Puppet Users] Re: Puppet ensure file statement pointing to earlier defined file

2009-03-18 Thread Ivo van der Meer
Wow that's a smart way of solving this issue, I haven't thought of that! Tnx! Kind regards, Ivo On Tue, 17 Mar 2009 10:38:57 -0700, Joshua Anderson wrote: > On Mar 17, 2009, at 7:45 AM, Ivo van der Meer wrote: > >> Is my syntax wrong or isn't it possible yet to use the "ensure" >> stateme