diff options
author | David Schmitt <david@dasz.at> | 2009-07-13 10:52:34 +0200 |
---|---|---|
committer | David Schmitt <david@dasz.at> | 2009-07-13 10:52:34 +0200 |
commit | 6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321 (patch) | |
tree | 70ceee08d883a843b612df1a97564478795da30e /manifests/defines | |
parent | de7690c4e76ddd7c1f01d81fe92c75771da47c51 (diff) | |
download | puppet-common-6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321.tar.gz puppet-common-6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321.tar.bz2 |
Add append_if_no_such_line compatablity define
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/append_if_no_such_line.pp | 14 |
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; + } +} + |