Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dovecot::sieve to be configured with both content and source #35

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions manifests/sieve.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# notifies the dovecot service.
#
# @param content
# The content of the file.
# The desired content of the file, as string. This attribute is mutually exclusive with `source`.
#
# @param source
# A source file, which will be copied into place on the local system. This attribute is mutually exclusive with `content`.
#
# @param group
# The group that should own the file.
Expand All @@ -19,19 +22,16 @@
# @param sievec
# The path to the sievec binary.
#
# @param source
# Optional source for the file resource to use instead of `$content`.
#
# @author Bernhard Frauendienst <[email protected]>
#
define dovecot::sieve (
String $content = undef,
Optional[String] $content = undef,
Optional[String] $source = undef,
Variant[Integer, String] $group = 0,
Variant[Integer, String] $mode = '0644',
Variant[Integer, String] $owner = 'root',
Stdlib::Absolutepath $path = $name,
Stdlib::Absolutepath $sievec = $dovecot::sievec,
Optional[String] $source = undef,
) {
file { "dovecot sieve ${title}":
path => $path,
Expand Down