Merge pull request #139 from crowdworks/fix_amazon_support
Fix support for Amazon Linux
This commit is contained in:
commit
a6fd99b064
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user