diff --git a/REFERENCE.md b/REFERENCE.md index 9f043b8e7e6c60d57a48bf463a3bbc6d4142865a..bb49d575eb7ff8c091b399d91c95175c23025c48 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -50,6 +50,7 @@ The following parameters are available in the `coturn` class: * [`dh2066`](#dh2066) * [`tlsv1`](#tlsv1) * [`tlsv1_1`](#tlsv1_1) +* [`tlsv1_2`](#tlsv1_2) * [`simple_log`](#simple_log) * [`proc_user`](#proc_user) * [`proc_group`](#proc_group) @@ -244,6 +245,14 @@ Allow an TLS/DTLS version of protocol v1.1 Default value: ``false`` +##### <a name="tlsv1_2"></a>`tlsv1_2` + +Data type: `Boolean` + +Allow an TLS/DTLS version of protocol v1.2 + +Default value: ``true`` + ##### <a name="simple_log"></a>`simple_log` Data type: `Boolean` diff --git a/manifests/init.pp b/manifests/init.pp index 145b221d1076c178937277ae783be545410db6b3..ddaf3b06e9d17b1912f5ac7defadb4048a653162 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -68,6 +68,8 @@ # Allow an TLS/DTLS version of protocol v1 # @param tlsv1_1 # Allow an TLS/DTLS version of protocol v1.1 +# @param tlsv1_2 +# Allow an TLS/DTLS version of protocol v1.2 # @param simple_log # This flag means that no log file rollover will be used, and the log file # name will be constructed as-is, without PID and date appendage. @@ -101,6 +103,7 @@ class coturn ( Boolean $dh2066 = true, Boolean $tlsv1 = false, Boolean $tlsv1_1 = false, + Boolean $tlsv1_2 = true, String[1] $proc_user = 'turnserver', String[1] $proc_group = 'turnserver', Boolean $simple_log = true, diff --git a/templates/turnserver.conf.epp b/templates/turnserver.conf.epp index 69924ac78d83598e8e3e17da47ff1f2ef3eecb06..89560efd1c8c687444db948797de1435729d0956 100644 --- a/templates/turnserver.conf.epp +++ b/templates/turnserver.conf.epp @@ -13,6 +13,7 @@ cipher-list='<%= $coturn::cipher_list -%>' <% if $coturn::dh2066 == true { %>dh2066<% } %> <% if $coturn::tlsv1 == false { %>no-tlsv1<% } %> <% if $coturn::tlsv1_1 == false { %>no-tlsv1_1<% } %> +<% if $coturn::tlsv1_2 == false { %>no-tlsv1_2<% } %> <% } %> <% if $coturn::total_quota { %>total-quota=<%= $coturn::total_quota -%><% } %>