From: David Schmitt Date: Mon, 13 Jul 2009 08:52:34 +0000 (+0200) Subject: Add append_if_no_such_line compatablity define X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321;p=puppet-common.git Add append_if_no_such_line compatablity define --- 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; + } +} +