de7690c4e7
See http://club.black.co.at/david/puppet/doc/ for a current version of the RDoc output.
24 lines
547 B
Puppet
24 lines
547 B
Puppet
# 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.
|
|
|
|
# Put a file into module-local storage.
|
|
#
|
|
# Usage:
|
|
# module_file {
|
|
# "module/file":
|
|
# source => "puppet://..",
|
|
# }
|
|
define module_file (
|
|
$source,
|
|
$mode = 0644, $owner = root, $group = 0
|
|
)
|
|
{
|
|
file {
|
|
"${module_dir_path}/${name}":
|
|
source => $source,
|
|
mode => $mode, owner => $owner, group => $group;
|
|
}
|
|
}
|