Ask Your Question

install openldap-clients

asked 2015-02-27 21:16:00 -0600

xaz gravatar image

I am writing my puppet module to handle installing openldap-clients. The most target systems are CentOS 5 or 6 or RHEL 5 or 6. The package depends on openldap package. Do I need to create dependency in my puppet code, like the following?

package { 'openldap-clients' : ensure => present require => Package['openldap'] }

  • xinhuan
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-02-28 14:11:31 -0600

doc75 gravatar image

If your package installer is installing automatically openldap when you install openldap-clients, then my guess is that it is not necessary.

Usually in puppet manifests I only describe the dependancy that I want to enforce and which are not enforced automatically (for example you never describe all dependencies of a package you want to install).

Hope this helps.

edit flag offensive delete link more

answered 2016-06-12 11:19:21 -0600

xaz gravatar image

Today I have made my configuring ldap client puppet module working. That's my first working puppet module and utilizes 4 basic puppet forge modules. Now I understand more than before how puppet works. It's a language designed for modeling and managing system resources. If puppet forge base module isn't 100% meet my requirement just because very small variances, I did subclass of base module and extends certain resource declaration. Puppet language is able to understand that and uses my variant resource declaration, which is great.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-02-27 21:16:00 -0600

Seen: 215 times

Last updated: Jun 12 '16