diff options
author | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-06-25 07:44:24 +0000 |
---|---|---|
committer | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-06-25 07:44:24 +0000 |
commit | f0578731d37819fc679bdc0bd62a445350825b31 (patch) | |
tree | decfdce0215def189da33acd22ac0a81b62c5075 /manifests/defines | |
parent | 86638cf2c1379b0b03433a037a14b84bb8410b57 (diff) | |
download | puppet-common-f0578731d37819fc679bdc0bd62a445350825b31.tar.gz puppet-common-f0578731d37819fc679bdc0bd62a445350825b31.tar.bz2 |
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
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/config_file.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/defines/config_file.pp b/manifests/defines/config_file.pp new file mode 100644 index 0000000..bee188c --- /dev/null +++ b/manifests/defines/config_file.pp @@ -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, + } +} + + |