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:
@@ -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'),
|
||||
}
|
||||
|
Reference in New Issue
Block a user