1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2025-09-07 21:59:29 +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

@@ -82,25 +82,19 @@ ssh_args <%= @ssh_args %>
<% if @du_args != '' -%>
du_args <%= @du_args %>
<% end -%>
<% if @one_fs != '' %>
<% if @one_fs != '' -%>
one_fs <%= @one_fs_num %>
<% end -%>
<% if @include != '' %>
<% @include.each do |pattern| -%>
include <%= pattern %>
<% end -%>
<%end-%>
<% if @exclude != '' %>
<% @exclude.each do |pattern| -%>
exclude <%= pattern %>
<% end -%>
<%end-%>
<% if @include != '' -%>
<% if @include_file != '' -%>
include_file <%= @include_file %>
<% end -%>
<% end -%>
<% if @exclude != '' -%>
<% if @exclude_file != '' -%>
exclude_file <%= @exclude_file %>
<% end -%>
<% end -%>
<% if @link_dest != '' -%>
link_dest <%= @link_dest_num %>
<% end -%>