aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/defines/modules_file.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/defines/modules_file.pp b/manifests/defines/modules_file.pp
new file mode 100644
index 0000000..6a37242
--- /dev/null
+++ b/manifests/defines/modules_file.pp
@@ -0,0 +1,24 @@
+# common/manifests/defines/modules_file.pp -- use a modules_dir to store module
+# specific files
+#
+# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
+# See LICENSE for the full license granted to you.
+
+# Usage:
+# modules_file { "module/file":
+# source => "puppet://..",
+# mode => 644, # default
+# owner => root, # default
+# group => root, # default
+# }
+define modules_file (
+ $source,
+ $mode = 0644, $owner = root, $group = root
+ )
+{
+ file {
+ "/var/lib/puppet/modules/${name}":
+ source => $source,
+ mode => $mode, owner => $owner, group => $group;
+ }
+}