Added support for $backuppc_datadir variable.

This commit is contained in:
Ossi Salmi 2010-03-23 13:46:22 +02:00 committed by Timo Mkinen
parent e6eebdfd47
commit b254170d62

View file

@ -58,6 +58,24 @@ class backuppc::server {
Group["backuppc"], ],
}
if $backuppc_datadir {
file { "${backuppc_datadir}":
ensure => directory,
mode => 0750,
owner => backuppc,
group => root,
}
file { "/var/lib/BackupPC":
ensure => "${backuppc_datadir}",
force => true,
backup => ".orig",
require => [ Package["BackupPC"], File["${backuppc_datadir}"] ],
before => [ Exec["generate-backuppc-sshkey"],
Service["backuppc"], ],
}
}
apache::configfile { "BackupPC.conf":
http => false,
content => template("backuppc/BackupPC.conf.erb"),