Merge pull request #139 from crowdworks/fix_amazon_support

Fix support for Amazon Linux
This commit is contained in:
Tim Smith 2017-07-28 09:09:21 -07:00 committed by GitHub
commit a6fd99b064
3 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,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