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-19 10:16:05 +00:00
|
|
|
) inherits rsnapshot::params {
|
|
|
|
|
|
|
|
# anchor { 'rsnapshot::begin': } ->
|
|
|
|
#class { 'rsnapshot::install': } ->
|
|
|
|
#class { 'rsnapshot::config': } ->
|
|
|
|
#anchor { 'rsnapshot::end': }
|
|
|
|
if $hosts {
|
|
|
|
class { 'rsnapshot::config': }
|
|
|
|
contain 'rsnapshot::config'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|