Craig White
2014-Nov-17 22:40 UTC
[Puppet Users] trying to use a puppet forge module that uses a different style
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 any init.pp and the structure looks like this... ├── client │ ├── config.pp │ ├── install.pp │ ├── ldapvi.pp │ └── utils.pp ├── client.pp ├── server │ ├── access.pp │ ├── config.pp │ ├── database.pp │ ├── dbindex.pp │ ├── globalconf.pp │ ├── install.pp │ ├── module.pp │ ├── overlay.pp │ ├── service.pp │ └── slapdconf.pp ├── server.pp └── wl.pp The last file - wl.pp is my own file and it looks like this... $ensure = present $directory = '/var/lib/ldap' $rootdn = 'cn=admin,dc=wl,dc=com' $rootpw = 'password' $dn = 'dc=wl,dc=com' # Install openldap server class { 'openldap::server': } openldap::server::database { $dn: ensure => present, rootdn => "cn=admin,${dn}", rootpw => $rootpw, } and if I use 'puppet apply -vd --modulepath /etc/puppet/modules wl.pp it works fine but I can't put those variables into the server.pp file or any of the files in the /server subdirectory because they don't work. I need a method - I thought a class openldap::wl class but I can't make that work either. How do I structure this so I can use one class to configure clients without resorting to re-writing the module completely so it comports to a style that I understand? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7c11cfda-2e63-4742-bf9d-62bc53c200bd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.