]> gitweb.fluxo.info Git - puppet-common.git/commitdiff
Add append_if_no_such_line compatablity define
authorDavid Schmitt <david@dasz.at>
Mon, 13 Jul 2009 08:52:34 +0000 (10:52 +0200)
committerDavid Schmitt <david@dasz.at>
Mon, 13 Jul 2009 08:52:34 +0000 (10:52 +0200)
manifests/defines/append_if_no_such_line.pp [new file with mode: 0644]

diff --git a/manifests/defines/append_if_no_such_line.pp b/manifests/defines/append_if_no_such_line.pp
new file mode 100644 (file)
index 0000000..6ccf9f9
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# This define is only for "CFEngine compatability". It is only a light
+# wrapper around the "line" define, which is equally dangerous, but at
+# least named according to a proper resource model.
+#
+define append_if_no_such_line($file, $line) {
+       line {
+               $name:
+                       ensure => present,
+                       file => $file,
+                       line => $line;
+       }
+}
+