2009-05-31 21:14:37 +02:00
|
|
|
# common/manifests/defines/module_file.pp -- use an already defined module_dir
|
|
|
|
# to store module specific files
|
2007-10-27 17:51:13 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
|
|
|
|
# See LICENSE for the full license granted to you.
|
|
|
|
|
|
|
|
# Usage:
|
2009-05-31 21:14:37 +02:00
|
|
|
# module_file { "module/file":
|
2007-10-27 17:51:13 +02:00
|
|
|
# source => "puppet://..",
|
|
|
|
# mode => 644, # default
|
|
|
|
# owner => root, # default
|
|
|
|
# group => root, # default
|
|
|
|
# }
|
2009-05-31 21:14:37 +02:00
|
|
|
define module_file (
|
2007-10-27 17:51:13 +02:00
|
|
|
$source,
|
2009-05-31 21:14:37 +02:00
|
|
|
$mode = 0644, $owner = root, $group = 0
|
2007-10-27 17:51:13 +02:00
|
|
|
)
|
|
|
|
{
|
|
|
|
file {
|
2009-05-31 21:14:37 +02:00
|
|
|
"${module_dir_path}/${name}":
|
2007-10-27 17:51:13 +02:00
|
|
|
source => $source,
|
|
|
|
mode => $mode, owner => $owner, group => $group;
|
|
|
|
}
|
|
|
|
}
|