1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-10 08:10:34 +00:00
puppet-rsnapshot/manifests/init.pp

41 lines
1.7 KiB
ObjectPascal
Raw Permalink Normal View History

2015-12-19 10:16:05 +00:00
# == Class: rsnapshot
#
# Manages rsnapshot.
#
# === Parameters
#
class rsnapshot (
2017-04-01 21:27:18 +00:00
$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,
$backup_scripts = $rsnapshot::params::backup_scripts,
$include = $rsnapshot::params::config_include,
$exclude = $rsnapshot::params::config_exclude,
$snapshot_root = $rsnapshot::params::config_snapshot_root,
$backup_levels = $rsnapshot::params::config_backup_levels,
2017-04-06 07:19:17 +00:00
$backup_user = $rsnapshot::params::config_backup_user,
2017-04-01 21:27:18 +00:00
$cron_service_name = $rsnapshot::params::cron_service_name,
2017-04-06 07:20:32 +00:00
$manage_cron = $rsnapshot::params::manage_cron,
2017-04-02 07:14:46 +00:00
$cronfile_prefix = $rsnapshot::params::config_cronfile_prefix,
$cronfile_prefix_use = $rsnapshot::params::config_cronfile_prefix_use,
2017-04-01 21:27:18 +00:00
$check_mk_job = $rsnapshot::params::config_check_mk_job,
2017-03-14 22:51:18 +00:00
2015-12-19 10:16:05 +00:00
) inherits rsnapshot::params {
$default_backup_scripts = $rsnapshot::params::backup_scripts + $backup_scripts
$default_exclude = $rsnapshot::params::config_exclude + $exclude
2015-12-19 10:16:05 +00:00
if $hosts {
class { '::rsnapshot::install': }->
class { '::rsnapshot::config': }~>
class { '::rsnapshot::service': }
contain '::rsnapshot::install'
contain '::rsnapshot::config'
contain '::rsnapshot::service'
2015-12-19 10:16:05 +00:00
}
}