aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-08-08 00:04:22 -0400
committerMicah Anderson <micah@riseup.net>2008-08-08 00:04:22 -0400
commited2382dec7f4a4c86ac44a0960c1ce7b605c591b (patch)
treeba1505e2e69ee520ffa8d2c6a4fc4e9edb4560b0
parentbc032fc84e84140037a9f2dc26760bee9d1f8e6c (diff)
downloadpuppet-backupninja-ed2382dec7f4a4c86ac44a0960c1ce7b605c591b.tar.gz
puppet-backupninja-ed2382dec7f4a4c86ac44a0960c1ce7b605c591b.tar.bz2
standardize the spacing/indentation
-rw-r--r--manifests/maildir.pp46
1 files changed, 20 insertions, 26 deletions
diff --git a/manifests/maildir.pp b/manifests/maildir.pp
index 87fc39d..1ced771 100644
--- a/manifests/maildir.pp
+++ b/manifests/maildir.pp
@@ -16,31 +16,25 @@
# that we can find the correct file to remove).
#
#
-define backupninja::maildir($order = 40,
- $ensure = present,
- $when = 'everyday at 21:00',
- $srcdir = false,
- $destdir = false,
- $desthost = false,
- $destuser = false,
- $destid_file = false,
- $remove = no,
- $multiconnection = yes
- ) {
- include backupninja::client
+define backupninja::maildir(
+ $order = 40, $ensure = present, $when = 'everyday at 21:00', $srcdir = false,
+ $destdir = false, $desthost = false, $destuser = false, $destid_file = false,
+ $remove = no, $multiconnection = yes)
+{
+ include backupninja::client
- case $srcdir { false: { err("need to define a source directory to backup!") } }
- case $destdir { false: { err("need to define a destination directory to backup!") } }
- case $desthost { false: { err("need to define a destination host for backups!") } }
- case $destuser { false: { err("need to define a destination user for backups!") } }
- case $destid_file { false: { err("need to define a ssh key id file to use!") } }
-
- file { "${backupninja::client::configdir}/${order}_${name}.maildir":
- ensure => $ensure,
- content => template('backupninja/maildir.conf.erb'),
- owner => root,
- group => root,
- mode => 0600,
- require => File["${backupninja::client::configdir}"]
- }
+ case $srcdir { false: { err("need to define a source directory to backup!") } }
+ case $destdir { false: { err("need to define a destination directory to backup!") } }
+ case $desthost { false: { err("need to define a destination host for backups!") } }
+ case $destuser { false: { err("need to define a destination user for backups!") } }
+ case $destid_file { false: { err("need to define a ssh key id file to use!") } }
+
+ file { "${backupninja::client::configdir}/${order}_${name}.maildir":
+ ensure => $ensure,
+ content => template('backupninja/maildir.conf.erb'),
+ owner => root,
+ group => root,
+ mode => 0600,
+ require => File["${backupninja::client::configdir}"]
+ }
}