mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-11-14 01:00:34 +00:00
some fixes
This commit is contained in:
commit
5c35e8378b
@ -20,6 +20,8 @@ class rsnapshot (
|
|||||||
$backup_levels = $rsnapshot::params::config_backup_levels,
|
$backup_levels = $rsnapshot::params::config_backup_levels,
|
||||||
$cron_service_name = $rsnapshot::params::cron_service_name,
|
$cron_service_name = $rsnapshot::params::cron_service_name,
|
||||||
$rsnapshot_prefix = $rsnapshot::params::config_rsnapshot_prefix,
|
$rsnapshot_prefix = $rsnapshot::params::config_rsnapshot_prefix,
|
||||||
|
$check_mk_job = $rsnapshot::params::config_check_mk_job,
|
||||||
|
|
||||||
) inherits rsnapshot::params {
|
) inherits rsnapshot::params {
|
||||||
|
|
||||||
$default_backup_scripts = $rsnapshot::params::backup_scripts + $backup_scripts
|
$default_backup_scripts = $rsnapshot::params::backup_scripts + $backup_scripts
|
||||||
|
@ -16,6 +16,7 @@ class rsnapshot::params {
|
|||||||
$config_backup_levels = [ 'daily', 'weekly', 'monthly' ]
|
$config_backup_levels = [ 'daily', 'weekly', 'monthly' ]
|
||||||
$config_backup_defaults = true
|
$config_backup_defaults = true
|
||||||
$config_version = '1.2'
|
$config_version = '1.2'
|
||||||
|
$config_check_mk_job = false
|
||||||
$config_cmd_cp = '/bin/cp'
|
$config_cmd_cp = '/bin/cp'
|
||||||
$config_cmd_rm = '/bin/rm'
|
$config_cmd_rm = '/bin/rm'
|
||||||
$config_cmd_rsync = '/usr/bin/rsync'
|
$config_cmd_rsync = '/usr/bin/rsync'
|
||||||
|
@ -1 +1 @@
|
|||||||
<%= @minute %> <%= @hour %> <%= @monthday %> <%= @month %> <%= @weekday %> root /usr/bin/rsnapshot -c <%= @config %> <%= @level %>
|
<%= @minute %> <%= @hour %> <%= @monthday %> <%= @month %> <%= @weekday %> root<% if scope['rsnapshot::check_mk_job'] == true -%> mk-job rsnapshot_<%= @host %>_<%= @level %><% end -%> /usr/bin/rsnapshot -c <%= @config %> <%= @level %>
|
||||||
|
Loading…
Reference in New Issue
Block a user