Skip to content

Commit

Permalink
Solve #23 - Generic config line support
Browse files Browse the repository at this point in the history
  • Loading branch information
lvicainne committed May 27, 2022
1 parent 121f577 commit b5a3ae8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
$selector = undef
$publickey = undef
$privatekey = undef
$signaturealgorithm = undef
$minimumkeybits = undef

$keys = []
$nameservers = undef
Expand Down
13 changes: 9 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -15,23 +15,28 @@
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8",
"9"
]
},
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"6",
"7",
"8"
"8",
"9"
]
},
{
Expand Down
13 changes: 11 additions & 2 deletions templates/etc/opendkim.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>

0 comments on commit b5a3ae8

Please sign in to comment.