bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SetCommentStart and SetCommentEnd in Cfengine 1.6.2


From: Norbert Gövert
Subject: SetCommentStart and SetCommentEnd in Cfengine 1.6.2
Date: Tue, 28 Aug 2001 10:02:58 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104

Dear Cfengine Maintainers,

we're using the Debian cfengine package for administration of our
Linux machines. After migration to Debian woody we got cfengine 1.6.2
and encoutered some problems with the SetCommentStart and
SetCommentEnd directives in the editfiles section. Assume the
following config:

,-----
| control:
| 
|   actionsequence  = ( editfiles )
|     
| editfiles:
| 
|   { /home-local/goevert/tmp/testcf
|     SetCommentStart "# "
|     CommentLinesStarting "ToComment"
|   }
`-----

and the contents of /home-local/goevert/tmp/testcf being the single
line

,-----
| ToComment
`-----

After running the configuration nothing happens to file testcf:

,-----
| address@hidden cfengine -f ./cfengine.conf -v
| [...]
| ---------------------------------------------------------------------
| Editing files
| ---------------------------------------------------------------------
|
| cfengine:lucy: Begin editing /home-local/goevert/tmp/testcf
| cfengine:lucy: End editing /home-local/goevert/tmp/testcf
| [...]
| address@hidden cat testcf
| ToComment
`-----

The problem occurs with any setting for SetCommentStart we tested.

Removing the SetCommentStart line from the configuration yields the
correct results:

,-----
| address@hidden cfengine -f ./cfengine.conf -v
| [...]
| ---------------------------------------------------------------------
| Editing files
| ---------------------------------------------------------------------
|
| cfengine:lucy: Begin editing /home-local/goevert/tmp/testcf
| Commenting # ToComment
| cfengine:lucy: End editing /home-local/goevert/tmp/testcf
| [...]
| address@hidden cat testcf
| # ToComment
`-----

Another ridiculous effect occurs when using a configuration with
SetCommentEnd:

,-----
| editfiles:
| 
|   { /home-local/goevert/tmp/testcf
|     SetCommentEnd "#"
|     CommentLinesStarting "ToComment"
|   }
`-----

,-----
| address@hidden cfengine -f ./cfengine.conf -v
| [...]
| ---------------------------------------------------------------------
| Editing files
| ---------------------------------------------------------------------
|
| cfengine:lucy: Begin editing /home-local/goevert/tmp/testcf
| Commenting # ToCommentToComment
| cfengine:lucy: End editing /home-local/goevert/tmp/testcf
| [...]
| address@hidden cat testcf
| # ToCommentToComment
`-----

With our old cfengine version (from Debian potato, v1.5.3) everything
worked as expected.

Can you help? Thanks in advance!

 Regards, Norbert.

-- 
      Norbert Gövert                   fon +49 231 755 3032
    Computer Science 6                 fax             2405
  University of Dortmund          address@hidden
 44221 Dortmund,  Germany   http://ls6-www.cs.uni-dortmund.de/~goevert/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]