bug-cfengine
[Top][All Lists]
Advanced

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

Copy bug cfengine 2


From: Bas van der Vlies
Subject: Copy bug cfengine 2
Date: Wed, 10 Apr 2002 17:19:13 +0100 (MET DST)

We at SARA use some software to maintain own installed software (stow/depot).
This software creates links to the packages, eg:

  /usr/sara/depot/bash-2.0.5/bin/bash
                            /man/man1/bash.1

  software create the following links
    /usr/sara/bin ---> depot/bash-2.0.5/bin
    /usr/sara/man ---> depot/bash-2.0.5/man

  Now if we install another package eg, xv
   /usr/sara/depot/xv-3.10a/bin/xv

  Now the directory becomes:

    /usr/sara/bin/
             bash ../depot/bash-2.0.5/bin/bash
             xv   ../depot//xv-3.10a/bin/xv

   /usr/sara/man   ---> depot/bash-2.0.5/man


  Our problem is that we copy /usr/sara direcory to the clients with the
  following copy attributes:
    ### Copy of the PURGE directories ###
    #
    $(SV_PURGE_DIR)/usr/sara
      dest=/usr/sara
      recurse=inf
      type=checksum
      backup=false
      purge=true
      typecheck=off
      forcedirs=true     
      server=$(SERVER)

  As we copy some links will become directories and therefore the linked is
  moved to:
     bin.cf-moved --> depot/bash-2.0.5/bin

  I have specified purge=true but the link or directory is not removed!!

  So far so good, but if cfagent runs for the second time the executable bash
  is removed. The purge option is specified and the link bin.cf-moved remains.
  We have specified all kind of keywords to ignore conflicting situations
  and remove the offending files.

  I have specified the purge option because i want a exact copy of the server 
  directory and not all kind of side effects. So my question is can some
  combination of keywords guarentee me one to one copy?

                Regards 

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************

--------------End of forwarded message-------------------------

--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************



reply via email to

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