1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-14 09:00:35 +00:00
puppet-rsnapshot/manifests/init.pp

24 lines
760 B
ObjectPascal
Raw Normal View History

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,
$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-19 10:16:05 +00:00
) inherits rsnapshot::params {
if $hosts {
2015-12-21 10:43:50 +00:00
class { 'rsnapshot::install': }->
2015-12-19 10:16:05 +00:00
class { 'rsnapshot::config': }
2015-12-21 10:43:50 +00:00
contain 'rsnapshot::install'
2015-12-19 10:16:05 +00:00
contain 'rsnapshot::config'
}
}