From 79e25c055a9ad087e43d9963479f4d65ddb37357 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Oct 2007 17:51:13 +0200 Subject: common: modules_file define as companion to modules_dir --- manifests/defines/modules_file.pp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 manifests/defines/modules_file.pp 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 +# 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; + } +} -- cgit v1.2.3