2015-12-19 10:16:05 +00:00
|
|
|
# == Class: rsnapshot
|
|
|
|
#
|
|
|
|
# Manages rsnapshot.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
class rsnapshot (
|
|
|
|
$hosts = $rsnapshot::params::hosts,
|
|
|
|
$conf_d = $rsnapshot::params::conf_d,
|
|
|
|
$logpath = $rsnapshot::params::config_logpath,
|
|
|
|
$lockpath = $rsnapshot::params::config_lockpath,
|
2015-12-19 21:49:34 +00:00
|
|
|
$default_backup = $rsnapshot::params::config_default_backup,
|
2015-12-21 10:43:50 +00:00
|
|
|
$package_name = $rsnapshot::params::package_name,
|
|
|
|
$package_ensure = $rsnapshot::params::package_ensure,
|
2015-12-22 13:55:21 +00:00
|
|
|
$cron = $rsnapshot::params::cron,
|
2015-12-19 10:16:05 +00:00
|
|
|
) inherits rsnapshot::params {
|
2016-01-18 19:53:24 +00:00
|
|
|
|
2015-12-19 10:16:05 +00:00
|
|
|
if $hosts {
|
2015-12-21 17:39:21 +00:00
|
|
|
class { '::rsnapshot::install': }->
|
|
|
|
class { '::rsnapshot::config': }
|
|
|
|
contain '::rsnapshot::install'
|
|
|
|
contain '::rsnapshot::config'
|
2015-12-19 10:16:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|