diff options
Diffstat (limited to 'manifests/defines/module_file.pp')
-rw-r--r-- | manifests/defines/module_file.pp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/defines/module_file.pp b/manifests/defines/module_file.pp new file mode 100644 index 0000000..6082eff --- /dev/null +++ b/manifests/defines/module_file.pp @@ -0,0 +1,24 @@ +# common/manifests/defines/module_file.pp -- use an already defined module_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: +# module_file { "module/file": +# source => "puppet://..", +# mode => 644, # default +# owner => root, # default +# group => root, # default +# } +define module_file ( + $source, + $mode = 0644, $owner = root, $group = 0 + ) +{ + file { + "${module_dir_path}/${name}": + source => $source, + mode => $mode, owner => $owner, group => $group; + } +} |