aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-05-21 19:24:32 +0000
committerMicah Anderson <micah@riseup.net>2008-05-21 19:24:32 +0000
commit6adbb4f335e0bd1a481df371339efa5dae907450 (patch)
treef88e5b9478bfd5abd4ad0250182551c59d3ab694 /manifests
parent8988c6c5e6ff77b49ab303ab2ba405acf429ea03 (diff)
downloadpuppet-backupninja-6adbb4f335e0bd1a481df371339efa5dae907450.tar.gz
puppet-backupninja-6adbb4f335e0bd1a481df371339efa5dae907450.tar.bz2
fix the tags up so that the host can be overridden if your backup host declaration doesn't
agree with your $fqdn
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 2ce2a34..25111f8 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -7,6 +7,10 @@ class backupninja::server {
'' => "$fileserver/keys/backupkeys",
default => $backupkeys,
}
+ $real_backupserver_tag = $backupserver_tag? {
+ '' => $fqdn,
+ default => $backupserver_tag
+ }
group { "backupninjas":
ensure => "present",
gid => 700
@@ -15,8 +19,8 @@ class backupninja::server {
ensure => "directory",
mode => 710, owner => root, group => "backupninjas"
}
- User <<| tag == "backupninja-$fqdn" |>>
- File <<| tag == "backupninja-$fqdn" |>>
+ User <<| tag == "backupninja-$real_backupserver_tag" |>>
+ File <<| tag == "backupninja-$real_backupserver_tag" |>>
# this define allows nodes to declare a remote backup sandbox, that have to
# get created on the server