From 941036d9867e1304b78eb06e6f68c97da72e484f Mon Sep 17 00:00:00 2001 From: Norbert Varzariu Date: Wed, 20 Jan 2016 10:38:27 +0100 Subject: [PATCH] testing --- manifests/config.pp | 14 +++++--------- manifests/params.pp | 4 ++-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index ff942c4..621d234 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -110,15 +110,11 @@ class rsnapshot::config ( } $real_include = $rsnapshot::include + $include - notify { "$real_include for $host": } - if empty($real_include) { - notify { "$host $real_include is empty": } - } else { - # file { $include_file: - # ensure => 'file', - # content => template('rsnapshot/include.erb'), - #} - notify { "${host} $real_include is not empty": } + if $real_include != '' { + file { $include_file: + ensure => 'file', + content => template('rsnapshot/include.erb'), + } } $real_exclude = $rsnapshot::exclude + $exclude diff --git a/manifests/params.pp b/manifests/params.pp index d885dc3..2f9315b 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -48,8 +48,8 @@ class rsnapshot::params { 'weekly' => '4', 'monthly' => '6', } - $config_include = [ ] - $config_exclude = [ ] + $config_include = [] + $config_exclude = [] $config_include_file = undef $config_exclude_file = undef $config_link_dest = false