Re: package_method options and bundle names

2010-02-09 Thread lefollfr
2010/2/9 Mark Burgess : > > Could be, you could try upgrading to svn Tested with SVN rev 785 : no more "Body type mismatch" indeed. No more conflict between body names and package_policy values. Great ! Frederic ___ Help-cfengine mailing list Help-cfeng

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Les Mikesell
Mark Burgess wrote: >> It's hard to imagine something that can't be described in perl - or a >> seasoned sysadmin that doesn't already know how to do it (perhaps badly, >> but odds are good that 90% of the job can be done with existing CPAN >> modules...). Suppose you need to work with a proce

Re: Documentation feedback from a CFEngine 3 newbie.

2010-02-09 Thread Mark Burgess
Steve, thanks for good and helpful feedback. M st...@echo.id.au wrote: > Hi List > > As a newbie just starting to understand CFEngine 3, I'd like to offer a > couple of feedback points on the documentation, based on my progress to > date. > > The "Getting Started" page offers little in the way

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Mark Burgess
> It's hard to imagine something that can't be described in perl - or a > seasoned sysadmin that doesn't already know how to do it (perhaps badly, > but odds are good that 90% of the job can be done with existing CPAN > modules...). Suppose you need to work with a process that exposes its >

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Mark Burgess
Actually, I can just stop talking at this point, as Justin just reads my thoughts and a nswers so eloquently! Thanks, Justin. Justin Lloyd wrote: > Cfengine 3 is young but I think that with a strong community, over time > the COPBL will develop into something like what you're describing (or > s

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Mark Burgess
Les, this is what you are looking for, I believe http://www.cfengine.org/cftimes/articles/21.html It is a revamp of something we've tried before, but now we have the Cfengine company backing up the development, and much improved software. Cfengine looks different from other languages b

Re: Email notification of repairs

2010-02-09 Thread Mark Burgess
You took the words right out of my mouth! :-) What the cf-monitord (new v3 cfenvd) was designed to do with its Nova extensions was to eliminate the need for SNMP by providing Unix-like sensors based on file streams and regular expressions (the two things that make Unix infinitely superior to a

Re: Email notification of repairs

2010-02-09 Thread Mark Burgess
Sorry, I'm a little late to the table, Justin is right that I don't see a future for SNMP, so there won't be any direct integration there (but still possible to use a perl script or something like that with cfengine and use the tools provided in cf-monitord). Direct writes to syslog and event v

Documentation feedback from a CFEngine 3 newbie.

2010-02-09 Thread steve
Hi List As a newbie just starting to understand CFEngine 3, I'd like to offer a couple of feedback points on the documentation, based on my progress to date. The "Getting Started" page offers little in the way of useful information for a beginner. Personally, I'm not interested in knowing that Co

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Les Mikesell
On 2/9/2010 5:28 PM, Justin Lloyd wrote: > Cfengine 3 is young but I think that with a strong community, over time > the COPBL will develop into something like what you're describing (or > something more grassroots could emerge, much like CPAN did). I don't think CPAN could exist without support f

RE: Directory permissions, and multiple body bundles.

2010-02-09 Thread Justin Lloyd
Cfengine 3 is young but I think that with a strong community, over time the COPBL will develop into something like what you're describing (or something more grassroots could emerge, much like CPAN did). As for the language, it's different because it's not a programming language but a platform-inde

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Les Mikesell
On 2/9/2010 4:23 PM, Justin Lloyd wrote: > > In a small team of admins, like mine, everyone will need to become a > Cfengine admin and getting people accustomed to a particular model of > system administration may find the transition to the Cfengine way of > thinking could be a challenge. As someo

Re: Email notification of repairs

2010-02-09 Thread michoski
On 2/9/10 2:16 PM, "Justin Lloyd" wrote: > Syslog-ng is what we've historically used for centralized logging and > I'll be revamping it with v3 later this year. Combined with a > logwatching tool, it makes a powerful combination with an snmp-based > monitoring tool. Intuitively, I like better the

RE: Directory permissions, and multiple body bundles.

2010-02-09 Thread Justin Lloyd
I understand what Mark is saying, but there are two ways I can see of looking at an "under the hood" analogy. Looking at the complexity of an engine, that engine could either be the configuration engine itself (i.e. Cfengine) or it could be the source code. Looking at Cfengine's source, it's quite

RE: Email notification of repairs

2010-02-09 Thread Justin Lloyd
Syslog-ng is what we've historically used for centralized logging and I'll be revamping it with v3 later this year. Combined with a logwatching tool, it makes a powerful combination with an snmp-based monitoring tool. Intuitively, I like better the idea of remote monitoring of Cfengine cf-execd pro

Re: Email notification of repairs

2010-02-09 Thread michoski
On 2/9/10 1:09 PM, "Justin Lloyd" wrote: > Has anyone done any investigation into having a monitoring tool like > Zenoss (which we use), Nagios, or OpenNMS watch for repairs? At the very > least, centralizing at least some of Cfengine hosts' logs and using a > log-watching tool like Swatch or Splu

RE: Email notification of repairs

2010-02-09 Thread Justin Lloyd
We'll probably use Zenoss to ensure the proper Cfengine processes are running, though maybe just the cf-execd processes since those in turn can watch cf-serverd and cf-monitord. (How I wish Linux had something like Solaris' Service Management Facility (SMF).) Along those same lines, we'll make use

Re: Email notification of repairs

2010-02-09 Thread Les Mikesell
On 2/9/2010 3:09 PM, Justin Lloyd wrote: > Has anyone done any investigation into having a monitoring tool like > Zenoss (which we use), Nagios, or OpenNMS watch for repairs? At the very > least, centralizing at least some of Cfengine hosts' logs and using a > log-watching tool like Swatch or Splun

