aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-07-31 15:54:32 +0000
committerMicah Anderson <micah@riseup.net>2008-07-31 15:54:32 +0000
commita41f5cf4a0d3b1f936db9d52474b354987e5c641 (patch)
tree0ef557b3be2f0f01fd7aae313b88e8c9d51464ab
parent93b370beb1c13d9d6f99d66526e68d54ed79add8 (diff)
downloadpuppet-backupninja-a41f5cf4a0d3b1f936db9d52474b354987e5c641.tar.gz
puppet-backupninja-a41f5cf4a0d3b1f936db9d52474b354987e5c641.tar.bz2
standardize formatting
-rw-r--r--manifests/mysql.pp38
1 files changed, 15 insertions, 23 deletions
diff --git a/manifests/mysql.pp b/manifests/mysql.pp
index ddda1c0..e7c0eb4 100644
--- a/manifests/mysql.pp
+++ b/manifests/mysql.pp
@@ -14,27 +14,19 @@
# backupninja documentation, with the caveat that hotcopy, sqldump,
# and compress take true/false rather than yes/no.
#
-define backupninja::mysql($order = 10,
- $ensure = present,
- $user = false,
- $dbusername = false,
- $dbpassword = false,
- $dbhost = 'localhost',
- $databases = 'all',
- $backupdir = false,
- $hotcopy = false,
- $sqldump = false,
- $compress = false,
- $configfile = '/etc/mysql/debian.cnf',
- $vsname = false
- ) {
- include backupninja::client
- file { "${backupninja::client::configdir}/${order}_${name}.mysql":
- ensure => $ensure,
- content => template('backupninja/mysql.conf.erb'),
- owner => root,
- group => root,
- mode => 0600,
- require => File["${backupninja::client::configdir}"]
- }
+define backupninja::mysql(
+ $order = 10, $ensure = present, $user = false, $dbusername = false, $dbpassword = false,
+ $dbhost = 'localhost', $databases = 'all', $backupdir = false, $hotcopy = false,
+ $sqldump = false, $compress = false, $configfile = '/etc/mysql/debian.cnf',
+ $vsname = false)
+{
+ include backupninja::client
+ file { "${backupninja::client::configdir}/${order}_${name}.mysql":
+ ensure => $ensure,
+ content => template('backupninja/mysql.conf.erb'),
+ owner => root,
+ group => root,
+ mode => 0600,
+ require => File["${backupninja::client::configdir}"]
+ }
}