Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
1416e38e
Verified
Commit
1416e38e
authored
6 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
postfix backwards compatibility change
parent
1667e6cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Puppet5 lonlone
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+5
-0
5 additions, 0 deletions
NEWS
manifests/postfix.pp
+30
-9
30 additions, 9 deletions
manifests/postfix.pp
templates/postfix/etc/postfix/main.cf.erb
+6
-0
6 additions, 0 deletions
templates/postfix/etc/postfix/main.cf.erb
with
41 additions
and
9 deletions
NEWS
+
5
−
0
View file @
1416e38e
unreleased (207x-xx-xx)
[postfix] Add the parameter "enable_postfix_compat2" to the
base::postfix class to add the backwards compatibility option to
main.cf. Defaults to true so the class acts the same as it ever
did. [adamhl]
[ssh] Remove the two options "RSAAuthentication" and
"RhostsRSAAuthentication" that have been deprecated and are only used
with SSH's protocol 1 (which we don't use anyway). See
...
...
This diff is collapsed.
Click to expand it.
manifests/postfix.pp
+
30
−
9
View file @
1416e38e
...
...
@@ -4,7 +4,17 @@
# Standard Postfix class for outgoing servers. There is no daemon listening
# on SMTP port. The outgoing mail will be masqueraded except root mail.
class
base::postfix
{
#
# $enable_postfix_compat2: if true, will add the line
#
# compatibility_level = 2
#
# to /etc/postfix/main.cf. For more information, see
# http://www.postfix.org/COMPATIBILITY_README.html#turnoff
class
base::postfix
(
$enable_postfix_compat2
=
true
,
)
{
package
{
'postfix'
:
ensure
=>
present
}
# The core service. The init script appears to support status on all the
...
...
@@ -37,19 +47,30 @@ class base::postfix {
file
{
'/etc/filter-syslog/postfix'
:
source
=>
'puppet:///modules/base/postfix/etc/filter-syslog/postfix'
;
'/etc/postfix/main.cf'
:
source
=>
$::lsbdistcodename
?
{
# rhel5 only fix for prng_exch
'Tikanga'
=>
'puppet:///modules/base/postfix/etc/postfix/main.cf.tikanga'
,
default
=>
'puppet:///modules/base/postfix/etc/postfix/main.cf'
,
},
notify
=>
Service
[
'postfix'
],
require
=>
Package
[
'postfix'
];
'/etc/postfix/master.cf'
:
source
=>
"puppet:///modules/base/postfix/etc/postfix/master.cf.
$mastercfsuffix
"
,
notify
=>
Service
[
'postfix'
],
require
=>
Package
[
'postfix'
];
}
# main.cf
case
$::lsbdistcodename
{
'Tikanga'
:
{
file
{
'/etc/postfix/main.cf'
:
source
=>
'puppet:///modules/base/postfix/etc/postfix/main.cf.tikanga'
,
notify
=>
Service
[
'postfix'
],
require
=>
Package
[
'postfix'
],
}
}
default
:
{
file
{
'/etc/postfix/main.cf'
:
content
=>
template
(
'base/postfix/etc/postfix/main.cf.erb'
),
notify
=>
Service
[
'postfix'
],
require
=>
Package
[
'postfix'
],
}
}
}
base::postfix::map
{
'/etc/postfix/recipients'
:
ensure
=>
present
;
...
...
This diff is collapsed.
Click to expand it.
fil
es/postfix/etc/postfix/main.cf
→
templat
es/postfix/etc/postfix/main.cf
.erb
+
6
−
0
View file @
1416e38e
...
...
@@ -19,3 +19,9 @@ transport_maps = hash:/etc/postfix/transport
smtp_tls_loglevel = 1
smtp_use_tls = yes
smtp_tls_security_level = may
<%-
if
(
@enable_postfix_compat2
)
then
-%>
# Make postfix defaults act in the version 2 manner. Should add
# appropriate defaults at some point so we can remove this directive.
compatibility_level = 2
<%-
end
-%>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment