Merge pull request #97 from cmluciano/drag00n/adddebiancert
Update CAfile path for Debian-based OS.
This commit is contained in:
commit
0008961b28
@ -87,6 +87,8 @@ default['postfix']['main']['inet_interfaces'] = 'loopback-only'
|
|||||||
|
|
||||||
# Conditional attributes, also reference _attributes recipe
|
# Conditional attributes, also reference _attributes recipe
|
||||||
case node['platform_family']
|
case node['platform_family']
|
||||||
|
when 'debian'
|
||||||
|
default['postfix']['cafile'] = '/etc/ssl/certs/ca-certificates.crt'
|
||||||
when 'smartos'
|
when 'smartos'
|
||||||
default['postfix']['main']['smtpd_use_tls'] = 'no'
|
default['postfix']['main']['smtpd_use_tls'] = 'no'
|
||||||
default['postfix']['main']['smtp_use_tls'] = 'no'
|
default['postfix']['main']['smtp_use_tls'] = 'no'
|
||||||
|
@ -39,7 +39,7 @@ describe 'postfix::default' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it '[COOK-4423] renders file main.cf with /etc/postfix/cacert.pem' do
|
it '[COOK-4423] renders file main.cf with /etc/postfix/cacert.pem' do
|
||||||
expect(chef_run).to render_file('/etc/postfix/main.cf').with_content(%r{smtp_tls_CAfile += +/etc/postfix/cacert.pem})
|
expect(chef_run).to render_file('/etc/postfix/main.cf').with_content(%r{smtp_tls_CAfile += +/etc/ssl/certs/ca-certificates.crt})
|
||||||
end
|
end
|
||||||
|
|
||||||
it '[COOK-4619] does not set recipient_delimiter' do
|
it '[COOK-4619] does not set recipient_delimiter' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user