Skip to content
Snippets Groups Projects
Commit 22901939 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Add maincf_source and mastercf_source parameters

parent 42d21322
Branches
Tags
No related merge requests found
......@@ -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,
}
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment