[Mageia-sysadm] [329] - use all_tags instead of classes because of some obscure puppet issues,

root at mageia.org root at mageia.org
Fri Nov 19 21:19:01 CET 2010


Revision: 329
Author:   misc
Date:     2010-11-19 21:19:01 +0100 (Fri, 19 Nov 2010)
Log Message:
-----------
- use all_tags instead of classes because of some obscure puppet issues,
  basically, classes correspond to the classes when the ressource is
declared, not to the one of the node ( which is given by
all_tags )
- remove empty line ( with <%- )

Modified Paths:
--------------
    puppet/modules/postfix/templates/main.cf

Modified: puppet/modules/postfix/templates/main.cf
===================================================================
--- puppet/modules/postfix/templates/main.cf	2010-11-19 20:19:00 UTC (rev 328)
+++ puppet/modules/postfix/templates/main.cf	2010-11-19 20:19:01 UTC (rev 329)
@@ -23,7 +23,7 @@
 
 # User configurable parameters
 
-<% if classes.include?('postfix::simple_relay') %>
+<% if all_tags.include?('postfix::simple_relay') %>
 inet_interfaces = localhost
 <% else %>
 inet_interfaces = all
@@ -35,19 +35,19 @@
 mydomain = <%= domain %>
 mydestination = <%= fqdn %>
 myorigin = $mydomain
-<%- if classes.include?('postfix::smtp_server') -%> 
+<%- if all_tags.include?('postfix::smtp_server') -%> 
 relay_domains = $mydestination, 
                 ml.<%= domain %>, 
-<%- if classes.include?('postfix::primary_smtp') -%> 
+<%- if all_tags.include?('postfix::primary_smtp') -%>
                 <%= domain %>
 <%- end -%>
 transport_maps = regexp:/etc/postfix/transport_regexp
 <%- end -%>
 
-<% if classes.include?('sympa') %>
+<%- if classes.include?('sympa') -%>
 sympa_destination_recipient_limit = 1
 sympabounce_destination_recipient_limit = 1
-<% end %>
+<%- end -%>
 
 #delay_warning_time = 4h
 smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
@@ -59,7 +59,7 @@
 smtpd_tls_key_file = /etc/pki/tls/private/postfix.pem
 smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
 
-<% if classes.include?('postfix::smtp_server') %>
+<%- if all_tags.include?('postfix::smtp_server') -%>
 smtpd_etrn_restrictions = reject
 
 smtpd_helo_required = yes
@@ -67,18 +67,17 @@
 smtpd_data_restrictions = reject_unauth_pipelining 
                           reject_multi_recipient_bounce
 
-smtpd_recipient_restrictions =
-#    not done yet
-#    permit_sasl_authenticated
-    reject_non_fqdn_recipient
+smtpd_recipient_restrictions = reject_non_fqdn_recipient
     reject_non_fqdn_sender
+#    not done yet, not sure if we need to offer this kind of service
+#    permit_sasl_authenticated
     permit_mynetworks
     reject_unauth_destination
     reject_non_fqdn_helo_hostname
     reject_unknown_sender_domain
     reject_unknown_client
-  <% if classes.include?('postgrey') %>
+  <%- if classes.include?('postgrey') -%>
     check_policy_service unix:extern/postgrey/socket
-  <% end %>
-<% end %>
+  <%- end -%>
+<%- end -%>
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101119/2e53b517/attachment.html>


More information about the Mageia-sysadm mailing list