Added support for $backuppc_datadir variable.
This commit is contained in:
parent
e6eebdfd47
commit
b254170d62
1 changed files with 18 additions and 0 deletions
|
@ -58,6 +58,24 @@ class backuppc::server {
|
||||||
Group["backuppc"], ],
|
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":
|
apache::configfile { "BackupPC.conf":
|
||||||
http => false,
|
http => false,
|
||||||
content => template("backuppc/BackupPC.conf.erb"),
|
content => template("backuppc/BackupPC.conf.erb"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue