help-cfengine
[Top][All Lists]
Advanced

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

RE: Long standing copy bug?


From: Nielsen, Steve
Subject: RE: Long standing copy bug?
Date: Wed, 30 Nov 2005 13:06:29 -0500

Through experimentation I have found that if you create the file in the
master area (zero length is okay)  and it exists on the destination then
it will be ignored.  If the file does NOT exist in  master area if will
be deleted on a purge.

Steve

-----Original Message-----
From: help-cfengine-bounces+snielsen=comscore.com@gnu.org
[mailto:help-cfengine-bounces+snielsen=comscore.com@gnu.org] On Behalf
Of Adam M. Dunn
Sent: Wednesday, November 30, 2005 10:52 AM
To: help-cfengine@gnu.org
Subject: Long standing copy bug?


Hi all.
  I'm pretty sure this is a bug, but it could also be a misprint in the
documentation.  Either that or I can't read.

For a long while I've noticed the ignore option while using the
copy/purge
action does not do what the manual says it does.  I've been using
cfengine since version 2.1.10, and would love to be able to keep some
files from being purged in the target directory, but I've yet to be able
to do that.  The manual says:

"If the purge option is used in copying, then the 'ignore' option has
the
effect of the excluding files from the purge, i.e. ignore means `keep'
the
named files."


Yet, if I use ignore it has no effect, and my files are still purged.  I
think I commented about this several versions ago, but something is
still
broken.  If I'm right, one of the two (manual or cfengine) needs to be
fixed. I would much prefer it be cfengine because this functionality
would
be great, and I need it!


Here's a simple example of one of my many copies that still purge files
I
don't want it to.  The example here is from an update.conf.  For
instance
I want a text file alerting people so they don't accidentally modify
policies in /var/cfengine/inputs rather do it in 
/var/cfengine/masterfiles/inputs.  What happens here is the file gets
purged and recreated everytime, whereas is should be created once and
ignored from purge thereafter according to the manual.  This works, but
it
seems sensless to have to recreate the file everytime cfengine runs!
And
this is just one example, I've never gotten this to work with any sort
of
copy/purge.  


copy:

     /var/cfengine/masterfiles/inputs
                                  dest=/var/cfengine/inputs
                                  r=1
                                  mode=700
                                  type=binary
                                  ignore=DO_NOT_MODIFY_THESE_FILES
                                  server=$(policyhost)
                                  #trustkey=true
                                  ifelapsed=0
                                  purge=true


files:

     /var/cfengine/inputs/DO_NOT_MODIFY_THESE_FILES
                                  o=root g=root m=0600
                                  action=create





~adam



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

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