Add append_if_no_such_line compatablity define
This commit is contained in:
parent
de7690c4e7
commit
6e9ef2d08e
1 changed files with 14 additions and 0 deletions
14
manifests/defines/append_if_no_such_line.pp
Normal file
14
manifests/defines/append_if_no_such_line.pp
Normal file
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue