blob: 44338781527be3e72d8dee84f9018c99b308e697 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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,
# keep old versions on the server
backup => server,
# default permissions for config files
mode => 0644, owner => root, group => root,
# really detect changes to this file
checksum => md5,
}
}
|