1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-09-20 01:10:35 +00:00
puppet-rsnapshot/manifests/init.pp
Norbert Varzariu 09b6b4431c add basic tests
2016-01-18 20:53:24 +01:00

26 lines
832 B
Puppet

# == 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,
$package_name = $rsnapshot::params::package_name,
$package_ensure = $rsnapshot::params::package_ensure,
$cron = $rsnapshot::params::cron,
) inherits rsnapshot::params {
if $hosts {
class { '::rsnapshot::install': }->
class { '::rsnapshot::config': }
contain '::rsnapshot::install'
contain '::rsnapshot::config'
}
}