moved config_file to common module for apt module

git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@54 f03ff2f1-f02d-0410-970d-b9634babeaa1
This commit is contained in:
david 2007-06-25 07:44:24 +00:00
parent 86638cf2c1
commit f0578731d3

View file

@ -0,0 +1,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,
}
}