Loading manifests/huntgroup.pp +1 −5 Original line number Diff line number Diff line Loading @@ -8,13 +8,9 @@ define freeradius::huntgroup ( $fr_basepath = $::freeradius::params::fr_basepath $fr_service = $::freeradius::params::fr_service $conditionals = join($conditions, ', ') $content = "${huntgroup}\t${conditionals}\n" concat::fragment { "huntgroup.${title}": target => "${fr_basepath}/mods-config/preprocess/huntgroups", content => $content, content => template('freeradius/huntgroup.erb'), order => $order, notify => Service[$fr_service], } Loading templates/huntgroup.erb +2 −6 Original line number Diff line number Diff line # ########################################################## # Huntgroup Puppet Name: <%= @name %> # <%- if @conditions.is_a?(Array) -%> <%= @conditions.collect { |cond| @name + " " + cond }.join("\n") %> <%= @conditions.collect { |cond| @huntgroup + " " + cond }.join("\n") %> <%- else -%> <%= @name %> <%= @conditions %> <%= @huntgroup %> <%= @conditions %> <%- end -%> Loading
manifests/huntgroup.pp +1 −5 Original line number Diff line number Diff line Loading @@ -8,13 +8,9 @@ define freeradius::huntgroup ( $fr_basepath = $::freeradius::params::fr_basepath $fr_service = $::freeradius::params::fr_service $conditionals = join($conditions, ', ') $content = "${huntgroup}\t${conditionals}\n" concat::fragment { "huntgroup.${title}": target => "${fr_basepath}/mods-config/preprocess/huntgroups", content => $content, content => template('freeradius/huntgroup.erb'), order => $order, notify => Service[$fr_service], } Loading
templates/huntgroup.erb +2 −6 Original line number Diff line number Diff line # ########################################################## # Huntgroup Puppet Name: <%= @name %> # <%- if @conditions.is_a?(Array) -%> <%= @conditions.collect { |cond| @name + " " + cond }.join("\n") %> <%= @conditions.collect { |cond| @huntgroup + " " + cond }.join("\n") %> <%- else -%> <%= @name %> <%= @conditions %> <%= @huntgroup %> <%= @conditions %> <%- end -%>