diff --git a/manifests/init.pp b/manifests/init.pp index 118f48b92e2e5aafd0bfbf6fcf59f1e413ef4703..447881f590361942aba5a7acafc3ba3f5d355bef 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -49,7 +49,7 @@ # } # class postfix ( - $inet_interfaces = 'localhost', + $inet_interfaces = 'all', $mail_user = 'vmail', # postfix_mail_user $mailman = false, $master_smtp = undef, # postfix_master_smtp diff --git a/spec/classes/postfix_spec.rb b/spec/classes/postfix_spec.rb index 3285a8102338902eee9c4674988bcb3aa3d9e74f..1d57c241903259924164cf031ac7cd5553b419b7 100644 --- a/spec/classes/postfix_spec.rb +++ b/spec/classes/postfix_spec.rb @@ -20,7 +20,7 @@ describe 'postfix' do it { should contain_postfix__config('myorigin').with_value('fqdn.example.com') } it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } - it { should contain_postfix__config('inet_interfaces').with_value('localhost') } + it { should contain_postfix__config('inet_interfaces').with_value('all') } it { should contain_mailalias('root').with_recipient('nobody') } @@ -51,7 +51,7 @@ describe 'postfix' do it { should contain_postfix__config('myorigin').with_value('fqdn.example.com') } it { should contain_postfix__config('alias_maps').with_value('hash:/etc/aliases') } - it { should contain_postfix__config('inet_interfaces').with_value('localhost') } + it { should contain_postfix__config('inet_interfaces').with_value('all') } it { should contain_postfix__config('sendmail_path') } it { should contain_postfix__config('newaliases_path') } it { should contain_postfix__config('mailq_path') }