help-cfengine
[Top][All Lists]
Advanced

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

Re: Serialization


From: David E. Nelson
Subject: Re: Serialization
Date: Mon, 27 Sep 2004 08:32:49 -0500 (CDT)


Hi Tim,

Hmmm, I like this approach.  Thanks!

         /\/elson

On Mon, 27 Sep 2004, Tim Nelson wrote:

On Fri, 24 Sep 2004, David E. Nelson wrote:


If I have an actiontionsequence that has 'copy.stage', am I guaranteed that the order of execution would be in the order given below? Or should I be iterating over lists instead?

Thanks,
         /\/elson

        No.  But assuming just for a second that you wanted the order to be:
-       all
-       solaris
-       <specific version, but don't care about ordering>

        ...you could do

actionsequence = ( copy.allstage copy.solarisstage copy.versionstage )

copy:
  all.allstage::
      /var/cfengine/dist/all
          dest=/var/cfengine/stage
          recurse=inf
          server=$(DistServer)
          action=silent
          type=checksum
          backup=timestamp

  solaris.solarisstage::

      /var/cfengine/dist/solaris
          dest=/var/cfengine/stage
          recurse=inf
          server=$(DistServer)
          action=silent
          type=checksum
          backup=timestamp

  sunos_5_6.versionstage::

      /var/cfengine/dist/sunos_5_6
          dest=/var/cfengine/stage
          recurse=inf
          server=$(DistServer)
          action=silent
          type=checksum
          backup=timestamp


  sunos_5_8.versionstage::

      /var/cfengine/dist/sunos_5_8
          dest=/var/cfengine/stage
          recurse=inf
          server=$(DistServer)
          action=silent
          type=checksum
          backup=timestamp

  sunos_5_9.versionstage::

      /var/cfengine/dist/sunos_5_9
          dest=/var/cfengine/stage
          recurse=inf
          server=$(DistServer)
          action=silent
          type=checksum
          backup=timestamp



--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.



reply via email to

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