summaryrefslogtreecommitdiff
path: root/manifests/backup.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/backup.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/backup.pp')
-rw-r--r--manifests/backup.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/backup.pp b/manifests/backup.pp
index 6eb48c5..a477b5b 100644
--- a/manifests/backup.pp
+++ b/manifests/backup.pp
@@ -1,3 +1,4 @@
+# configure backup using couchdb-backup.py
class couchdb::backup {
include couchdb::params
@@ -32,10 +33,9 @@ class couchdb::backup {
case $::operatingsystem {
/Debian|Ubunu/: {
# note: python-couchdb >= 0.8 required, which is found in debian wheezy.
- package { ['python-couchdb', 'python-simplejson']:
- ensure => present,
- before => File['/usr/local/sbin/couchdb-backup.py'],
- }
+ ensure_packages (['python-couchdb', 'python-simplejson'], {
+ before => File['/usr/local/sbin/couchdb-backup.py']
+ })
}
/RedHat|Centos/: {
exec {'install python-couchdb using easy_install':