CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-23 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: mark Link to topic: https://cfengine.com/forum/read.php?3,24402,24421#msg-24421 I am a little late replying to this, but here is my take, 1. variables and classes are treated specially, due to the possibilty of ci

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: frans Link to topic: https://cfengine.com/forum/read.php?3,24402,24416#msg-24416 Ah, of course! How careless of me. The var gets set but the report has already been fulfilled so there's no real indication that it

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,24402,24412#msg-24412 So, cf-agent runs through the whole bundle three times, in the same order. In your last example, you have vars, commands, and report

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: frans Link to topic: https://cfengine.com/forum/read.php?3,24402,24410#msg-24410 Beto - I didn't see any "commands:" section in your bundle.. but I think I've figured out what's going on. As verbose output indic

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,24402,24408#msg-24408 My example didn't copy/paste correctly. bundle agent check_user_files { vars: !dotFilesFound:: # Put all users in /etc/p

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,24402,24407#msg-24407 I really don't understand what you don't understand ;) Here is an example where a module is used and variables are set and files are

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: frans Link to topic: https://cfengine.com/forum/read.php?3,24402,24406#msg-24406 I'm familiar with normal ordering and figured that cf-agent was sidestepping the vars: promise again as it had already evaluated it.

CFEngine Help: Re: Explanation for 3x iteration in a bundle

2011-12-22 Thread no-reply
Forum: CFEngine Help Subject: Re: Explanation for 3x iteration in a bundle Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,24402,24404#msg-24404 Check the reference guide on normal ordering and locking. Vars is done first so redvar is not defined during first run. Files