Commit 8bc88588 authored by Jeff Adams's avatar Jeff Adams Committed by Raphaël Pinson
Browse files

Add inet_protocol param. (#172)

parent 788d8764
......@@ -3,6 +3,7 @@ class postfix::files {
$alias_maps = $postfix::all_alias_maps
$inet_interfaces = $postfix::inet_interfaces
$inet_protocols = $postfix::inet_protocols
$mail_user = $postfix::mail_user
$manage_conffiles = $postfix::manage_conffiles
$maincf_source = $postfix::maincf_source
......@@ -84,6 +85,7 @@ class postfix::files {
::postfix::config {
'alias_maps': value => $alias_maps;
'inet_interfaces': value => $inet_interfaces;
'inet_protocols': value => $inet_protocols;
'myorigin': value => $myorigin;
}
......
......@@ -10,6 +10,8 @@
#
# [*inet_interfaces*] - (string)
#
# [*inet_protocols*] - (string)
#
# [*ldap*] - (boolean) Whether to use LDAP
#
# [*ldap_base*] - (string)
......@@ -74,6 +76,7 @@
class postfix (
String $alias_maps = 'hash:/etc/aliases',
String $inet_interfaces = 'all',
String $inet_protocols = 'all',
Boolean $ldap = false,
Optional[String] $ldap_base = undef,
Optional[String] $ldap_host = undef,
......
......@@ -18,6 +18,7 @@ describe 'postfix' do
it { is_expected.to contain_postfix__config('myorigin').with_value('foo.example.com') }
it { is_expected.to contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') }
it { is_expected.to contain_postfix__config('inet_interfaces').with_value('all') }
it { is_expected.to contain_postfix__config('inet_protocols').with_value('all') }
it { is_expected.to contain_mailalias('root').with_recipient('nobody') }
case facts[:osfamily]
......
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