Update CAfile path for Debian-based OS.
This fixes [issue 96](https://github.com/opscode-cookbooks/postfix/issues/96). I also updated the ChefSpec test to reflect the changes.
This commit is contained in:
parent
4143c363c1
commit
adc0316fc5
@ -81,6 +81,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