Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Puppet Camptocamp Postfix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Projets publics
Puppet Camptocamp Postfix
Commits
dd50140d
Commit
dd50140d
authored
12 years ago
by
Raphaël Pinson
Browse files
Options
Downloads
Patches
Plain Diff
Refactor postfix::mailman
parent
04c76b10
Branches
Branches containing commit
Tags
v4.3.0
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifests/init.pp
+12
-1
12 additions, 1 deletion
manifests/init.pp
manifests/mailman.pp
+5
-8
5 additions, 8 deletions
manifests/mailman.pp
spec/classes/postfix_mailman_spec.rb
+4
-0
4 additions, 0 deletions
spec/classes/postfix_mailman_spec.rb
with
21 additions
and
9 deletions
manifests/init.pp
+
12
−
1
View file @
dd50140d
...
@@ -34,6 +34,7 @@ class postfix (
...
@@ -34,6 +34,7 @@ class postfix (
$mynetworks
=
undef
,
# postfix_mynetworks
$mynetworks
=
undef
,
# postfix_mynetworks
$mta
=
false
,
$mta
=
false
,
$satellite
=
false
,
$satellite
=
false
,
$mailman
=
false
,
)
inherits
postfix::params
{
)
inherits
postfix::params
{
validate_string
(
$smtp_listen
)
validate_string
(
$smtp_listen
)
...
@@ -53,10 +54,16 @@ class postfix (
...
@@ -53,10 +54,16 @@ class postfix (
validate_bool
(
$mta
)
validate_bool
(
$mta
)
validate_bool
(
$satellite
)
validate_bool
(
$satellite
)
validate_bool
(
$mailman
)
$_smtp_listen
=
$mailman
?
{
true
=>
'0.0.0.0'
,
default
=>
$smtp_listen
,
}
class
{
'postfix::packages'
:
}
->
class
{
'postfix::packages'
:
}
->
class
{
'postfix::files'
:
class
{
'postfix::files'
:
smtp_listen
=>
$smtp_listen
,
smtp_listen
=>
$
_
smtp_listen
,
root_mail_recipient
=>
$root_mail_recipient
,
root_mail_recipient
=>
$root_mail_recipient
,
use_amavisd
=>
$use_amavisd
,
use_amavisd
=>
$use_amavisd
,
use_dovecot_lda
=>
$use_dovecot_lda
,
use_dovecot_lda
=>
$use_dovecot_lda
,
...
@@ -79,4 +86,8 @@ class postfix (
...
@@ -79,4 +86,8 @@ class postfix (
if
$satellite
{
if
$satellite
{
include
::postfix::satellite
include
::postfix::satellite
}
}
it
$mailman
{
include
::postfix::mailman
}
}
}
This diff is collapsed.
Click to expand it.
manifests/mailman.pp
+
5
−
8
View file @
dd50140d
#
# == Class: postfix::mailman
# == Class: postfix::mailman
#
#
# Configures a basic smtp server, able to work for the mailman mailing-list
# Configures a basic smtp server, able to work for the mailman mailing-list
# manager.
# manager.
#
#
# Parameters:
# - every global variable which works for class 'postfix' will work here.
#
# Example usage:
# Example usage:
#
#
# node 'toto.example.com' {
# node 'toto.example.com' {
# include mailman
# class { '::postfix':
# include postfix::mailman
# mailman => true,
# }
# }
# }
#
#
# /!\ Do not include this class directly anymore,
# use mailman => true in the postfix top class!
class
postfix::mailman
{
class
postfix::mailman
{
$postfix_smtp_listen
=
'0.0.0.0'
include
postfix
postfix::config
{
postfix::config
{
'virtual_alias_maps'
:
'virtual_alias_maps'
:
...
...
This diff is collapsed.
Click to expand it.
spec/classes/postfix_mailman_spec.rb
0 → 100644
+
4
−
0
View file @
dd50140d
require
'spec_helper'
describe
'postfix::mailman'
do
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