mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-30 01:13 am

[dw-ops] Add mail server class, allow incoming port 25 traffic.

[commit: http://hg.dwscoalition.org/dw-ops/rev/6cd48825b280]

Add mail server class, allow incoming port 25 traffic.

Patch by [staff profile] mark.

Files modified:
  • puppet/manifests/serverclass/mail.pp
  • puppet/manifests/site.pp
--------------------------------------------------------------------------------
diff -r e42af4b542a1 -r 6cd48825b280 puppet/manifests/serverclass/mail.pp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/puppet/manifests/serverclass/mail.pp	Mon Mar 30 01:13:16 2009 +0000
@@ -0,0 +1,23 @@
+#
+# serverclass::mail
+#
+# Defines functionality for the configuration of the incoming mailservers.
+#
+# Authors:
+#      Mark Smith <mark@dreamwidth.org>
+#
+# Copyright (c) 2009 by Dreamwidth Studios, LLC.
+#
+# This program is free software; you may redistribute it and/or modify it under
+# the same terms as Perl itself.  For a copy of the license, please reference
+# 'perldoc perlartistic' or 'perldoc perlgpl'.
+#
+
+class iptables::dreamwidth::mail inherits iptables::dreamwidth {
+    # open up incoming port 25
+    Iptables::Rules["dreamwidth"] { allowed_ports => [ 25 ] }
+}
+
+class serverclass::mail inherits serverclass::dreamwidth {
+    include iptables::dreamwidth::mail
+}
diff -r e42af4b542a1 -r 6cd48825b280 puppet/manifests/site.pp
--- a/puppet/manifests/site.pp	Mon Mar 30 01:10:51 2009 +0000
+++ b/puppet/manifests/site.pp	Mon Mar 30 01:13:16 2009 +0000
@@ -59,8 +59,9 @@ import "serverclass/*"
 #  -OR-
 # node nodename { include serverclass::nonwebserver }
 
-node dfw-lb01 { include serverclass::perlbal }
-node dfw-lb02 { include serverclass::perlbal }
+node dfw-mail01 { include serverclass::mail    }
+node dfw-lb01   { include serverclass::perlbal }
+node dfw-lb02   { include serverclass::perlbal }
 
 # A special case exists for the node that will run the Puppet master service.
 # This node can be specified as following:
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org