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' default['postfix']['cafile'] = '/opt/local/etc/postfix/cacert.pem'
when 'rhel' when 'rhel'
default['postfix']['cafile'] = '/etc/pki/tls/cert.pem' default['postfix']['cafile'] = '/etc/pki/tls/cert.pem'
when 'amazon'
default['postfix']['cafile'] = '/etc/pki/tls/cert.pem'
else else
default['postfix']['cafile'] = "#{node['postfix']['conf_dir']}/cacert.pem" default['postfix']['cafile'] = "#{node['postfix']['conf_dir']}/cacert.pem"
end end

View File

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

View File

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