From: Silvio Rhatto Date: Fri, 25 Jan 2013 19:16:34 +0000 (-0200) Subject: Updating module for 2.7 compatibility X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=60c06a1aac39892ae444f18903e09cf1b7b05131;p=puppet-exim.git Updating module for 2.7 compatibility --- diff --git a/manifests/init.pp b/manifests/init.pp index 433808a..d0e39ff 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -27,7 +27,7 @@ class exim { } file { "/etc/aliases": - source => [ "puppet:///modules/site_mail/$domain/aliases", + source => [ "puppet:///modules/site_mail/${::domain}/aliases", "puppet:///modules/site_mail/aliases" ], owner => "root", group => "root", @@ -96,6 +96,8 @@ class exim::tls inherits exim { notify => Service["exim4"], } + $exim_tls_verify_relay_to_domains = hiera('exim::tls_verify_relay_to_domains', '') + file { '/etc/exim4/conf.d/main/00_local_settings': ensure => $exim_tls_verify_relay_to_domains ? { '' => absent, diff --git a/templates/update-exim4.conf.conf.erb b/templates/update-exim4.conf.conf.erb index db4be67..e25ec1f 100644 --- a/templates/update-exim4.conf.conf.erb +++ b/templates/update-exim4.conf.conf.erb @@ -12,7 +12,7 @@ # Debconf configuration, but not all of them. # dc_eximconfig_configtype='internet' -dc_other_hostnames='<%= fqdn %>' +dc_other_hostnames='<%= scope.lookupvar('::fqdn') %>' dc_local_interfaces='127.0.0.1' dc_readhost='' dc_relay_domains=''