[Mageia-sysadm] [789] add a xinetd module

root at mageia.org root at mageia.org
Thu Jan 13 21:33:49 CET 2011


Revision: 789
Author:   misc
Date:     2011-01-13 21:33:49 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
add a xinetd module

Added Paths:
-----------
    puppet/modules/xinetd/
    puppet/modules/xinetd/manifests/
    puppet/modules/xinetd/manifests/init.pp

Added: puppet/modules/xinetd/manifests/init.pp
===================================================================
--- puppet/modules/xinetd/manifests/init.pp	                        (rev 0)
+++ puppet/modules/xinetd/manifests/init.pp	2011-01-13 20:33:49 UTC (rev 789)
@@ -0,0 +1,25 @@
+class xinetd {
+    package { "xinetd":
+        ensure => installed 
+    }
+
+    service { xinetd:
+        ensure => running,
+        path => "/etc/init.d/xinetd",
+        subscribe => [ Package["xinetd"] ]
+    }
+   
+    define service($content) {
+        include xinetd
+        file { "/etc/xinetd.d/$name":
+            ensure => present,
+            owner => root,
+            group => root,
+            mode => 644,
+            require => Package["xinetd"],
+            content => $content,
+            notify => Service['xinetd']
+        }
+    }
+}
+  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/338d4233/attachment-0001.html>


More information about the Mageia-sysadm mailing list