help-cfengine
[Top][All Lists]
Advanced

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

Re: Is this quirky for a simple copy, editfiles operation?


From: Brendan Strejcek
Subject: Re: Is this quirky for a simple copy, editfiles operation?
Date: Tue, 10 May 2005 13:25:11 -0500
User-agent: Mutt/1.5.6+20040907i

Joel Majka wrote:

> The first quirk is that I don't see a way to serialize identical
> action-types in an actionsequence. For example, how would I put
> together a sequence that first would copy files from an NFS mount,
> perform an editfiles, and then copy them into their proper location? I
> don't see a way to define something like actionsequence=(copy1
> editfiles copy2). My ugly workaround is to use two seperate
> cfagent.conf files and run them in sequence.

Ugly, but this works:

    control:
        actionsequence = ( copy.pass1 editfiles copy.pass2 )

    copy:
        pass1::
            /orig/path/some/file
                dest=/edit/me

        pass2::
            /edit/me
                dest=/final/dest

    editfiles:
        { /edit/me
            # SomeEdits
        }


I really hope the actionsequence goes away in cfengine 3.




reply via email to

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