You can define classes in a conditinal block as of 2.0.6.
2.0.7 is just around the corner, in spite of my saying the
2.1.0 would be thenext version...
M
On 12 May, Chip Seraphine wrote:
I have a situation where I would like to define a class based on the
contents of the file, but do not wish to actually modify the file
itself. Does anybody know a good way to do this (other than using a
module or shellcommand)?
I have tried "|BeginGroupIfNoLineContaining" and such, but this doesn't
do the trick because I can't define classes inside the conditional
block. There is no "touch" type command either, so I am not sure of a
safe way to fool cfengine into thinking the file has been edited without
doing something dangerous (changing the file) or silly (editing the file
and then removing the edit). I was trying to do something clever with
"abort" and "catchabort", but that doesn't seem well suited to this either.
Has anybody else solved a problem like this?
|
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~