Error building trunk (r1771)

2011-02-04 Thread Jonathan CLARKE
Hi, Trying to build the Cfengine trunk this morning lead me to this error: In file included from full-write.c:29: ../src/cf.defs.h:1379:39: error: ../../core/src/prototypes.h: No such file or directory full-write.c:43: warning: no previous prototype for ‘cf_full_write’ make[1]: *** [full-write.l

Re: CFengine Solutions #Distribute-ssh-keys example broken?

2011-02-04 Thread Jonathan CLARKE
Le 01/02/2011 15:18, Fredrik Pettai a écrit : > Hi, > > We're currently testing cfengine 3.0.2 (because that's what you get then > running Ubuntu 10.04). > > I've used some examples from the CFengine Solutions > (http://www.cfengine.org/manuals/cf3-solutions.html) > Some things work, and some doe

Re: insert_lines locator doesn't work

2011-02-04 Thread Dennis . Cabooter
The problem still exists in 3.1.4-1. The line will append at the end of the file instead of using the locator. :-( > I've had this exact problem and do not know how to fix it. It has caused > me > to stop using file editing all together and even templates. Since any > file > that has sections ca

Cfengine Help: Re: 3.0.2 too old?

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: 3.0.2 too old? Author: pettai Link to topic: https://cfengine.com/forum/read.php?3,20392,20441#msg-20441 Thank you all for the feedback (and especially zzamboni@ for the thorough explanation) I see that there is no reason to stay with the old distro packages, and

Re: insert_lines locator doesn't work

2011-02-04 Thread Mark Burgess
Dennis, the problem is in your code. You have quotes around your body reference in the example you sent me now bundle edit_line AppendIfNoLine(proxy_lines) { insert_lines: "$(proxy_lines)" location => "append"; } Take away the quotes from "append" and it works. What is puzzling is why yo

Re: insert_lines locator doesn't work

2011-02-04 Thread Mark Burgess
I thought we had added a check for this issue, but it didn't happen in all cases. So now I've ammended that in svn On 02/04/2011 10:27 AM, dennis.caboo...@snow.nl wrote: > The problem still exists in 3.1.4-1. The line will append at the end of > the file instead of using the locator. :-( > > >

Re: Error building trunk (r1771)

2011-02-04 Thread Eystein Måløy Stenberg
Hi, The include method of the headers is being changed as we speak, so please try a new checkout in a few hours. At least, it's not just you. :) --Eystein On Fri, Feb 4, 2011 at 9:49 AM, Jonathan CLARKE wrote: > Hi, > > Trying to build the Cfengine trunk this morning lead me to this error: > >

Cfengine Help: Cfengine client setup howto

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Cfengine client setup howto Author: kenneho Link to topic: https://cfengine.com/forum/read.php?3,20442,20442#msg-20442 Hi all, I'm about to play around with Cfengine 3 community edition, and have found some documentation and tutorials on the net. The documentatio

Cfengine Help: 3.1.4 community packages are now available

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: 3.1.4 community packages are now available Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20443,20443#msg-20443 Please go the Engine Room to download Linux packages for Community Edition 3.1.4 ___ Help-cf

Re: Cfengine Help: Cfengine client setup howto

2011-02-04 Thread Erik Mouw
Op 4 feb. 2011 om 12:04 heeft no-re...@cfengine.com het volgende geschreven: > Forum: Cfengine Help > Subject: Cfengine client setup howto > Author: kenneho > Link to topic: https://cfengine.com/forum/read.php?3,20442,20442#msg-20442 > > Hi all, > > > I'm about to play around with Cfengine 3 co

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20445,20454#msg-20454 Hi, I usually use /opt, /etc/opt and /var/opt for binaries or scripts not supplied by the os-vendor. Any thoughts about tha

Cfengine Help: Re: Cfengine Help: Re: allowconntect, trustkeysfrom and admit syntax

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: allowconntect, trustkeysfrom and admit syntax Author: gusto Link to topic: https://cfengine.com/forum/read.php?3,20444,20455#msg-20455 Hi folks, I was one of the folks who was seeing the issues on the root-.pub keys back on 3.1.2. So I put a

Re: Cfengine Help: Cfengine client setup howto

2011-02-04 Thread Dennis . Cabooter
> The documentation is indeed confusing and the example starter code > provided is pain wrong because the mycopy() body lacks a servers clause so > it doesn't even try to copy from a server. The example code in the docs is talking about @(some_list) while $(some_list) is the correct (or at least w

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Dennis . Cabooter
I my opinion I prefer the BSD method. For example OS binaries are in /bin or /sbin, OS configs in /etc, OS startup-scripts in /etc/rc.d. Third party stuff gets the /usr/local prefix, so it becomes /usr/local/bin, /usr/local/etc and /usr/local/etc/rc.d. I try to use this nice and clean practice on L

Cfengine Help: WORKDIR and cf-serverd as a non-root user.

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: WORKDIR and cf-serverd as a non-root user. Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20457,20457#msg-20457 Hi all, I will only run cf-serverd on the central policy and as non-root user. We don't allow configs, scripts or data files

Cfengine Help: Re: WORKDIR and cf-serverd as a non-root user.

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: WORKDIR and cf-serverd as a non-root user. Author: eystein Link to topic: https://cfengine.com/forum/read.php?3,20457,20459#msg-20459 Yes, the C-code always uses the working dir as the base path, it is not hard-coded. Just try the configure switch - it won't hurt

Cfengine Help: Re: WORKDIR and cf-serverd as a non-root user.

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: WORKDIR and cf-serverd as a non-root user. Author: eystein Link to topic: https://cfengine.com/forum/read.php?3,20457,20460#msg-20460 However, running Cfengine as non-root in production sounds like shooting someone's foot. ___

Cfengine Help: Re: WORKDIR and cf-serverd as a non-root user.

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: WORKDIR and cf-serverd as a non-root user. Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20457,20461#msg-20461 > However, running Cfengine as non-root in production sounds like shooting > someone's foot. The cf-execd will run as root

Cfengine Help: Re: Cfengine client setup howto

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine client setup howto Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20442,20462#msg-20462 I start with the policy host. I create a basic policy with update.cf and failsafe.cf. Once the the server runs and its own client is check

Cfengine Help: Re: Cfengine client setup howto

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine client setup howto Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,20442,20463#msg-20463 Another possibly useful resource is Michael Potter's cfengine boilerplate: http://github.com/megamic/cfengine3-boilerplate ___

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Aleksey Tsalolikhin
On Fri, Feb 4, 2011 at 5:56 AM, wrote: > Forum: Cfengine Help > Subject: Re: Cfengine Help: Cfengine 3.1.4 is released > Author: berntjernberg > Link to topic: https://cfengine.com/forum/read.php?3,20445,20454#msg-20454 > > Hi, > > I usually use /opt, /etc/opt and /var/opt for binaries or scripts

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Jesse Becker
On Fri, Feb 04, 2011 at 02:24:27PM -0500, Aleksey Tsalolikhin wrote: >On Fri, Feb 4, 2011 at 5:56 AM, wrote: >> Forum: Cfengine Help >> Subject: Re: Cfengine Help: Cfengine 3.1.4 is released >> Author: berntjernberg >> Link to topic: https://cfengine.com/forum/read.php?3,20445,20454#msg-20454 >>

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20445,20466#msg-20466 There's really no big point in using /var/cfengine/bin, since /usr exists everywhere on Linux and other Unix distributions

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20445,20467#msg-20467 The original reason for choosing /var (and you kids are probably too young to remember ;-)) was that /var is generally the only file

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Aleksey Tsalolikhin
On Fri, Feb 4, 2011 at 11:33 AM, Jesse Becker wrote: > > Theoretically, Linux systems should use the FHS: >        http://www.pathname.com/fhs/ > Great link, thanks, Jesse! I will check this out. Please do be aware that Cfengine runs on many Unix systems, not only Linux. One of the unique cha

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Aleksey Tsalolikhin
On Fri, Feb 4, 2011 at 11:52 AM, wrote: > Forum: Cfengine Help > Subject: Re: Cfengine Help: Cfengine 3.1.4 is released > Author: mark > Link to topic: https://cfengine.com/forum/read.php?3,20445,20467#msg-20467 > > The original reason for choosing /var (and you kids are probably too young to >

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Mark Burgess
The FHS gets thrown in my face from time to time (see the FAQ) but what folks don't seem to realize is that is is just a collection of pretty ad hoc selections of common usage discovered by some random people, and a declaration of intent to not make the variety of conventions any worse. A few spec

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Mark Burgess
> So that's about the past. :) > > I'm interested in looking ahead to new features such as knowledge management, > system integration / cloud integration, mechanical promises, etc. > Aleksey, good lord, you actually listen to these things I say! :-D

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Eystein Måløy Stenberg
Amen to that. ;) On Fri, Feb 4, 2011 at 9:02 PM, Mark Burgess wrote: > > The FHS gets thrown in my face from time to time (see the FAQ) but what > folks don't seem to realize is that is is just a collection of pretty ad > hoc selections of common usage discovered by some random people, and a > de

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Jesse Becker
On Fri, Feb 04, 2011 at 03:02:34PM -0500, Mark Burgess wrote: > >The FHS gets thrown in my face from time to time (see the FAQ) but what Probably by me. :-) >folks don't seem to realize is that is is just a collection of pretty ad >hoc selections of common usage discovered by some random people,

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20445,20474#msg-20474 Mark, are those kids on your lawn too? If we were to standardize on something I would prefer /opt/ and place outputs and othe

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20445,20475#msg-20475 Perhaps I failed to make what seemed like an obvious connection -- when the network goes down and /usr or /opt are NFS mounted, your

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20445,20476#msg-20476 Doing some Unix administration since 1997, I'm bit too old to be considered a kid ;) Nevertheless, if we could have been

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20445,20477#msg-20477 Yes, I did understand your meaning Mark. However, if /usr was gone I think you'd be stuck anyway since Cf would have no acces

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20445,20478#msg-20478 Come on, Mark. Nowadays NFS mounts are rather used for sharing data and not system binaries, since storage is cheaper than

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20445,20479#msg-20479 Seva, I'm just telling you what the world was like when I wrote Cfengine and why the choices were made. The work directory is confi

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,20445,20480#msg-20480 Mark, I know it is ;) We're discussing the best place to put it in packages, don't we? BTW, I'm pretty sure you've change

Re: Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread Bas van der Vlies
> , > > I'm just telling you what the world was like when I wrote Cfengine and why > the choices were made. The work directory is configurable, so go ahead and > put these things where you like! I'm not holding anyone back! > That is a good remark. I do not use the packages provided by cfengin

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released - still in /var

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released - still in /var Author: Ed Link to topic: https://cfengine.com/forum/read.php?3,20445,20482#msg-20482 I can understand the /var location - the binaries are there for reference, AFAIK, so noexec should not be a problem on

Cfengine Help: Re: 3.1.4 community packages are now available

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: 3.1.4 community packages are now available Author: Ed Link to topic: https://cfengine.com/forum/read.php?3,20443,20483#msg-20483 cool! ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailm

Cfengine Help: Re: 3.1.4 community packages are now available

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: 3.1.4 community packages are now available Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,20443,20484#msg-20484 Thanks for providing these, Mark. They are very helpful. ___ Help-cfengine maili

Cfengine Help: Re: Cfengine Help: Cfengine 3.1.4 is released

2011-02-04 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Cfengine 3.1.4 is released Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20445,20485#msg-20485 Curiously everything old is eventually new again. Although disk is now cheap, we are now starting to see a return to shared storage