[__opendkim*] add debian support #32
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
feedback-required
good-first-issue
ready
reviewed
suggestion
support
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist-contrib!32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "opendkim-debian"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See also: #28
Hey, the general gist of this review is:
--pidfile), we should consider re-using--custom-configand customising that when adding the defaults for Debian--userid, which is marked as deprecated in the type, when using Debian@ -4,2 +4,4 @@echo "# Managed remotely, manual changes will be lost."# Used for OS-specific configuration.os=$(cat "${__global:?}/explorer/os")It seems like we are not using this really, can we remove it?
@ -16,3 +16,2 @@Note that this type is currently only implemented for Alpine Linux and FreeBSD.Please contribute an implementation if you can.Note that this type is currently only implemented for Debian, Alpine Linux andNit-pick: could we write things alphabetically here? :-D
@ -29,2 +33,4 @@;;'freebsd')CFG_DIR="/usr/local/etc/mail"CFG_FILE="$CFG_DIR/opendkim.conf"This seems redundant as it is the default.
@ -73,0 +91,4 @@# "opendkim" in that case.if [ -z "$USERID" ]; thenexport USERID="opendkim"fiGiven that
USERIDexists for the--useridparameter, which was deprecated, I think this should instead (or additionally) check for theUserIDbeing defined in--extra-config, and if not, appending the corresponding line; similar to--processid.At least in theory, removing support for
--useridshould keep things working.As a general rule for all these special cases (
--umaskand--userid, for--pidfilesee comment below): they should be mentioned inman.rstas special default values.@ -4,3 +4,4 @@ subdomainsumaskuseridcustom-configpidfileRather than add more parameters to the type (we don't want to support 100% of the
.conf), I'd propose we rely on--custom-configinstead.We can check the contents of
--custom-configand adapt that as necessary for e.g. Debian.This keeps the type smaller and still just as flexible and out-of-the-box.
@ -3,0 +9,4 @@DIRECTORY="/var/db/dkim/";;*)DIRECTORY="/var/db/dkim/"I'd probably propose we keep only the
*)case, or we leaveDIRECTORY="/var/db/dkim/"outside of thecaseblock, and only keep the'debian')case.@ -23,3 +23,3 @@`--selector` parameters, the `$__object_id` must be in form `$domain/$selector`.Currently, this type is only implemented for Alpine Linux and FreeBSD.Currently, this type is only implemented for Debian, Alpine Linux and FreeBSD.Same nit-pick as for
__opendkim, I'd suggest using alphabetical sorting.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.