module-common/manifests/defines/config_file.pp

22 lines
543 B
ObjectPascal
Raw Normal View History

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