File: _file_header.epp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,199 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
<%= [$comment].flatten.map |$c| { "# ${c}" }.join("\n") -%>
<%- if $mdomain { -%>

  <%- if $mdomain =~ String { -%>

MDomain <%= $mdomain %>
  <%-} else {-%>
MDomain <%= $servername %>
  <%- } -%>
<% } -%>

<VirtualHost <%= [$nvh_addr_port].flatten().filter |$value| { $value }.join(' ') %>>
<% $define.each | $k, $v| { -%>
  Define <%= $k %> <%= $v %>
<% } -%>
<% if $servername and !$servername.empty { -%>
  ServerName <%= $servername %>
<% } -%>
<% if $serveradmin { -%>
  ServerAdmin <%= $serveradmin %>
<% } -%>
<%- unless $protocols.empty { -%>
  Protocols <%= join($protocols, ' ') %>
<%- } -%>
<%- unless $protocols_honor_order == undef { -%>
  ProtocolsHonorOrder <%= apache::bool2httpd($protocols_honor_order) %>
<%- } -%>
<% if $limitreqfieldsize { -%>
  LimitRequestFieldSize <%= $limitreqfieldsize %>
<% } -%>
<% if $limitreqfields { -%>
  LimitRequestFields <%= $limitreqfields %>
<% } -%>
<% if $limitreqline { -%>
  LimitRequestLine <%= $limitreqline %>
<% } -%>
<% if $limitreqbody { -%>
  LimitRequestBody <%= $limitreqbody %>
<% } -%>