1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-09-20 01:10:35 +00:00
This commit is contained in:
Norbert Varzariu 2016-01-20 10:38:27 +01:00
parent 396d71cb8e
commit 941036d986
2 changed files with 7 additions and 11 deletions

View File

@ -110,15 +110,11 @@ class rsnapshot::config (
} }
$real_include = $rsnapshot::include + $include $real_include = $rsnapshot::include + $include
notify { "$real_include for $host": } if $real_include != '' {
if empty($real_include) { file { $include_file:
notify { "$host $real_include is empty": } ensure => 'file',
} else { content => template('rsnapshot/include.erb'),
# file { $include_file: }
# ensure => 'file',
# content => template('rsnapshot/include.erb'),
#}
notify { "${host} $real_include is not empty": }
} }
$real_exclude = $rsnapshot::exclude + $exclude $real_exclude = $rsnapshot::exclude + $exclude