Re: CFEngine Help: Re: [ANNOUNCE] CFEngine Community 3.4.0beta2 is released

2012-10-02 Thread Jonathan Clarke
an abstract of this explanation? I think that would help understanding the relationship between ordering methods. Regards, Jonathan -- -------- *Jonathan CLARKE* /CTO - Directeur technique/ Normation <http://www.normation.com>

Interest for training sessions in North America - help please!

2012-03-27 Thread Jonathan Clarke
Hi there, We at Normation run regular CFEngine training courses [1] around the world (well, so far, North America and Europe, but we're open!), as part of our partnership with the CFEngine company. These courses have been mentioned here before, and have always been a great success. We have a slot

Re: file_select mtime catching some files it shouldn't

2012-03-04 Thread Jonathan CLARKE
Hi Dan, On 04/03/2012 15:24, Daniel V. Klein wrote: > Jonathan- > > Looking naively at FnCallNow() in evalfunction.c, I believe you are correct > in your suspicion that cf-agent uses the start time as "now". Now, I say > "naively" because I am not that familiar with the Cfengine core code, and

file_select mtime catching some files it shouldn't

2012-03-04 Thread Jonathan CLARKE
Hi everyone, I'm running into a funny issue, using a files promise to clean up files older than 30 days, that seems to catch very recent files (less than a few minutes old), or possibly files that are undergoing modifications as CFEngine runs. Here are my promises: bundle clean_www_archives {

Announcement: CFEngine training courses in Paris and London in March

2012-02-14 Thread Jonathan CLARKE
Hi all, We're organizing a couple of training sessions in Europe next month: >From March 7th to 9th we'll be Paris (training in French) Details, prices and signup options: http://formation-cfengine-paris-mars-2012-cfl.eventbrite.com >From March 26th to 28th in London (training in English) Detail

Re: CFEngine Help: Re: CFEngine Help: Slists and looping

2011-12-06 Thread Jonathan Clarke
On 06/12/11 00:21, no-re...@cfengine.com wrote: > Forum: CFEngine Help Subject: Re: CFEngine Help: Slists and looping > Author: random Link to topic: > https://cfengine.com/forum/read.php?3,24179,24195#msg-24195 > > Jonath

Re: CFEngine Help: Re: CFEngine viable alternative to Kaseya?

2011-12-03 Thread Jonathan Clarke
no-re...@cfengine.com a écrit : >Forum: CFEngine Help >Subject: Re: CFEngine viable alternative to Kaseya? >Author: theaccount >Link to topic: >https://cfengine.com/forum/read.php?3,24177,24181#msg-24181 > >Is there a tool that you would recommend for remote script execution? I've heard a lot

Re: CFEngine Help: Slists and looping

2011-12-02 Thread Jonathan Clarke
no-re...@cfengine.com a écrit : >Forum: CFEngine Help >Subject: Slists and looping >Author: random >Link to topic: >https://cfengine.com/forum/read.php?3,24160,24160#msg-24160 > >I'm messing around with some simple looping over slists and ran into a >problem with the code below. It appears tha

CFEngine training course in NYC - September 12-14 - Last minute deals!

2011-09-06 Thread Jonathan CLARKE
rse will be given by Nicolas Charles (CFEngine 3 early adopter and CFEngine Community Champion) of Normation (CFEngine AS certified partner). Please get in touch if you have any questions! Jonathan -- ====== Jonathan CLARKE CTO

CFEngine training course in NYC - September 12-14

2011-08-19 Thread Jonathan CLARKE
Jonathan -- == Jonathan CLARKE CTO -- Normation -- Telephone: +33 (0)1 83 62 41 24 Web:http://blog.nor

Re: What's the difference between () and {} ? Why are there two?

2011-07-17 Thread Jonathan Clarke
Makefile usage, and much easier to type on my French keyboard (getting a { or a } requires weird keystrokes). Also, in complex variable expansion situations, I have found alternating the two can lead to clearer code, such as $(arrayname[${arraykey}]). Jonathan --

Re: CFEngine Help: edit global list

2011-07-11 Thread Jonathan CLARKE
case above). If you want to *set* the contents of the file, I suggest using a temporary file to build up the list (similar to your approach of building up a slist). The bundle add_module above would be the same, but using a temporary file. Then at the end of your bundlesequence, add a

