Fix Ruby style
This is using Standard Ruby
This commit is contained in:
parent
0fe6d0bd06
commit
a828d92185
@ -3,12 +3,12 @@
|
|||||||
# Recipe:: default
|
# Recipe:: default
|
||||||
#
|
#
|
||||||
|
|
||||||
node.default['postfix']['main']['smtp_tls_CAfile'] = '/etc/ssl/certs/ca-certificates.crt'
|
node.default["postfix"]["main"]["smtp_tls_CAfile"] = "/etc/ssl/certs/ca-certificates.crt"
|
||||||
node.default['postfix']['main']['smtpd_tls_CAfile'] = '/etc/ssl/certs/ca-certificates.crt'
|
node.default["postfix"]["main"]["smtpd_tls_CAfile"] = "/etc/ssl/certs/ca-certificates.crt"
|
||||||
|
|
||||||
return if node.run_list.roles.include?("email_server")
|
return if node.run_list.roles.include?("email_server")
|
||||||
|
|
||||||
smtp_credentials = Chef::EncryptedDataBagItem.load('credentials', 'smtp')
|
smtp_credentials = Chef::EncryptedDataBagItem.load("credentials", "smtp")
|
||||||
|
|
||||||
node.default["postfix"]["sasl"] = {
|
node.default["postfix"]["sasl"] = {
|
||||||
smtp_credentials["relayhost"] => {
|
smtp_credentials["relayhost"] => {
|
||||||
@ -17,4 +17,9 @@ node.default["postfix"]["sasl"] = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include_recipe 'postfix::default'
|
# Postfix doesn"t support smtps relayhost, use STARTSSL instead
|
||||||
|
node.default["postfix"]["main"]["relayhost"] = smtp_credentials["relayhost"]
|
||||||
|
node.default["postfix"]["main"]["smtp_sasl_auth_enable"] = "yes"
|
||||||
|
node.default["postfix"]["main"]["smtp_sasl_security_options"] = "noanonymous"
|
||||||
|
|
||||||
|
include_recipe "postfix::default"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user