From b5a3ae8c8fa0932dc7f19a28d307e0cd2f0fdd4c Mon Sep 17 00:00:00 2001 From: lvicainne Date: Sat, 28 May 2022 00:23:44 +0200 Subject: [PATCH] Solve #23 - Generic config line support --- manifests/init.pp | 2 ++ manifests/params.pp | 2 ++ metadata.json | 13 +++++++++---- templates/etc/opendkim.conf.erb | 13 +++++++++++-- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 7b77bd1..790c178 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -32,6 +32,8 @@ Optional[String] $selector = $opendkim::params::selector, Optional[String] $publickey = $opendkim::params::publickey, Optional[String] $privatekey = $opendkim::params::privatekey, + Optional[String] $signaturealgorithm = $opendkim::params::signaturealgorithm, + Optional[Integer] $minimumkeybits = $opendkim::params::minimumkeybits, Array[Struct[{ domain => String, diff --git a/manifests/params.pp b/manifests/params.pp index 216c31c..5736a97 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -22,6 +22,8 @@ $selector = undef $publickey = undef $privatekey = undef + $signaturealgorithm = undef + $minimumkeybits = undef $keys = [] $nameservers = undef diff --git a/metadata.json b/metadata.json index d86e356..e9c68a4 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "lvicainne-opendkim", - "version": "0.2.9", + "version": "0.3.0", "author": "lvicainne", "license": "Apache-2.0", "summary": "Manage an OpenDKIM configuration", @@ -15,7 +15,9 @@ "operatingsystemrelease": [ "5", "6", - "7" + "7", + "8", + "9" ] }, { @@ -23,7 +25,9 @@ "operatingsystemrelease": [ "5", "6", - "7" + "7", + "8", + "9" ] }, { @@ -31,7 +35,8 @@ "operatingsystemrelease": [ "6", "7", - "8" + "8", + "9" ] }, { diff --git a/templates/etc/opendkim.conf.erb b/templates/etc/opendkim.conf.erb index 6c19eb8..2d4f73c 100644 --- a/templates/etc/opendkim.conf.erb +++ b/templates/etc/opendkim.conf.erb @@ -114,9 +114,18 @@ MaximumSignedBytes <%= @maximum_signed_bytes %> <% end -%> <% if @trustanchorfile -%> -TrustAnchorFile <%= @trustanchorfile %> -<% end -%> +TrustAnchorFile <%= @trustanchorfile %> +<% end -%> <% if @senderheaders -%> + SenderHeaders <%= @senderheaders.join(',') %> <% end -%> +<% if @signaturealgorithm -%> +SignatureAlgorithm <%= @signaturealgorithm %> + +<% end -%> +<% if @minimumkeybits -%> +MinimumKeyBits <%= @minimumkeybits %> + +<% end -%>