Re: Cfengine Help: Making cf-runagent work

2011-06-29 Thread Jonathan CLARKE
EFUSAL of request from connecting host: (EXEC ) My guess is that it is to do with the escapes. I think something changed between 3.1.2 (which Jessica says works with this exact config), and 3.1.4 or 3.1.5. I just specify the hostname with no escapes, and it's get access. Jonathan --

Re: Cfengine Help: Re: 3.1.6 estimated release

2011-06-29 Thread Jonathan CLARKE
witter account: http://twitter.com/#!/CFEngine_news/status/85711133843013633 Jonathan -- == Jonathan CLARKE CTO - Directeur technique -- Normation 44 rue Cauchy, 94110 Arcueil, France --

Re: Cfengine Help: long string format

2011-06-18 Thread Jonathan Clarke
lned to just do something like this, I'd think: >>> >>> >>>"atftpd_conf" string => " >>> ### >>> ... >>> "; >>> >>> >>>

Re: Key Issues Running Standalone Promise

2011-06-12 Thread Jonathan CLARKE
iles" string => "/var/cfengine/masterfiles"; > "ps_servers" slist => { @(g.phost) }; > > files: >redhat_5:: > "/tmp/somefile" >perms => mog("0640","root","root"), >copy_from => > remo

Errors building trunk

2011-05-31 Thread Jonathan CLARKE
Hi, I've been attempting to build the Cfengine community trunk, but encounter a whole load of undefined reference errors. I wouldn't normally complain, but it's been like this for almost a week now... Has the build procedure changed, is it work in progress, or is it just me? Here are the exact e

Re: Cfengine Help: Re: Running a command just once.

2011-05-06 Thread Jonathan Clarke
f a "last modified" field in some table, or the max value of an auto-increment ID. If the dump is "fresher" than the database, then restore. If not, consider you're already in the desired state. This is a bit of a twist on defining the desired state - Cfengine usually enc

Re: Cfengine 3.1.5 is released -- a bugfix release

2011-05-04 Thread Jonathan CLARKE
lease! We've been looking forward to it :-) Any news on when the binary packages will be available? Jonathan -- ====== Jonathan CLARKE CTO - Directeur technique -- Normation 44 rue Cauchy, 94110 Arcueil, France

Re: verify service running

