Skip to content

Commit

Permalink
Merge pull request #2 from patricknelson/master
Browse files Browse the repository at this point in the history
FIX for #1 Setup the ability to exclude paths/patterns
  • Loading branch information
scottsb committed Sep 11, 2015
2 parents c8066ba + 781718f commit c109f91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/serverset.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
define clustersync::serverset (
$servers,
$exclude = [],
$auto = undef,
$key_source = undef,
$key_content = undef,
$csync2_template = 'clustersync/csync2_serverset.cfg.erb'
Expand Down
8 changes: 8 additions & 0 deletions templates/csync2_serverset.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@ group primary {
include <%= source_path %>;
<%- end -%>
<%- @exclude.sort.each do |exclude_alias| -%>
exclude <%= exclude_alias %>;
<%- end -%>
<%- if @auto -%>
auto <%= @auto %>;
<%- end -%>

key /etc/csync2/csync2_<%= @title %>.key;
}

0 comments on commit c109f91

Please sign in to comment.