From 54e5c1268eac3cb97bbbd59c5a300fc65b0b9804 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Mon, 25 Aug 2014 16:04:06 -0700 Subject: [PATCH] Fix deprecation warnings in exim module Change-Id: I432c6f664d13c32daac0e22b0aee55b511de5c5d --- templates/aliases.erb | 4 ++-- templates/exim.sysconfig.erb | 2 +- templates/exim4.conf.erb | 20 ++++++++++---------- templates/exim4.default.erb | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/templates/aliases.erb b/templates/aliases.erb index 879b3f1..bf224dd 100644 --- a/templates/aliases.erb +++ b/templates/aliases.erb @@ -14,6 +14,6 @@ security: root gerrit2: root jenkins: root -<% if sysadmins.length > 0 -%> -root: <%= sysadmins.join(",") %> +<% if @sysadmins.length > 0 -%> +root: <%= @sysadmins.join(",") %> <% end -%> diff --git a/templates/exim.sysconfig.erb b/templates/exim.sysconfig.erb index 1f0df56..7e2a691 100644 --- a/templates/exim.sysconfig.erb +++ b/templates/exim.sysconfig.erb @@ -1,2 +1,2 @@ DAEMON=yes -QUEUE=<%= queue_interval %> +QUEUE=<%= @queue_interval %> diff --git a/templates/exim4.conf.erb b/templates/exim4.conf.erb index b5be96d..97ccfcc 100644 --- a/templates/exim4.conf.erb +++ b/templates/exim4.conf.erb @@ -56,7 +56,7 @@ CONFDIR = <%= scope.lookupvar('exim::params::conf_dir') %> # +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They # are all colon-separated lists: -domainlist local_domains = @<% if mailman_domains.length > 0 -%>:<%= mailman_domains.join(":") %><% end -%> +domainlist local_domains = @<% if @mailman_domains.length > 0 -%>:<%= @mailman_domains.join(":") %><% end -%> domainlist relay_to_domains = hostlist relay_from_hosts = 127.0.0.1 @@ -299,7 +299,7 @@ timeout_frozen_after = 7d # interlock with other processes, so additional queue runners can be # started by other means, or by killing and restarting the daemon. -queue_run_max = <%= queue_run_max %> +queue_run_max = <%= @queue_run_max %> # When this option is set, a delivery process is started whenever a # message is received, routing is performed, and local deliveries take @@ -313,11 +313,11 @@ queue_run_max = <%= queue_run_max %> # to be queued in this way, and is equivalent to setting # queue_smtp_domains to "*". See also hold_domains and queue_domains. -<% if queue_smtp_domains != "" -%> -queue_smtp_domains = <%= queue_smtp_domains %> +<% if @queue_smtp_domains != "" -%> +queue_smtp_domains = <%= @queue_smtp_domains %> <% end %> -<% if mailman_domains.length > 0 -%> +<% if @mailman_domains.length > 0 -%> # Home dir for your Mailman installation -- aka Mailman's prefix # directory. MM_HOME=/var/lib/mailman @@ -330,7 +330,7 @@ MM_GID=list # # Domains that your lists are in - colon separated list # you may wish to add these into local_domains as well -domainlist mm_domains=<%= mailman_domains.join(":") %> +domainlist mm_domains=<%= @mailman_domains.join(":") %> # # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # @@ -559,7 +559,7 @@ acl_check_data: begin routers -<% if mailman_domains.length > 0 -%> +<% if @mailman_domains.length > 0 -%> # Pick up on messages from our local mailman and route them via our # special VERP-enabled transport # @@ -621,12 +621,12 @@ mailman_router: # If the DNS lookup fails, no further routers are tried because of the no_more # setting, and consequently the address is unrouteable. -<% if smarthost -%> +<% if @smarthost -%> smarthost: driver = manualroute domains = !+local_domains transport = remote_smtp - route_list = * <%= smarthost %> + route_list = * <%= @smarthost %> no_more <% else -%> dnslookup: @@ -754,7 +754,7 @@ address_file: address_reply: driver = autoreply -<% if mailman_domains.length > 0 -%> +<% if @mailman_domains.length > 0 -%> mailman_transport: driver = pipe command = MM_WRAP \ diff --git a/templates/exim4.default.erb b/templates/exim4.default.erb index c167bdf..39475d3 100644 --- a/templates/exim4.default.erb +++ b/templates/exim4.default.erb @@ -10,7 +10,7 @@ EX4DEF_VERSION='' # setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4 QUEUERUNNER='combined' # how often should we run the queue -QUEUEINTERVAL='<%= queue_interval %>' +QUEUEINTERVAL='<%= @queue_interval %>' # options common to quez-runner and listening daemon COMMONOPTIONS='' # more options for the daemon/process running the queue (applies to the one