CFEngine Help: Trying to understand promise status codes

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Trying to understand promise status codes Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23494,23494#msg-23494 Hi, I'm trying to understand under which conditions are the different promise status codes set. This is a long and convoluted post m

CFEngine Help: spurious SETUID/SETGID warnings

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: spurious SETUID/SETGID warnings Author: rgarner Link to topic: https://cfengine.com/forum/read.php?3,23493,23493#msg-23493 I'm getting spurious warnings of the form cf3> !! NEW SETGID root PROGRAM when copying a new file. The promise looks like this: "/usr/lo

CFEngine Help: Re: RE: CFEngine Help: Re: CFEngine Help: weird error on variable and report not working

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: RE: CFEngine Help: Re: CFEngine Help: weird error on variable and report not working Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23210,23492#msg-23492 Hi Jerome, Just to complete the thought: one problem with using a plain insert_lines

RE: CFEngine Help: Re: CFEngine Help: weird error on variable and report not working

2011-09-14 Thread Jerome Yanga
Thanks, Zzamboni. Regards, j -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Wednesday, September 14, 2011 1:00 PM To: help-cfengine@cfengine.org Subject: CFEngine Help: Re: CFEngine Help: we

CFEngine Help: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints. Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23477,23490#msg-23490 It's my understanding that the goal is not so much to create the most

CFEngine Help: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23477,23489#msg-23489 Ah but the promisee is an optional RHS. However, I do see how in

CFEngine Help: Re: inserting lines into crontab

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23442,23488#msg-23488 neilhwatson Wrote: --- > You can design your Cf policy to allow multiple > groups to contribut

Re: CFEngine Help: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread Aleksey Tsalolikhin
Acknowledged, Neil and Diego, thank you. Dear Neil, LHS/RHS is used for setting attributes of a promise -- the details of the promise that constrain its nature. You can have a promise without LHS/RHS. For example: commands: "/bin/echo test"; # this does something reports: cfengine_3:: "H

CFEngine Help: Re: CFEngine Help: weird error on variable and report not working

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: weird error on variable and report not working Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23210,23485#msg-23485 Jerome, The "duplicate selection" message appears because the variable is defined twice: on the first pass b

Re: CFEngine Help: Re: Why does CFEngine 3.2.0 consider running a process_stop command as a promise kept?

2011-09-14 Thread Aleksey Tsalolikhin
Agreed. Thank you Seva, Neil and Diego for getting the correct data out there. Best, -at On Wed, Sep 14, 2011 at 12:19 PM, wrote: > Forum: CFEngine Help > Subject: Re: Why does CFEngine 3.2.0 consider running a process_stop command > as a promise kept? > Author: zzamboni > Link to topic: http

CFEngine Help: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints. Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23477,23484#msg-23484 Actually, I would not characterize the cfengine3 syntax for its "ec

CFEngine Help: Re: Why does CFEngine 3.2.0 consider running a process_stop command as a promise kept?

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Why does CFEngine 3.2.0 consider running a process_stop command as a promise kept? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23210,23483#msg-23483 ifvarclass most definitely does _not_ define classes. It does build and evaluate a clas

CFEngine Help: weird error on variable and report not working

