aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/config_file.pp
blob: bee188c19e4002630f40c57e24f77dbf9110e695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# common/manifests/defines/config_file.pp -- put a config file with default permissions
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# See LICENSE for the full license granted to you.

# Usage:
# config_file { filename:
# 	content => "....\n",
# }
define config_file ($content) {
	file { $name:
		content => $content, backup => server,
		mode => 0644, owner => root, group => root,
	}
}