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:
parent
86638cf2c1
commit
f0578731d3
1 changed files with 16 additions and 0 deletions
16
manifests/defines/config_file.pp
Normal file
16
manifests/defines/config_file.pp
Normal 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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue