diff options
author | Micah Anderson <micah@riseup.net> | 2013-04-04 12:36:24 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-04-04 12:36:24 -0400 |
commit | dc367e53b45349ef849247fc93c664c548c90359 (patch) | |
tree | 14531add8c5bf7ac20f66c9dff0262319b7b0133 /manifests/backup.pp | |
parent | 66d918ddb6454fd4a30baed9b49baad98e274243 (diff) |
clean-up commit: lint, standardize spacing, properly enclose variables, etc
Diffstat (limited to 'manifests/backup.pp')
-rw-r--r-- | manifests/backup.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/backup.pp b/manifests/backup.pp index 527cf16..6eb48c5 100644 --- a/manifests/backup.pp +++ b/manifests/backup.pp @@ -4,10 +4,10 @@ class couchdb::backup { # used in ERB templates $bind_address = $couchdb::params::bind_address - $port = $couchdb::params::port - $backupdir = $couchdb::params::backupdir + $port = $couchdb::params::port + $backupdir = $couchdb::params::backupdir - file {$couchdb::params::backupdir: + file { $couchdb::params::backupdir: ensure => directory, mode => '0755', require => Package['couchdb'], @@ -29,7 +29,6 @@ class couchdb::backup { require => File['/usr/local/sbin/couchdb-backup.py'], } - case $::operatingsystem { /Debian|Ubunu/: { # note: python-couchdb >= 0.8 required, which is found in debian wheezy. @@ -44,6 +43,9 @@ class couchdb::backup { creates => '/usr/lib/python2.6/site-packages/CouchDB-0.8-py2.6.egg', } } + default: { + err('This module has not been written to support your operating system') + } } } |