summaryrefslogtreecommitdiff
path: root/manifests/ssl/generate_cert.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-10-14 18:23:31 +0200
committervarac <varacanero@zeromail.org>2015-10-14 18:27:00 +0200
commitd077a7b11c95089882e08432c45b883a9097e81d (patch)
tree0a6ff28331f9b43382c6f7a3d758556aeba497d7 /manifests/ssl/generate_cert.pp
parentae53b180783016faa4331094a52769ddd57463f8 (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/ssl/generate_cert.pp')
-rw-r--r--manifests/ssl/generate_cert.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/ssl/generate_cert.pp b/manifests/ssl/generate_cert.pp
index 3d500ac..a443250 100644
--- a/manifests/ssl/generate_cert.pp
+++ b/manifests/ssl/generate_cert.pp
@@ -1,8 +1,7 @@
+# configures cert for ssl access
class couchdb::ssl::generate_cert {
- package { ['openssl']:
- ensure => 'installed',
- }
+ ensure_packages('openssl')
file { $couchdb::cert_path:
ensure => 'directory',