Cfengine Help: Controlling Module Calls

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Controlling Module Calls Author: nima Link to topic: https://cfengine.com/forum/read.php?3,18383,18383#msg-18383 During the convergence phase, when cf-agent is run, a module may be called several times. Depending on the module, perhaps this is desirable, however I

Cfengine Help: Re: Daemon Checks

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Daemon Checks Author: nima Link to topic: https://cfengine.com/forum/read.php?3,18350,18382#msg-18382 Hi Diego, If you look at the output, you can see that this isn't the case; specifically here: I stop the service, then run cf-agent: ochus:/srv/sysconf# /etc/

Re: Determining which systems match a class expression

2010-09-20 Thread Mike Hoskins
We've already built an external inventory system that does this (e.g. It has a notion of "role" like "oracle" -- and with even more granularity, "oracle-slave" or "oracle-master", etc.). While seeing this stuff added to nova is great, I imagine a lot of people have already done it themselves. Our

Re: Determining which systems match a class expression

2010-09-20 Thread Mark Burgess
This is something that will come in Nova 2. It is not as easy to answer as you might think, as you have to know which classes can or have been defined on each machine (simultaneously). The simplest way to approach this is to measure each system and observe the probabilities. As an immediate (i

Re: Quickstart guide?

2010-09-20 Thread Aleksey Tsalolikhin
On Mon, Sep 20, 2010 at 9:46 AM, Francisco Reyes wrote: > ) > > Towards the bottom where you have: > cf-agent -v test_copy.cf -K > > Shouldn't it be: > cf-agent -v -f test_copy.cf -K You're right! Fixed. Thank you. Glad you got some help on IRC. > Personally I think the concepts make total s

Determining which systems match a class expression

2010-09-20 Thread Justin Lloyd
Hi all, As we've been moving forward with our Nova implementation and developing an appropriate procedure for getting approval to make changes to our Cfengine policy, I've realized that it would be incredibly important to know which systems will be affected by a policy change. So, given a class

Re: best practices advice about two-stage file copy

2010-09-20 Thread Mike Hoskins
On 9/20/10 10:45 AM, "Jiri Horky" wrote: > On 09/16/2010 12:02 PM, Jan Kundrát wrote: >> I also got the feeling that it's normal to copy "all files" into each >> node's staging area, even if such files are not needed on that >> particular machine. >> >> >> and the second one is why to copy a

Cfengine Help: Re: best practices advice about two-stage file copy

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: best practices advice about two-stage file copy Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18287,18376#msg-18376 Picking and choosing which inputs get copied to which host does not scale well. Since the inputs are small text files t

Re: cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
On 20 Sep 2010, at 6:38 pm, Tim Cutts wrote: > > On 20 Sep 2010, at 6:22 pm, Mark Burgess wrote: > >> >> Could be a libdb problem. Try deleting the db files. > > D'oh - found it; very close to the right answer! BerkeleyDB header files > were the wrong version for the installed libraries. Q

Re: best practices advice about two-stage file copy

2010-09-20 Thread Jiri Horky
Dear all, On 09/16/2010 12:02 PM, Jan Kundrát wrote: > I also got the feeling that it's normal to copy "all files" into each > node's staging area, even if such files are not needed on that > particular machine. > > > and the second one is why to copy all files for all services to each > mach

Re: cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
On 20 Sep 2010, at 6:22 pm, Mark Burgess wrote: > > Could be a libdb problem. Try deleting the db files. D'oh - found it; very close to the right answer! BerkeleyDB header files were the wrong version for the installed libraries. Quite why SLES didn't complain about that I have no idea...

Re: cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Mark Burgess
Could be a libdb problem. Try deleting the db files. Tim Cutts wrote: > Has anyone managed to get cfengine 2 running on SLES11 SP1? Leaving aside > that I really should have moved to cfengine 3 by now, I'd like to get > cfengine working on SLES11, but it crashes and dumps core immediately. Th

Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Quickstart guide? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18332,18370#msg-18370 Francisco, My tutorial, referenced by someone else in this thread, will show you line by line how Cfengine works. Client and server authentication

cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
Has anyone managed to get cfengine 2 running on SLES11 SP1? Leaving aside that I really should have moved to cfengine 3 by now, I'd like to get cfengine working on SLES11, but it crashes and dumps core immediately. This is cfengine 2.2.8. cfagent backtrace looks like this: (gdb) where #0 0x

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread Mark Burgess
Thanks for these tips. You should put the examples in promises.cf or any of the files it inputs. Francisco Reyes wrote: > milo...@gmail.com writes: > >> Live CD seems a better idea for me. > > Exactly. Live CD is the most widely usable. > >> the implementation (as long as you need my help at

Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Quickstart guide? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18332,18364#msg-18364 Testcopy1 is the target. Testcopy2 is the source or master file. They can be files or directories just as if you are using 'cp'. You just need to s

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread Francisco Reyes
milo...@gmail.com writes: > Live CD seems a better idea for me. Exactly. Live CD is the most widely usable. > the implementation (as long as you need my help at all). The Live CD should have two options, one to act as server and the second to act as client. This way someone could quickly see a

Re: 3.0.5p1: library.cf conflicts with cfengine_stdlib.cf. Trouble getting started.

2010-09-20 Thread Diego Zamboni
Aleksey, It could be that the RPM package you installed contained a custom library.cf, which contained some things from cfengine_stdlib.cf plus some additional definitions (which are now missing since you removed library.cf). I guess you could try copying the missing definitions (e.g. def(),

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread Francisco Reyes
no-re...@cfengine.com writes: > Offering a small pre-configured virtual appliance or live CD for people to > download and try would be a nice addition. LiveCD may be better. Even many people may be using a particular virtual infrastructure many other people won't be able to run it. A LiveCD ISO

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread Francisco Reyes
no-re...@cfengine.com writes: >I've been thinking about a script that can generate a server and client >configuration suitable for testing >and evaluation on a single host. Although useful, anything that does not include at least two machines may be somewhat of limited help. Last night I had a

Re: Quickstart guide?

2010-09-20 Thread Francisco Reyes
Aleksey Tsalolikhin writes: >> http://www.verticalsysadmin.com/cfengine3/ >> This one seems somewhat promissing. Still trying to go over it and try to >> see how to apply it. > Let me know if you have any questions. (I wrote that piece.) Towards the bottom where you have: cf-agent -v test_copy

Cfengine Help: Re: Daemon Checks

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Daemon Checks Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,18350,18362#msg-18362 Is the "^dnsmasq" regular expression correct? If dnsmasq appears with its full path in the process list, for example, then the regex would not match, and cf

Cfengine Help: core files and AIX

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: core files and AIX Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18361,18361#msg-18361 Has anyone seen core files being generated from Cfengine processes running on AIX? Cf seems to be working but I can't see why or how the core files are

Cfengine Help: Re: "Hourly" splayclass for daily staggered script execution; some nodes not executing

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: "Hourly" splayclass for daily staggered script execution; some nodes not executing Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18359,18360#msg-18360 Assuming that I understand splayclass, and I'm certain I do, is it possible that its

Cfengine Help: "Hourly" splayclass for daily staggered script execution; some nodes not executing

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: "Hourly" splayclass for daily staggered script execution; some nodes not executing Author: dfriedman Link to topic: https://cfengine.com/forum/read.php?3,18359,18359#msg-18359 I'd hoped to use a splayclass result to splay a daily script execution for 5 servers over

Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Quickstart guide? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18332,18358#msg-18358 Actually I was hoping that the folks at cfengine.com might pick this up and offer a live CD. This could allow them to showcase both community and Nov

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread milo...@gmail.com
Hm, is there any system that can generate all widely used virtual appliances at one go? I'm not sure if there is any format that would work with most of them. Live CD seems a better idea for me. What is in your mind, how should it work? If you can give a high level overview I'll take a look into t

Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Quickstart guide? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18332,18356#msg-18356 Offering a small pre-configured virtual appliance or live CD for people to download and try would be a nice addition. ___

Re: Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread milo...@gmail.com
> I've been thinking about a script that can generate a server and client > configuration suitable for testing and evaluation on a single host. I've > also started on an updated version of the cookbook. Perhaps I'll add this > script to it. I didn't followed the thread, but my 'old' plan (ori

Cfengine Help: Re: Quickstart guide?

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Quickstart guide? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18332,18354#msg-18354 I've been thinking about a script that can generate a server and client configuration suitable for testing and evaluation on a single host. I've also

Cfengine Help: Re: Authentication using trustedkeys

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Authentication using trustedkeys Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18336,18353#msg-18353 Running the server in verbose mode often yields good messages about why authentication fails.

Re: 3.0.5p1: library.cf conflicts with cfengine_stdlib.cf. Trouble getting started.

2010-09-20 Thread Mark Burgess
Sounds like maybe there is some version mixup. Do you have all the files from the same place? There should not be any duplicate definitions. On 09/20/2010 08:36 AM, Aleksey Tsalolikhin wrote: > On Sun, Sep 19, 2010 at 11:23 PM, Mark Burgess wrote: >> >> library.cf is an old version of stdlib, y

Cfengine Help: Re: Daemon Checks

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: Daemon Checks Author: nima Link to topic: https://cfengine.com/forum/read.php?3,18350,18351#msg-18351 Here's the output for the above: ochus:/srv/sysconf# /etc/init.d/dnsmasq stop Stopping DNS forwarder and DHCP server: dnsmasq. ochus:/srv/sysconf# cf-agent -K R

Cfengine Help: Daemon Checks

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Daemon Checks Author: nima Link to topic: https://cfengine.com/forum/read.php?3,18350,18350#msg-18350 This has been discussed in a recent thread, however that has not answered my question/problem: Here's the relevant cf3 config: body process_select selectProcess(c

Cfengine Help: Re: cf-serverd stops working after a day

2010-09-20 Thread no-reply
Forum: Cfengine Help Subject: Re: cf-serverd stops working after a day Author: Metabaron Link to topic: https://cfengine.com/forum/read.php?3,18083,18348#msg-18348 phnakarin Wrote: --- > I didn't experience this problem on 3.0.5p1 either > or may

Re: cfengine.com is very slow for me right now... took 5 minutes to login. Now "my cache" is slow to come up. EOM

2010-09-20 Thread Nicolas Charles
It doesn't look like : ping cfengine.com PING cfengine.com (62.109.39.150) 56(84) bytes of data. 64 bytes from cf001lin.cfengine.com (62.109.39.150): icmp_seq=1 ttl=47 time=60.6 ms ping www.cfengine.com PING cf001lin.cfengine.com (62.109.39.150) 56(84) bytes of data. 64 bytes from cf001lin.cfeng

Re: cfengine.com is very slow for me right now... took 5 minutes to login. Now "my cache" is slow to come up. EOM

2010-09-20 Thread Mark Burgess
Is this a DNS issue? On 09/20/2010 08:54 AM, Nicolas Charles wrote: > I found how to reproduce it : > Login on http://cfengine.com is so much slower than http://www.cfengine.com > > > On 20/09/2010 08:46, Aleksey Tsalolikhin wrote: >> THANK YOU, Nicolas. >> >> I just tried providing wrong user