-
-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
372 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
ipaddress6: '::' | ||
networking: | ||
ip6: '::' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<%- | | ||
Boolean $has_ipaddress6, | ||
Boolean $ipv6_enable, | ||
Variant[Array[String], String] $ipv6_listen_ip, | ||
String $ipv6_listen_options, | ||
Stdlib::Port $ipv6_listen_port, | ||
Variant[Array[String], String] $listen_ip, | ||
Optional[String] $listen_options, | ||
Stdlib::Port $listen_port, | ||
String $mailhost_append, | ||
String[1] $mailhost_common, | ||
String $mailhost_prepend, | ||
String[1] $mailhost_ssl_settings, | ||
String[1] $nginx_version, | ||
Enum['on', 'off', 'only'] $starttls, | ||
| -%> | ||
# MANAGED BY PUPPET | ||
server { | ||
<%= $mailhost_prepend -%> | ||
<%- if $listen_ip =~ Array { -%> | ||
<%- $listen_ip.each |$ip| { -%> | ||
listen <%= $ip %>:<%= $listen_port %><% if $listen_options { %> <%= $listen_options %><% } %>; | ||
<%- } -%> | ||
<%- } else { -%> | ||
listen <%= $listen_ip %>:<%= $listen_port %><% if $listen_options { %> <%= $listen_options %><% } %>; | ||
<%- } -%> | ||
<%# check to see if ipv6 support exists in the kernel before applying -%> | ||
<%# FIXME this logic is duplicated all over the place -%> | ||
<%- if $ipv6_enable and $has_ipaddress6 { -%> | ||
<%- if $ipv6_listen_ip =~ Array { -%> | ||
<%- $ipv6_listen_ip.each |$ipv6| { -%> | ||
listen [<%= $ipv6 %>]:<%= $ipv6_listen_port %> <% if $ipv6_listen_options { %><%= $ipv6_listen_options %><% } %>; | ||
<%- } -%> | ||
<%- } else { -%> | ||
listen [<%= $ipv6_listen_ip %>]:<%= $ipv6_listen_port %> <% if $ipv6_listen_options { %><%= $ipv6_listen_options %><% } %>; | ||
<%- } -%> | ||
<%- } -%> | ||
<%= $mailhost_common -%> | ||
|
||
<%- if versioncmp($nginx_version, '1.15.0') < 0 { -%> | ||
ssl off; | ||
<% } %> | ||
starttls <%= $starttls %>; | ||
|
||
<% if $starttls == 'on' or $starttls == 'only' { %> | ||
<%= $mailhost_ssl_settings -%> | ||
<%- } -%> | ||
<%= $mailhost_append -%> | ||
} |
Oops, something went wrong.