Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
22901939
Commit
22901939
authored
Jul 22, 2013
by
Raphaël Pinson
Browse files
Add maincf_source and mastercf_source parameters
parent
42d21322
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/files.pp
View file @
22901939
...
...
@@ -37,15 +37,22 @@ class postfix::files {
}
# Config files
if
$postfix::mastercf_source
{
$mastercf_content
=
undef
}
else
{
$mastercf_content
=
template
(
$postfix::params::master_os_template
,
"
${module_name}
/master.cf.common.erb"
)
}
file
{
'/etc/postfix/master.cf'
:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
content
=>
template
(
$postfix::params::master_os_template
,
"
${module_name}
/master.cf.common.erb"
),
source
=>
$postfix::mastercf_source
,
content
=>
$mastercf_content
,
seltype
=>
$postfix::params::seltype
,
}
...
...
@@ -55,7 +62,7 @@ class postfix::files {
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
source
=>
"puppet:///modules/
${module_name}
/
main
.
cf
"
,
source
=>
$postfix::
maincf
_source
,
replace
=>
false
,
seltype
=>
$postfix::params::seltype
,
}
...
...
manifests/init.pp
View file @
22901939
...
...
@@ -52,6 +52,8 @@ class postfix (
$inet_interfaces
=
'all'
,
$mail_user
=
'vmail'
,
# postfix_mail_user
$mailman
=
false
,
$maincf_source
=
"puppet:///modules/
${module_name}
/main.cf"
,
$mastercf_source
=
undef
,
$master_smtp
=
undef
,
# postfix_master_smtp
$master_smtps
=
undef
,
# postfix_master_smtps
$master_submission
=
undef
,
# postfix_master_submission
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment