aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/module_file.pp
blob: 90745891dc4ae95143ccb6f1be64ee34feb53509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.

# 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;
	}
}