From: david Date: Mon, 25 Jun 2007 07:44:24 +0000 (+0000) Subject: moved config_file to common module for apt module X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f0578731d37819fc679bdc0bd62a445350825b31;p=puppet-common.git 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 --- 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 +# 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, + } +} + +