2011-03-04 Thread Jonathan Clarke
Hi Aleksey, On 11/11/10 00:34, Aleksey Tsalolikhin wrote: > check that CUPS (printer service) is running by checking the "ps" output, and > if regex match for "cups" fails, restarting cups: > > --- start cfengine config > body common control > > { > bundlesequence => { "check_cups_running"

Re: How to test promises?

2011-03-03 Thread Jonathan CLARKE
cal-as-the-others machines, then widen it, etc. Jonathan -- == Jonathan CLARKE -- Normation 44 rue Cauchy, 94110 Arcueil, France -- Telephone: +33 (0)1 83 62 41 24 --

Re: Do you trust nodes?

2011-03-03 Thread Jonathan CLARKE
t1/" admit => { "*.client1.com" }; "/srv/cfengine/client2/" admit => { "*.client2.com" }; } Hope this helps, Jonathan -- == Jonathan CLARKE

Reference manual missing contents

2011-02-26 Thread Jonathan CLARKE
Hi, The reference manual at http://www.cfengine.org/manuals/cf3-reference.html seems to be missing the contents today... That and some links (anchors) don't work. Just to let you know. Jonathan -- == Jonathan C

allowallconnects and trustkeysfrom regex syntax?

2011-02-23 Thread Jonathan CLARKE
onfused, so I hope this message is clear... My question is whether this is expected behaviour, and thus an error in the reference manual, or a bug in 3.1.4 ? Thanks, Jonathan -- == Jonathan CLARKE -- Nor

Re: Subscribing to bug reports

2011-02-18 Thread Jonathan Clarke
On 18/02/11 12:27, Mikhail Gusarov wrote: > On 18.02.2011 13:09, Jonathan Clarke wrote: > >> I have them all set to "With Minimum Severity of any". I do receive >> emails for reports that I submitted or am "watching", but I do not for >> other bugs. &g

Re: Subscribing to bug reports

2011-02-18 Thread Jonathan Clarke
On 17/02/11 13:32, Mikhail Gusarov wrote: > On 16.02.2011 22:40, Jonathan CLARKE wrote: > >> Is there any way of subscribing to Mantis in order to receive an email >> each time an issue is created/changed/etc? I couldn't find it in the web >> interface. > > S

Subscribing to bug reports

2011-02-16 Thread Jonathan CLARKE
Hi, I frequently submit and read bug reports on bug.cfengine.org. Is there any way of subscribing to Mantis in order to receive an email each time an issue is created/changed/etc? I couldn't find it in the web interface. Thanks, Jonathan -- == Jon

Re: denied access to /var/lib/cfengine3/masterfiles/conf/sshd_config

2011-02-11 Thread Jonathan CLARKE
ID from connecting host: (SYNCH 1297465274 STAT > /var/lib/cfengine3/masterfiles/cf-failsafe.sh) Do you have access_rules defined for that server? Something like: bundle server access_rules() { access: "/home/mark/LapTop" admit => { "255.3.30.102" }; } Hope this he

Re: Hi, any status on ID 470

2011-02-10 Thread Jonathan CLARKE
ion: https://cfengine.com/bugtracker/view.php?id=274 In the case given above, you could easily use Diego Zamboni's approach, and treat each of your lines like a set of fields using "=" as a delimiter. See his promise here: https://cfengine.c

Re: Building from SVN

2011-02-09 Thread Jonathan CLARKE
On 09/02/2011 16:51, Mikhail Gusarov wrote: > On 09.02.2011 14:18, Jonathan CLARKE wrote: > >> The commit r1787 from this morning seems to have removed the ./configure >> file, which as I understand can be generated by running ./autogen.sh. >> However, this requires autocon

Re: Building from SVN

2011-02-09 Thread Jonathan CLARKE
Hi Mikhail, Thanks for the quick answer. On 09/02/2011 14:32, Mikhail Gusarov wrote: > On 09.02.2011 14:18, Jonathan CLARKE wrote: > > > While I don't mind installing autoconf and running ./autogen.sh on my > > build machines, I have a problem: I use Debian stable

Building from SVN

2011-02-09 Thread Jonathan CLARKE
, I can no longer build Cfengine... Is there a solution or workaround that I should be aware of? If not, any advice would be appreciated. Thanks, Jonathan -- == Jonathan CLARKE -- Normation 44 rue Cauchy, 94110 Arcue

Re: two quick questions

2011-02-09 Thread Jonathan CLARKE
w what is new and what's not, and when new things appear, etc) Regards, Jonathan -- == Jonathan CLARKE -- Normation 44 rue Cauchy, 94110 Arcueil, France -- Telephone: +33

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

2011-02-04 Thread Jonathan CLARKE
l be much more enjoyable, and you won't stumble into bugs that have been found and fixed many months ago! Also, Cfengine AS provides free packages for Ubuntu - just create an account on cfengine.org "Engine Room" and you can download a .deb and have it running in minutes. Be

Error building trunk (r1771)

2011-02-04 Thread Jonathan CLARKE
-write.lo] Error 1 I think that "../../core/..." path may have been commited by mistake, I certainly don't have any path to that name. Or is it just me? Regards, Jonathan -- == Jonathan CLARKE -- Normatio

Re: Cfengine Help: Re: Cfengine Help: cf-serverd memory leak still (v3.1.2)

2011-01-20 Thread Jonathan CLARKE
ers' test environments? > It may be helpful to post library versions as well, since the leak could > be in those, as opposed to the core CF code. > -- == Jonathan CLARKE -- Normation 44 rue Cauchy, 9

3.1.2 binary package for Debian 4

2011-01-19 Thread Jonathan CLARKE
Hi, I just noticed that the Engine Room doesn't seem to have a binary package for Debian 4 for version 3.1.2 (3.0.5p1 had Debian 3 and 4). Are there plans for this, or has it been "deprecated"? Thanks, Jonathan -- ==

Re: Cfengine Help: cf-serverd memory leak still (v3.1.2)

2010-12-20 Thread Jonathan CLARKE
lem resides in Cfengine. > > -- > Regards, > Eystein > > On Mon, Dec 20, 2010 at 2:26 PM, Jonathan CLARKE > mailto:jonathan.cla...@normation.com>> > wrote: > > On 19/12/2010 20:31, no-re...@cfengine.com > <mailto:no-re...@cfengine.com> wrote: >

Re: Cfengine Help: cf-serverd memory leak still (v3.1.2)

2010-12-20 Thread Jonathan Clarke
lem resides in Cfengine. > > -- > Regards, > Eystein > > On Mon, Dec 20, 2010 at 2:26 PM, Jonathan CLARKE > mailto:jonathan.cla...@normation.com>> > wrote: > > On 19/12/2010 20:31, no-re...@cfengine.com > <mailto:no-re...@cfengine.com> wrote: >

Re: Cfengine Help: cf-serverd memory leak still (v3.1.2)

2010-12-20 Thread Jonathan CLARKE
, if the problem can't be reliably reproduced elsewhere (I can even give root access to this VM to someone at Cfengine AS). Regards, Jonathan -- ====== Jonathan CLARKE ---

Re: Cfengine Help: silly cfengine trick #!

2010-12-09 Thread Jonathan CLARKE
On 12/09/2010 01:43 PM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: silly cfengine trick #! > Author: matter > Link to topic: https://cfengine.com/forum/read.php?3,19692,19692#msg-19692 > > Have you ever thought, "Gee, I love the power of cfengine syntax, I just wish > I could s

Packages for 3.1.0 ?

2010-11-18 Thread Jonathan CLARKE
th Cfengine and would rather use 3.1.0 immediately, rather than have to upgrade later... :) Thanks! Jonathan -- == Jonathan CLARKE -- Normation 44 rue Cauchy, 94110 Arcueil, France -

