help-cfengine
[Top][All Lists]
Advanced

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

Order of Execution


From: Brian E. Seppanen
Subject: Order of Execution
Date: Wed, 5 Jan 2005 07:44:24 -0500 (EST)

I hope I'm not some mutant in my configuration.    I'm managing about a 
100 hosts with cfengine of various solaris and linux running 
cfengine-2.1.10.   

I have rules for ostype, services, etc...  sometime the same file needs to 
be modified for both ostype and service and the order of execution becomes 
a factor in whether the action completes properly.

So I have a solaris dns server.

First I execute cf.dns then I execute cf.solaris
both of the cf's refer to a single file

cf.dns opens /tmp/a, and Inserts "Hello World"
cf.solaris copies /tmp/a from masterhost, and inserts "How are you today?"

What I need to end up with is a file that has

## This is my master File ##
## Copied from MasterHost ##
Hello World
How are you today?

Are there any tricks to order of execution, can I delay an action and 
come back for another pass?

Theoretically would it be better to have a general cf.solaris occur before 
a more specific cf.dns or vice versa?   Just wondering about the pros and 
cons of each.

Thanks for the help.

Brian Seppanen
seppy@chartermi.net
906-475-0107 ext 1040



reply via email to

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