CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: ryanwilliams Link to topic: https://cfengine.com/forum/read.php?3,23442,23462#msg-23462 bundle agent crontab_my_job { files: host_domain_net_au:: "/etc/crontab" edit_line => cron_my_job; } bundle edit_line

RE: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Jerome Yanga
Aleksey, Good eye. I did put that second parameter on my actual promise. I just missed putting it in my example. Yours worked as well. How is yours different from that of Seva? I am just trying to understand which one would be more applicable to what I am trying to do. Regards, j -

RE: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Jerome Yanga
Thank you, Seva. This worked. Regards, j -Original Message- From: Seva Gluschenko [mailto:seva.glusche...@gmail.com] Sent: Tuesday, September 13, 2011 11:49 AM To: Jerome Yanga Cc: help-cfengine@cfengine.org Subject: Re: CFEngine Help: how to convert vars to a class Jerome, I guess, y

CFengine and Nagios Integration for Security Monitoring!

2011-09-13 Thread Jan Muhammad
Hi Group, I wonder anyone has experience on integrating CFengine with Nagios(http://www.nagios.org/).I came across this blog post(http://www.sladder.org/?tag=cfengine); but it's not detailed enough to follow.  Considering a large scale network setup, a scenario can be if we want to generate s

Re: CFEngine Help: Re: cf3 inputs, branching, selectiveness, staying sane

2011-09-13 Thread Aleksey Tsalolikhin
> Put most succinctly, I was trying to keep bundlesequence defined where it > made sense for my idea.  That idea being: Keep promises.cf as stock as > possible and define site-specific stuff in site-specific files.  A > bundlesequence will be site-specific for us.  I want to load site_x_inputs.c

Re: CFEngine Help: Re: cf3 inputs, branching, selectiveness, staying sane

2011-09-13 Thread Aleksey Tsalolikhin
On Sun, Sep 11, 2011 at 5:12 AM, wrote: > Forum: CFEngine Help > Subject: Re: cf3 inputs, branching, selectiveness, staying sane > Author: jblaine > Link to topic: https://cfengine.com/forum/read.php?3,23400,23426#msg-23426 > > "Jessica Greer cfengine" > > http://www.jessicagreer.com/blog/?p=7 >

Re: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Aleksey Tsalolikhin
Hi, Jerome. I suggest using cf-promises to check the syntax on your policy: [cfengine00 ~]# cf-promises -f ./test.cf Arguments to function readfile(.) do not tally. Expect 2 not 1 Promise (version not specified) belongs to bundle 'g' in file './test.cf' near line 5 [cfengine00 ~]# You have to

CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23442,23455#msg-23455 davidlee Wrote: --- > Technically: while that handles adding the lines > in the first pl

Re: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Seva Gluschenko
Jerome, I guess, you want something like classes: "$(temp)" expression => "any"; 2011/9/13 Jerome Yanga : > Aleksey, > > I came up with the following but I seem to be misinterpreting the reference > manual.  I have also used canonify to no avail.  Help. > > $ cat /tmp/test.txt > DOG > > bundl

RE: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Jerome Yanga
Aleksey, I came up with the following but I seem to be misinterpreting the reference manual. I have also used canonify to no avail. Help. $ cat /tmp/test.txt DOG bundle common g { vars: "temp" string => readfile( "/tmp/test.txt" ); } bundle agent animal {

Re: Eclipse integration with cfengine - Anyone using cfeditor?

2011-09-13 Thread Aleksey Tsalolikhin
Hi, Jan. I haven't tried Cfeditor plug-in in Eclipse. On Sat, Sep 10, 2011 at 10:21 AM, Jan Muhammad wrote: > if I want to wrap CFengine (e.g. cfagent) instances in a Java based > Web Service, how can I do that? Any clues on this as well. I imagine you'd just run "/var/cfengine/bin/cfagent" f

Re: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Aleksey Tsalolikhin
Yes, you can do it using the ifvarclass, which converts a variable to a class. Could you please read the ifvarclass section of the reference manual, and let me know if you have any questions. Best, Aleksey On Tue, Sep 13, 2011 at 11:13 AM, Jerome Yanga wrote: > Is it possible to do what I am a

RE: CFEngine Help: how to convert vars to a class

2011-09-13 Thread Jerome Yanga
Is it possible to do what I am attempting to? Regards, j -Original Message- From: Jerome Yanga Sent: Monday, September 12, 2011 4:27 PM To: 'Aleksey Tsalolikhin' Cc: 'help-cfengine@cfengine.org' Subject: RE: CFEngine Help: how to convert vars to a class Aleksey, Thank you for the quick

CFEngine Help: Re: Context-sensitive "mailto"?

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: Context-sensitive "mailto"? Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,23443,23449#msg-23449 Well, you can define class-based mailfrom/mailto in the executor control body, but I'm not sure how far you can use soft classes there.

Re: CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread Daniel V. Klein
Before you get started on this, I think you should ask yourself this: 1) Do I want to maintain all of crontab (regardless of which machine gets what) with CFEngine, or 2) Do I want to maintain a PART of crontab with CFEngine (and handle machine differences manually on each machine) Personally,

CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,23442,23447#msg-23447 Neil: Thanks for the reply, about defining a list in cfengine and appending that. There are two drawbacks for us, one technical, the other po

CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23442,23446#msg-23446 Another option is to use Cfengine time classes as an entire cron replacement. ___ Help-cfengine

CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,23442,23445#msg-23445 I know this isn't exactly what you asked about, but I would *strongly* encourage people to consider using /etc/cron.d (assuming one's OS supp

CFEngine Help: Re: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23442,23444#msg-23444 You could just append a list to a cron file. http://watson-wilson.ca/2011/05/managing-crontables-with-cfengine.html ___

CFEngine Help: Context-sensitive "mailto"?

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: Context-sensitive "mailto"? Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,23443,23443#msg-23443 (cfengine 3.1.4) Back in the old days of version 2 of cfengine, there was a variable "sysadm" that could be used to email cfengine's results to va

CFEngine Help: inserting lines into crontab

2011-09-13 Thread no-reply
Forum: CFEngine Help Subject: inserting lines into crontab Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,23442,23442#msg-23442 (cfengine 3.1.4) Imagine a set of related but different machines being maintained by cfengine. Each has its own root crontab with contents that