Defining package_method with optional version number

2010-09-21 Thread Jonathan CLARKE
both with a specific version, and without any specific version? I tried various combinaisons of ifvarclass => isdefined("version") but that's not legal syntax. Maybe what is needed is some mechanism to change package_name_convention depending on the value of "version"?

Re: Quickstart guide?

2010-09-19 Thread Jonathan CLARKE
They make installation a breeze. You have to register and log in ("Engine Room" > "My cache"). Check out http://www.cfengine.org/pages/software. Hope this helps, Jonathan -- == Jonathan CLARKE --

Re: package_method options and bundle names

2010-02-08 Thread Jonathan Clarke
dlesequence). > > Any suggestion ? Hi, It looks like you may need unique names for body and bundle items, even if they are of the same type... Regards, Jonathan -- ---

Re: distribution server vs end host setup

2010-02-02 Thread Jonathan Clarke
ach server, although you could probably do without cf-runagent or cf-serverd if you're sure you don't to pull any files from the "end servers". I recommend just sending them all out... Jonathan -- -

Re: Standard library: apt package method

2010-01-26 Thread Jonathan Clarke
e able to be configured (to a maximum frequency, ie 3600 seconds) or disabled (for folks to use their own promise in "commands" section. Maybe two new parameters : package_list_update_command => "/usr/bin/aptitude update" package_list_update_ifelaps

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
hat was supported in apt-get. > > If you can set up and test the full thing for aptitude, that is a great > service to the > community. > > Jonathan Clarke wrote: >> On 25/01/2010 14:44, Jonathan Clarke wrote: >>> Hi, >>> >>> I've been testi

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
On 25/01/2010 14:44, Jonathan Clarke wrote: > Hi, > > I've been testing the standard library, in particular the apt > package_method. I come with a bug and some suggestions. One further question: To "be aware" of new package, aptitude (or apt-get) must download the l

Re: Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
an.org/doc/FAQ/ch-pkgtools.en.html) On 25/01/2010 14:47, Mark Burgess wrote: This is good feedback. If we know the point at which aptitude came into play, then we can place classes in the body to separate, or test for it, e.g. body package_method debian { have_aptitude:: !have_aptit

Standard library: apt package method

2010-01-25 Thread Jonathan Clarke
Hi, I've been testing the standard library, in particular the apt package_method. I come with a bug and some suggestions. First off, the bug. package_update_command is set to "apt-get dist-upgrade", which cause *all* packages to be updated to the latest version, not just the one(s) we're updat

Re: Cygwin version and workdirectory

2010-01-07 Thread Jonathan Clarke
On 01/07/2010 12:52 PM, Nicolas Charles wrote: Hi, I've just moved my Cygwin version from 3.0.2 to 3.0.3, and the behavior of the workdirectory changed. The windows administrator is named 'slave', and for some reasons cfengine now tries to use /home/slave/.cfagent rather than /var/cfengine. sl.