From ebda5e4ed4f2cbce4cb9c6d65531ae73f451dd5b Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 26 Oct 2012 12:52:08 -0400 Subject: update README to no longer suggest that people import the module; change the quoting to be puppet lint clean; and update variable scoping to be valid --- README | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README b/README index 00f33d5..8ae0039 100644 --- a/README +++ b/README @@ -23,9 +23,9 @@ were not part of any rdiff-backup. Getting started --------------- -First you will need to import the module: +First you will need to include the module: - import "backupninja" + include 'backupninja' Configure your backup server ---------------------------- @@ -41,7 +41,7 @@ backups. You may also want to set some variables on your backup server, such as: - $backupdir = "/backups" + $backupdir = '/backups' Configure your backup clients @@ -61,12 +61,12 @@ version of either backupninja itself, or the specific programs that the handler class installs, you can specify the version you need installed by providing a variable, for example: -$backupninja_ensure_version = "0.9.7~bpo50+1" -$rdiff_backup_ensure_version = "1.2.5-1~bpo40+1" -$rsync_ensure_version = "3.0.6-1~bpo50+1" -$duplicity_ensure_version = "0.6.04-1~bpo50+1" -$debconf_utils_ensure_version = "1.5.28" -$hwinfo_ensure_version = "16.0-2" +$backupninja_ensure_version = '0.9.7~bpo50+1' +$rdiff_backup_ensure_version = '1.2.5-1~bpo40+1' +$rsync_ensure_version = '3.0.6-1~bpo50+1' +$duplicity_ensure_version = '0.6.04-1~bpo50+1' +$debconf_utils_ensure_version = '1.5.28' +$hwinfo_ensure_version = '16.0-2' If you do not specify these variables the default 'installed/present' version will be installed when you include this class. @@ -104,11 +104,11 @@ backupninja::rdiff { backup_all: * A remote rdiff-backup handler: - backupninja::rdiff { "main": - host => "backup.example.com", - type => "remote", - directory => "/backup/$fqdn", - user => "backup-$hostname", + backupninja::rdiff { 'main': + host => 'backup.example.com', + type => 'remote', + directory => "/backup/$::fqdn", + user => "backup-$::hostname", } -- cgit v1.2.3