2014-11-05 10:12:05 +01:00
|
|
|
### MANAGED BY PUPPET ###
|
|
|
|
|
2013-09-13 19:13:26 +02:00
|
|
|
<% @options.sort.map do |k,v| -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<% if v.is_a?(Hash) -%>
|
|
|
|
[<%= k %>]
|
|
|
|
<% v.sort.map do |ki, vi| -%>
|
2014-03-06 14:03:13 +01:00
|
|
|
<% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
|
2014-02-28 19:07:48 +01:00
|
|
|
<% next %>
|
2016-01-08 13:52:23 +01:00
|
|
|
<% elsif vi == true or vi == '' -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<%= ki %>
|
|
|
|
<% elsif vi.is_a?(Array) -%>
|
|
|
|
<% vi.each do |vii| -%>
|
|
|
|
<%= ki %> = <%= vii %>
|
|
|
|
<% end -%>
|
2014-09-15 19:08:16 +02:00
|
|
|
<% elsif ![nil, '', :undef].include?(vi) -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<%= ki %> = <%= vi %>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
<% end %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2012-03-20 00:24:01 +01:00
|
|
|
|
2014-06-04 14:05:39 +02:00
|
|
|
<% if @includedir and @includedir != '' %>
|
|
|
|
!includedir <%= @includedir %>
|
|
|
|
<% end %>
|