]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
moved config_file to common module for apt module
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Mon, 25 Jun 2007 07:44:24 +0000 (07:44 +0000)
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>
Mon, 25 Jun 2007 07:44:24 +0000 (07:44 +0000)
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@54 f03ff2f1-f02d-0410-970d-b9634babeaa1

manifests/defines/config_file.pp [new file with mode: 0644]

diff --git a/manifests/defines/config_file.pp b/manifests/defines/config_file.pp
new file mode 100644 (file)
index 0000000..bee188c
--- /dev/null
@@ -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,
+       }
+}
+
+