aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/modules_file.pp
blob: 6a372427150093e228d9718a6b4cbe2e703cce16 (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/modules_file.pp -- use a modules_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:
# 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;
	}
}