]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
added local override for modules_dir and use it for ntp
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Wed, 1 Aug 2007 11:25:27 +0000 (11:25 +0000)
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Wed, 1 Aug 2007 11:25:27 +0000 (11:25 +0000)
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@140 f03ff2f1-f02d-0410-970d-b9634babeaa1

manifests/defines/modules_dir.pp [new file with mode: 0644]

diff --git a/manifests/defines/modules_dir.pp b/manifests/defines/modules_dir.pp
new file mode 100644 (file)
index 0000000..7f59c60
--- /dev/null
@@ -0,0 +1,20 @@
+# common/manifests/defines/modules_dir.pp -- create a default directory
+# for storing module specific information
+#
+# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
+# See LICENSE for the full license granted to you.
+
+# Usage:
+# modules_dir { ["common", "common/dir1", "common/dir2" ]: }
+define modules_dir (
+               $mode = 0755, $owner = root, $group = root
+       )
+{
+       file {
+               "/var/lib/puppet/modules/${name}":
+                       source => [ "puppet://$servername/${name}/modules_dir", "puppet://$servername/common/empty"], 
+                       checksum => mtime,
+                       recurse => true, purge => true, force => true,
+                       mode => $mode, owner => $owner, group => $group;
+       }
+}