Re: Email notification of repairs

2010-02-09 Thread Michael Potter
On Wed, Feb 10, 2010 at 8:09 AM, Justin Lloyd wrote: > Has anyone done any investigation into having a monitoring tool like > Zenoss (which we use), Nagios, or OpenNMS watch for repairs? I use Nagios to capture the tail of promises.log. This is mainly to verify that cfengine is in fact running (

RE: Email notification of repairs

2010-02-09 Thread Justin Lloyd
Has anyone done any investigation into having a monitoring tool like Zenoss (which we use), Nagios, or OpenNMS watch for repairs? At the very least, centralizing at least some of Cfengine hosts' logs and using a log-watching tool like Swatch or Splunk would be a step in the right direction. Team C

Community Open Promise Body Library suggestions

2010-02-09 Thread Justin Lloyd
I just started skimming over the COPBL and wanted to perhaps kick off a suggestions thread: body depth_search infinite { depth => "inf"; } I couldn't think of a good name for this next one, but it would ensure that only a single specified line of text is in a file, only deleting what doesn't

Re: cfengine and FAI

2010-02-09 Thread michoski
On 2/9/10 9:11 AM, "Tim Cutts" wrote: > On 9 Feb 2010, at 4:59 pm, John G. Heim wrote: >> I have a couple of problems the biggest is that I don't know how to >> get the >> cfengine server to know that when I'm doing a reinstall, it has to >> accept a >> new key. When I run cfagent on the new inst

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Mark Burgess
You need to study more before making a statement like this. It's like saying -- when I lift the hood of my car I don't like seeing that the engine is complex. You have no right to make my engine complex. I have been trying to encourage people to use a standard set of promise bodies and *not* q

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread michoski
On 2/9/10 10:30 AM, "Andrew J. Millar" wrote: >> bundle agent test >> { >> files: >> "/root" >> create => "true", >> perms => m("700"), >> file_select => folder(".ssh"), >> depth_search => recurse("1"); >> >> "/root/.ssh/authorized_keys" >> create => "true", >> perm

Re: Email notification of repairs

2010-02-09 Thread Neil Watson
The trouble with this type of raw email notification is lack of correlation and reliability. If the MTA is out of action you'll get no notice. If the agent attempts repeated repairs repeated emails are sent. This can be very disheartening. As has been mentioned a monitoring and alerting syste

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Mark Burgess
If you adapt to using the standard library, then you should not see any of these "under the hood" details. This is the way to go forward. M Andrew J. Millar wrote: >> Might be something like this following; >> >> bundle agent test >> { >> files: >> "/root" >> create => "true", >> per

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Andrew J. Millar
> > Might be something like this following; > > bundle agent test > { > files: > "/root" > create => "true", > perms => m("700"), > file_select => folder(".ssh"), > depth_search => recurse("1"); > > "/root/.ssh/authorized_keys" > create => "true", > perms => m("60

RE: Email notification of repairs

2010-02-09 Thread Justin Lloyd
I appreciate the thoughtful responses. To restate one of my original thoughts on this, in general Cfengine shouldn't be making a lot of repairs, because a repair means something went wrong, for which the underlying cause should be prioritized and investigated. There are of course certain kinds of p

Re: Directory permissions, and multiple body bundles.

2010-02-09 Thread Nakarin Phooripoom
On Feb 9, 2010, at 5:55 PM, Andrew J. Millar wrote: > > > If I add in depth_search include_basedir => "true", it changes the permissions > recursively, which isn't what I want. How can I make this apply only to the > directory I've specified in the same way it works fine for the authorized_key >

Re: cfengine and FAI

2010-02-09 Thread Tim Cutts
On 9 Feb 2010, at 4:59 pm, John G. Heim wrote: > Hi, > > I am trying to configure our automatic linux install system (Fully > Automated > Install or FAI) to do a mimimal debian linux install and then to run > cfengine to install all of the config files and additional packages. I > already have

cfengine and FAI

2010-02-09 Thread John G. Heim
Hi, I am trying to configure our automatic linux install system (Fully Automated Install or FAI) to do a mimimal debian linux install and then to run cfengine to install all of the config files and additional packages. I already have cfengine to do stuff like copying a ntp.conf file to the lin

Directory permissions, and multiple body bundles.

2010-02-09 Thread Andrew J. Millar
Hi everyone I'm struggling with managing permissions of a directory - my aim is to ensure /root/.ssh has mode 700, but without needing to recurse through it. With a promise such as the following, cf-agent states cf3 -> Promise to skip base directory /root/.ssh/. body common control { bundleseq

2.0.6-1 edit files question

2010-02-09 Thread Haffenden, Colin
Hi, I'm trying to append an entry in the hosts file for the host that is currently running CF Engine. I've tried several different things but don't seem to be getting anywhere, does anyone know how to do this? For example: 10.10.10.10 host1.domain.name.com host1 10.10

Re: package_method options and bundle names

2010-02-09 Thread Mark Burgess
Could be, you could try upgrading to svn lefollfr wrote: > Isn't it something similar to the problem described with variable > declaration in Bug-cfengine thread "Bug when using a string variable > with the same value as a perms body promise name" ? > _

Re: package_method options and bundle names

2010-02-09 Thread lefollfr
Isn't it something similar to the problem described with variable declaration in Bug-cfengine thread "Bug when using a string variable with the same value as a perms body promise name" ? ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cf

Re: package_method options and bundle names

2010-02-09 Thread lefollfr
Jonathan Clarke wrote : > It looks like you may need unique names for body and bundle items, even if > they are of the same type... Hello Jonathan, Thank you for the reply. But oops ... I notice that I wrote : package_method "update" ... where my problem is with : package_policy "update". In t