2011-09-14 Thread Jerome Yanga
I have the following promises. bundle common g { vars: "alias_vi" string => "alias vi=\"vim\""; "bashrc_loc"string => "/etc/bashrc"; } Bundle agent exampleInsertLine { vars: "alias_editor" in

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

2011-09-14 Thread Jerome Yanga
Indeed. Thank you much. Regards, j -Original Message- From: Aleksey Tsalolikhin [mailto:atsaloli.t...@gmail.com] Sent: Wednesday, September 14, 2011 11:12 AM To: Jerome Yanga Cc: help-cfengine@cfengine.org Subject: Re: CFEngine Help: how to convert vars to a class On Tue, Sep 13, 2011

CFEngine Help: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints. Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23477,23480#msg-23480 Class promises just like others are of a left hand, right hand s

Re: CFEngine Help: Re: Eclipse integration with cfengine - Anyone using cfeditor?

2011-09-14 Thread Aleksey Tsalolikhin
Great, thanks for sharing that! Aleksey On Mon, Sep 12, 2011 at 7:01 AM, wrote: > Forum: CFEngine Help > Subject: Re: Eclipse integration with cfengine - Anyone using cfeditor? > Author: jcoleman > Link to topic: https://cfengine.com/forum/read.php?3,23427,23433#msg-23433 > > Here's how I inst

Re: CFengine and Nagios Integration for Security Monitoring!

2011-09-14 Thread Aleksey Tsalolikhin
Ethan Galstad asked me to put together something demonstrating integration of CFEngine with Nagios but I just haven't had time to do that yet. (Like automatic configuration of Nagios using CFEngine.) I've read the blog post, the integration is one way: Nagios tells CFEngine to restart Apache. -D

CFEngine Help: Re: Why does CFEngine 3.2.0 consider running a process_stop command as a promise kept?

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: Why does CFEngine 3.2.0 consider running a process_stop command as a promise kept? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,23210,23475#msg-23475 I do not think that ifvarclass defines a class. That would be illogical. However w

Having trouble setting a custom class. "Irreconcilable constraints" error but there are no constraints.

2011-09-14 Thread Aleksey Tsalolikhin
Hi. I looked at Seva's example, classes: "$(temp)" expression => "any"; and the 'expression => "any"' attribute really bothered me, because it violates the beautiful economy of expression that CFEngine 3 is capable of. Really what we want to say is: classes: "$(

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

2011-09-14 Thread Aleksey Tsalolikhin
On Tue, Sep 13, 2011 at 4:07 PM, Jerome Yanga wrote: > Aleksey, > > Good eye.  I did put that second parameter on my actual promise.  I just > missed putting it in my example. That happens. :) > Yours worked as well.  How is yours different from that of Seva? I gave you a complete working ex

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

2011-09-14 Thread Aleksey Tsalolikhin
Thank you, Seva. The reference manual states ifvarclass builds out a class from variable content: CFEngine 3 has a new class predicate ifvarclass which is ANDed with the normal class expression, and which is evaluated together with the promise. It may contain variables as long as the resulting ex

CFEngine Help: Re: inserting lines into crontab

2011-09-14 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,23473#msg-23473 You can design your Cf policy to allow multiple groups to contribute with limited interference. For example read two cron files, one of yo

CFEngine Help: Re: inserting lines into crontab

2011-09-14 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,23472#msg-23472 All very valid points. My experiences are mostly in development and develop-in-production environments where I simply cannot take 100% cont

CFEngine Help: Re: inserting lines into crontab

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23442,23471#msg-23471 The suggestion to use cron.d is only superficially different from adding lines to a file; you're still combining a bunch of small parts into a la

CFEngine Help: Re: warnings and promise compliance

2011-09-14 Thread no-reply
Forum: CFEngine Help Subject: Re: warnings and promise compliance Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23315,23470#msg-23470 This somewhat makes sense. If you promise to warn about a file's state, then that promise is kept if the warning is generated describing whet

Re: CFEngine Help: Re: inserting lines into crontab

2011-09-14 Thread Bas van der Vlies
On 14-09-11 12:29, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: inserting lines into crontab > Author: davidlee > Link to topic: https://cfengine.com/forum/read.php?3,23442,23466#msg-23466 > > Neil: Thanks for your second reply. What my team members would like is the > capa

CFEngine Help: Re: inserting lines into crontab

2011-09-14 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,23467#msg-23467 Ryan's approach can become extremely difficult to do. You can end up having to craft wild regular expressions to account for what should n

CFEngine Help: Re: inserting lines into crontab

2011-09-14 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,23466#msg-23466 Neil: Thanks for your second reply. What my team members would like is the capability simply to maintain a centralised repository of crontab

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

2011-09-14 Thread Seva Gluschenko
Aleksey, Don't misguide newcomers ) The ifvarclass attribute does NOT create a class from variable, it allows to build out a class name from a variable content and check whether such class has been defined already or not. To create (i.e. to define) a class from a variable, one must use classes: se

Re: CFengine and Nagios Integration for Security Monitoring!

2011-09-14 Thread Seva Gluschenko
Jan, Nagios seems to be unnecessary here. The Cfengine way is to write a promise which updates vulnerability database and either simply generates reports about changes found or applies updates. No extra agent (like Nagios) is needed for this task. 2011/9/14 Jan Muhammad : > Hi Group, > I wonder a