]> gitweb.fluxo.info Git - puppet-exim.git/commitdiff
Take advantage of autoloading
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Apr 2016 00:17:24 +0000 (21:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Apr 2016 00:17:24 +0000 (21:17 -0300)
manifests/disabled.pp [new file with mode: 0644]
manifests/init.pp
manifests/tls.pp [new file with mode: 0644]

diff --git a/manifests/disabled.pp b/manifests/disabled.pp
new file mode 100644 (file)
index 0000000..8c82b6b
--- /dev/null
@@ -0,0 +1,5 @@
+class exim::disabled inherits exim {
+  Service['exim4'] { 
+    ensure  => stopped,
+  }
+}
index 1450e1f06647ffca97c6f6d0501089eff13cbd10..087d586f1fa6f461694e87cd9ab0234184fa0b4b 100644 (file)
@@ -70,44 +70,3 @@ class exim {
   }
 
 }
-
-class exim::disabled inherits exim {
-  Service['exim4'] { 
-    ensure  => stopped,
-  }
-}
-
-# See http://www.exim.org/exim-html-current/doc/html/spec_html/ch39.html
-class exim::tls inherits exim {
-  file { "/etc/exim4/conf.d/router/195_exim4_config_tls_verify":
-    ensure => present,
-    owner  => root,
-    group  => root,
-    mode   => 0644,
-    source => "puppet:///modules/exim/195_exim4_config_tls_verify",
-    notify => Service["exim4"],
-  }
-
-  file { "/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_tls_verify":
-    ensure => present,
-    owner  => root,
-    group  => root,
-    mode   => 0644,
-    source => "puppet:///modules/exim/30_exim4-config_remote_smtp_tls_verify",
-    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,
-      default => present,
-    },
-    owner   => root,
-    group   => root,
-    mode    => 0644,
-    content => "domainlist tls_verify_relay_to_domains = $exim_tls_verify_relay_to_domains\n",
-    notify  => Service["exim4"],
-  }
-}
diff --git a/manifests/tls.pp b/manifests/tls.pp
new file mode 100644 (file)
index 0000000..79147dd
--- /dev/null
@@ -0,0 +1,34 @@
+# See http://www.exim.org/exim-html-current/doc/html/spec_html/ch39.html
+class exim::tls inherits exim {
+  file { "/etc/exim4/conf.d/router/195_exim4_config_tls_verify":
+    ensure => present,
+    owner  => root,
+    group  => root,
+    mode   => 0644,
+    source => "puppet:///modules/exim/195_exim4_config_tls_verify",
+    notify => Service["exim4"],
+  }
+
+  file { "/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_tls_verify":
+    ensure => present,
+    owner  => root,
+    group  => root,
+    mode   => 0644,
+    source => "puppet:///modules/exim/30_exim4-config_remote_smtp_tls_verify",
+    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,
+      default => present,
+    },
+    owner   => root,
+    group   => root,
+    mode    => 0644,
+    content => "domainlist tls_verify_relay_to_domains = $exim_tls_verify_relay_to_domains\n",
+    notify  => Service["exim4"],
+  }
+}