[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
yes that was all ;-) Got it - thanks yes, the intent is to use hiera on all of this but I have to knock down one hurdle at a time. Now that I can have made it work, I can start fooling with hiera which I never used before. Thanks so much On Tuesday, November 18, 2014 10:51:51 AM UTC-7, jcbol

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 10:09:32 AM UTC-6, Craig White wrote: > > OK - but I still need to figure out how to call one class with parameters > from another class... > > class wl::config { : > class openldap::server::database { $dn: > ensure => present, > rootdn => "cn=admin,${dn

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
On Tuesday, November 18, 2014 9:18:33 AM UTC-7, Steven Post wrote: > > If you use hiera and puppet 3 (or later), you can use the automatic class > parameters for that, and just 'include openldap::server::database'. > Of cause you can set up some class parameters on your own class if you > want

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
If you use hiera and puppet 3 (or later), you can use the automatic class parameters for that, and just 'include openldap::server::database'. Of cause you can set up some class parameters on your own class if you want to and do that. Typically, this is where I would use hiera for. On Tuesday, No

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
OK - but I still need to figure out how to call one class with parameters from another class... class wl::config { : class openldap::server::database { $dn: ensure => present, rootdn => "cn=admin,${dn}", rootpw => $rootpw, } } On Tuesday, November 18, 2014 9:06:34 AM UTC-7, St

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
The roles/profile pattern does not use node inheritance, only class inheritance. Strictly speaking, this isn't even necessary, it can just make some things easier. At my company, we don't even use any real node definition, everything is done with an ENC and hiera. The roles/profile model still

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
On Tuesday, November 18, 2014 7:27:20 AM UTC-7, jcbollinger wrote: > > > On Monday, November 17, 2014 4:40:28 PM UTC-6, Craig White wrote: >> >> The last file - wl.pp is my own file and it looks like this... >> > >> $ensure= present >> $directory = '/var/lib/ldap' >> $rootdn= 'cn=admi

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
It seems that node inheritance is deprecated in Puppet 4 so this is a no go (role/profiles). I suppose I should have mentioned that I will be using an ENC so I am trying to keep the cruft inside node definitions to a minimum which is why I am struggling to find a way to create a class - certain

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 4:40:28 PM UTC-6, Craig White wrote: > > Not that it matters, but I am trying to use a module out of puppet forge - > camptocamp-openldap > https://github.com/camptocamp/puppet-openldap > > There's no hint of using it anywhere > > It has an unusual style. There isn't

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
Hi Craig, If you scroll down on the website you mentioned, you'll see some usage instructions. I recommend *not* to change the module (not even adding your own wl.pp file inside), but to set up your wl.pp file elsewhere. You can use your own class (wl.pp, located outside this module) to set up