Fix support for Amazon Linux

Signed-off-by: AkiraFukushima <akira.fukushima@crowdworks.co.jp>
This commit is contained in:
AkiraFukushima 2017-07-28 18:03:06 +09:00
parent 7d1b0e81c9
commit e818f0687b
3 changed files with 5 additions and 1 deletions

View File

@ -99,6 +99,8 @@ when 'smartos'
default['postfix']['cafile'] = '/opt/local/etc/postfix/cacert.pem'
when 'rhel'
default['postfix']['cafile'] = '/etc/pki/tls/cert.pem'
when 'amazon'
default['postfix']['cafile'] = '/etc/pki/tls/cert.pem'
else
default['postfix']['cafile'] = "#{node['postfix']['conf_dir']}/cacert.pem"
end

View File

@ -24,7 +24,7 @@ package 'postfix'
package 'procmail' if node['postfix']['use_procmail']
case node['platform_family']
when 'rhel', 'fedora'
when 'rhel', 'fedora', 'amazon'
service 'sendmail' do
action :nothing
end

View File

@ -33,6 +33,8 @@ when 'rhel'
else
%w(cyrus-sasl cyrus-sasl-plain ca-certificates)
end
when 'amazon'
sasl_pkgs = %w(cyrus-sasl cyrus-sasl-plain ca-certificates)
when 'fedora'
sasl_pkgs = %w(cyrus-sasl cyrus-sasl-plain ca-certificates)
end