From 0da74e149049535891c3cde2f40fd9c470cb1359 Mon Sep 17 00:00:00 2001 From: jtimberman Date: Sun, 13 Jun 2010 13:16:20 -0600 Subject: [PATCH] @node is deprecated, use node, chef commit f904589 --- templates/default/main.cf.erb | 32 +++++++++++++++---------------- templates/default/sasl_passwd.erb | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/templates/default/main.cf.erb b/templates/default/main.cf.erb index 0e8144f..7d91afc 100644 --- a/templates/default/main.cf.erb +++ b/templates/default/main.cf.erb @@ -1,6 +1,6 @@ ### -# Generated by Chef for <%= @node[:fqdn] %> -# Configured as <%= @node[:postfix][:mail_type] %> +# Generated by Chef for <%= node[:fqdn] %> +# Configured as <%= node[:postfix][:mail_type] %> ### biff = no @@ -10,27 +10,27 @@ smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache -smtp_sasl_auth_enable = <%= @node[:postfix][:smtp_sasl_auth_enable] %> -<% if @node[:postfix][:smtp_sasl_auth_enable] == "yes" -%> -smtp_sasl_password_maps = <%= @node[:postfix][:smtp_sasl_password_maps] %> -smtp_sasl_security_options = <%= @node[:postfix][:smtp_sasl_security_options] %> -smtp_tls_CAfile = <%= @node[:postfix][:smtp_tls_cafile] %> -smtp_use_tls = <%= @node[:postfix][:smtp_use_tls] %> +smtp_sasl_auth_enable = <%= node[:postfix][:smtp_sasl_auth_enable] %> +<% if node[:postfix][:smtp_sasl_auth_enable] == "yes" -%> +smtp_sasl_password_maps = <%= node[:postfix][:smtp_sasl_password_maps] %> +smtp_sasl_security_options = <%= node[:postfix][:smtp_sasl_security_options] %> +smtp_tls_CAfile = <%= node[:postfix][:smtp_tls_cafile] %> +smtp_use_tls = <%= node[:postfix][:smtp_use_tls] %> <% end -%> -myhostname = <%= @node[:postfix][:myhostname] %> -mydomain = <%= @node[:postfix][:mydomain] %> -myorigin = <%= @node[:postfix][:myorigin] %> +myhostname = <%= node[:postfix][:myhostname] %> +mydomain = <%= node[:postfix][:mydomain] %> +myorigin = <%= node[:postfix][:myorigin] %> smtpd_banner = $myhostname ESMTP $mail_name alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases -mydestination = <%= @node[:postfix][:myhostname] %>, <%= @node[:hostname] %>, localhost.localdomain, localhost -<% if @node[:postfix][:mail_type] == "master" -%> +mydestination = <%= node[:postfix][:myhostname] %>, <%= node[:hostname] %>, localhost.localdomain, localhost +<% if node[:postfix][:mail_type] == "master" -%> relayhost = -mynetworks = <%= @node[:postfix][:mail_relay_networks] %> +mynetworks = <%= node[:postfix][:mail_relay_networks] %> inet_interfaces = all <% else -%> -relayhost = <%= @node[:postfix][:relayhost] %> -mynetworks = <%= @node[:postfix][:mail_relay_networks] %> +relayhost = <%= node[:postfix][:relayhost] %> +mynetworks = <%= node[:postfix][:mail_relay_networks] %> inet_interfaces = loopback-only <% end -%> mailbox_size_limit = 0 diff --git a/templates/default/sasl_passwd.erb b/templates/default/sasl_passwd.erb index 10a4a23..e10535e 100644 --- a/templates/default/sasl_passwd.erb +++ b/templates/default/sasl_passwd.erb @@ -1 +1 @@ -<%= @node[:postfix][:relayhost] %> <%= @node[:postfix][:smtp_sasl_user_name] %>:<%= @node[:postfix][:smtp_sasl_passwd] %> +<%= node[:postfix][:relayhost] %> <%= node[:postfix][:smtp_sasl_user_name] %>:<%= node[:postfix][:smtp_sasl_passwd] %>