1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2025-09-13 15:59:28 +00:00

only create in-/exclude file if in-/excludes are given and bump version

This commit is contained in:
Norbert Varzariu
2015-12-22 16:26:06 +01:00
parent 4ead2ebeff
commit 25a282cf4f
4 changed files with 21 additions and 15 deletions

View File

@@ -108,9 +108,20 @@ class rsnapshot::config (
$use_lazy_deletes_num = bool2num($use_lazy_deletes)
}
file { $exclude_file:
ensure => 'file',
if $include != '' {
file { $include_file:
ensure => 'file',
content => template('rsnapshot/include.erb'),
}
}
if $exclude != '' {
file { $exclude_file:
ensure => 'file',
content => template('rsnapshot/exclude.erb'),
}
}
file { $config:
content => template('rsnapshot/rsnapshot.erb'),
}