Loading README.md +6 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,12 @@ A Boolean defining whether the puppet module should replace the configuration fi Default: true. ##### `manage_mailx` A Boolean defining whether the puppet module should manage the mailx package. See also $mailx_ensure. Default: true. ##### `mastercf_source` A string defining the location of a skeleton master.cf file to be used. Default: Undefined. Loading manifests/init.pp +4 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,8 @@ # # [*manage_conffiles*] - (boolean) Whether config files are to be replaced # # [*manage_mailx*] - (boolean) Whether to manage mailx package. # # [*mastercf_source*] - (string) # # [*master_smtp*] - (string) Loading Loading @@ -80,6 +82,7 @@ class postfix ( $mailman = false, $maincf_source = "puppet:///modules/${module_name}/main.cf", $manage_conffiles = true, $manage_mailx = true, $mastercf_source = undef, $master_smtp = undef, # postfix_master_smtp $master_smtps = undef, # postfix_master_smtps Loading @@ -106,6 +109,7 @@ class postfix ( validate_bool($mailman) validate_bool($mta) validate_bool($manage_root_alias) validate_bool($manage_mailx) validate_bool($satellite) validate_bool($use_amavisd) validate_bool($use_dovecot_lda) Loading manifests/packages.pp +2 −0 Original line number Diff line number Diff line Loading @@ -5,8 +5,10 @@ class postfix::packages { ensure => $postfix::postfix_ensure, } if ($postfix::manage_mailx) { package { 'mailx': ensure => $postfix::mailx_ensure, name => $postfix::params::mailx_package, } } } spec/classes/postfix_spec.rb +6 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,12 @@ describe 'postfix' do is_expected.not_to contain_mailalias('root') end end context 'when manage_mailx is false' do let(:params) { { :manage_mailx => false } } it 'should not have mailx package' do is_expected.not_to contain_package('mailx') end end end end end Loading Loading
README.md +6 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,12 @@ A Boolean defining whether the puppet module should replace the configuration fi Default: true. ##### `manage_mailx` A Boolean defining whether the puppet module should manage the mailx package. See also $mailx_ensure. Default: true. ##### `mastercf_source` A string defining the location of a skeleton master.cf file to be used. Default: Undefined. Loading
manifests/init.pp +4 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,8 @@ # # [*manage_conffiles*] - (boolean) Whether config files are to be replaced # # [*manage_mailx*] - (boolean) Whether to manage mailx package. # # [*mastercf_source*] - (string) # # [*master_smtp*] - (string) Loading Loading @@ -80,6 +82,7 @@ class postfix ( $mailman = false, $maincf_source = "puppet:///modules/${module_name}/main.cf", $manage_conffiles = true, $manage_mailx = true, $mastercf_source = undef, $master_smtp = undef, # postfix_master_smtp $master_smtps = undef, # postfix_master_smtps Loading @@ -106,6 +109,7 @@ class postfix ( validate_bool($mailman) validate_bool($mta) validate_bool($manage_root_alias) validate_bool($manage_mailx) validate_bool($satellite) validate_bool($use_amavisd) validate_bool($use_dovecot_lda) Loading
manifests/packages.pp +2 −0 Original line number Diff line number Diff line Loading @@ -5,8 +5,10 @@ class postfix::packages { ensure => $postfix::postfix_ensure, } if ($postfix::manage_mailx) { package { 'mailx': ensure => $postfix::mailx_ensure, name => $postfix::params::mailx_package, } } }
spec/classes/postfix_spec.rb +6 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,12 @@ describe 'postfix' do is_expected.not_to contain_mailalias('root') end end context 'when manage_mailx is false' do let(:params) { { :manage_mailx => false } } it 'should not have mailx package' do is_expected.not_to contain_package('mailx') end end end end end Loading