diff options
author | varac <varacanero@zeromail.org> | 2015-10-14 18:23:31 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-10-14 18:27:00 +0200 |
commit | d077a7b11c95089882e08432c45b883a9097e81d (patch) | |
tree | 0a6ff28331f9b43382c6f7a3d758556aeba497d7 /manifests/init.pp | |
parent | ae53b180783016faa4331094a52769ddd57463f8 (diff) |
[feat] Use ensure_packages() instead of package{}
The rationale behind this is that many modules might
ensure the same packages to be installed, and this
will result in duplicate package definitions.
ensure_packages() from the stdlib module with solve
this.
- Resolves: #7530
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index cbddcf1..7ff9ed3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,6 +8,9 @@ class couchdb ( $pwhash_alg = 'sha1' ) { + # stdlib is needed i.e. for ensure_packages() + include ::stdlib + case $::operatingsystem { Debian: { case $::lsbdistcodename { @@ -23,7 +26,5 @@ class couchdb ( RedHat: { include couchdb::redhat } } - package { 'curl': - ensure => installed, - } + ensure_packages('curl') } |