summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorDavid Schmitt <david@dasz.at>2009-07-13 10:52:34 +0200
committerDavid Schmitt <david@dasz.at>2009-07-13 10:52:34 +0200
commit6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321 (patch)
tree70ceee08d883a843b612df1a97564478795da30e /manifests
parentde7690c4e76ddd7c1f01d81fe92c75771da47c51 (diff)
Add append_if_no_such_line compatablity define
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/append_if_no_such_line.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/defines/append_if_no_such_line.pp b/manifests/defines/append_if_no_such_line.pp
new file mode 100644
index 0000000..6ccf9f9
--- /dev/null
+++ b/manifests/defines/append_if_no_such_line.pp
@@ -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;
+ }
+}
+