Commit 77aa4172 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Don't pass parameters to postfix::files, get them from postfix

parent c9be1c57
class postfix::files (
$smtp_listen,
$root_mail_recipient,
$use_amavisd,
$use_dovecot_lda,
$use_schleuder,
$use_sympa,
$mail_user,
$myorigin,
$inet_interfaces,
$master_smtp,
$master_smtps,
$master_submission,
) {
class postfix::files {
include postfix::params
$inet_interfaces = $postfix::inet_interfaces
$mail_user = $postfix::mail_user
$master_smtp = $postfix::master_smtp
$master_smtps = $postfix::master_smtps
$master_submission = $postfix::master_submission
$myorigin = $postfix::myorigin
$root_mail_recipient = $postfix::root_mail_recipient
$smtp_listen = $postfix::smtp_listen
$use_amavisd = $postfix::use_amavisd
$use_dovecot_lda = $postfix::use_dovecot_lda
$use_schleuder = $postfix::use_schleuder
$use_sympa = $postfix::use_sympa
file { '/etc/mailname':
ensure => present,
content => "${::fqdn}\n",
......
......@@ -97,20 +97,7 @@ class postfix (
}
class { 'postfix::packages': } ->
class { 'postfix::files':
inet_interfaces => $inet_interfaces,
mail_user => $mail_user,
master_smtp => $master_smtp,
master_smtps => $master_smtps,
master_submission => $master_submission,
myorigin => $myorigin,
root_mail_recipient => $root_mail_recipient,
smtp_listen => $_smtp_listen,
use_amavisd => $use_amavisd,
use_dovecot_lda => $use_dovecot_lda,
use_schleuder => $use_schleuder,
use_sympa => $use_sympa,
} ~>
class { 'postfix::files': } ~>
class { 'postfix::service': } ->
Class['postfix']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment