CFEngine Help: Re: insert_lines content is in reverse order?

2011-09-21 Thread no-reply
Forum: CFEngine Help Subject: Re: insert_lines content is in reverse order? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23564,23572#msg-23572 I was working from memory on that last post, so I got it wrong. The correct attribute is empty_file_before_editing and it goes in

CFEngine Help: Re: RE: CFEngine Help: Re: CFEngine Help: Version 3.2 will not bootstrap to policy server

2011-09-21 Thread no-reply
Forum: CFEngine Help Subject: Re: RE: CFEngine Help: Re: CFEngine Help: Version 3.2 will not bootstrap to policy server Author: cfeonse Link to topic: https://cfengine.com/forum/read.php?3,23210,23571#msg-23571 oh,thanks,very much,very detail.. I am learning... __

Re: OS patch management -- how to deploy the same patch set to production as you did to testing 3 weeks ago? (How to "take a snapshot" of an OS patch set)

2011-09-21 Thread Paul Krizak
We use rPath for this: http://www.rpath.com As with Satellite, not free. But an exceptionally powerful tool that lets you build and manage an entire set of appliances (OS + application) and supports nifty things like rollback, migration, and development staging. Paul Krizak

Re: OS patch management -- how to deploy the same patch set to production as you did to testing 3 weeks ago? (How to "take a snapshot" of an OS patch set)

2011-09-21 Thread Tom Tucker
My company uses the RedHat Satellite server line to achieve this functionality. Obviously this tool comes at cost, maybe you could leverage the SpaceWalk app to provide similar capabilities. We essentially freeze the latest RHEL x.y version to three different software channels. The channels we cre

Re: CFEngine Help: Tracking down a memory leak

2011-09-21 Thread Mikhail Gusarov
On 21.09.2011 17:06, no-re...@cfengine.com wrote: > I'm seeing a memory leak in cf-monitord on one RHEL 5.7 system (virtualized > on VMWare, for what that's worth). It looks like this a few minutes after > it's started: It would help tremendously if you could cf-monitord in foreground mode un

Re: insert_lines content is in reverse order?

2011-09-21 Thread Diego Zamboni
Also, you may want to use empty_file => "true" in the files: promise instead of the delete_lines promises. Probably the same effect but more elegant. --Diego On Sep 21, 2011, at 3:15 PM, Seva Gluschenko wrote: > seems like location => start overrides preserve_block somehow. Of > course, it s

Re: insert_lines content is in reverse order?

2011-09-21 Thread Seva Gluschenko
seems like location => start overrides preserve_block somehow. Of course, it shouldn't. I guess, it's right time to file a bug repport about that. 2011/9/21 : > With 3.2.0, the following: > > = >    delete_lines: >        ".*"; >

insert_lines content is in reverse order?

2011-09-21 Thread jblaine
With 3.2.0, the following: = delete_lines: ".*"; insert_lines: "# ### This file is configured by CFEngine. ### Manually editing the file might le

OS patch management -- how to deploy the same patch set to production as you did to testing 3 weeks ago? (How to "take a snapshot" of an OS patch set)

2011-09-21 Thread Aleksey Tsalolikhin
Situation: public Linux package repositories (for example CentOS) are constantly getting updated by the distro project (e.g. the CentOS developers). New versions are added, old versions removed. How do you "freeze" a set of packages so that when you run "yum update" on a Prod server it'll get th

Re: CFEngine Help: Tracking down a memory leak

2011-09-21 Thread Aleksey Tsalolikhin
On Wed, Sep 21, 2011 at 8:06 AM, sauer wrote: > >  Any suggestions?  Having to restart the process daily is a tad inconvenient. Until you get this resolved, I suggest you configure cf-agent to restart cf-monitord if cf-monitord's memory exceeds a certain threshold. Here is a related example I us

Re: CFEngine Help: how to start a service and make sure it runs after a reboot

2011-09-21 Thread Aleksey Tsalolikhin
Got it, Jerome, thanks for letting me know the background here. You can link promises using if_repaired -- so if snmpd.conf changes, use if_repaired to set a class; another promise can fire off a command (starting snmpd) if that class is set. Aleksey On Wed, Sep 21, 2011 at 8:52 AM, Jerome Yan

RE: CFEngine Help: how to start a service and make sure it runsafter a reboot

2011-09-21 Thread Michael Sphar
I suspect the best approach there is a combination of one promise that says to start it if it is not running, and then another promise that restarts if a custom class is defined such as "restart_snmpd". Then in the smpd.conf copy action have it define restart_snmpd if the file is changed. The

RE: CFEngine Help: how to start a service and make sure it runs after a reboot

2011-09-21 Thread Jerome Yanga
Thank you, Aleksey. I will try this and provide an update. The reason why I would like to create such a configuration change is so that I can make sure that servers that are not being monitored via SNMP are at least configured to be monitored so that the next SNMP discovery will pick up the se

CFEngine Help: Tracking down a memory leak

2011-09-21 Thread no-reply
Forum: CFEngine Help Subject: Tracking down a memory leak Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23558,23558#msg-23558 I'm seeing a memory leak in cf-monitord on one RHEL 5.7 system (virtualized on VMWare, for what that's worth). It looks like this a few minutes after

RE: CFEngine Help: how to start a service and make sure it runs aftera reboot

2011-09-21 Thread Michael Sphar
If you will always start/restart snmpd, is there enough value in testing for it? Why not just issue the service restart command regardless. That will restart it if it's running and start it if it is not, no? As for setting the service to enabled at boot, I would think for that you'd want to

CFEngine Help: Re: Evaluation of bundlesequence with constructed mybundle(@(args))

2011-09-21 Thread no-reply
Forum: CFEngine Help Subject: Re: Evaluation of bundlesequence with constructed mybundle(@(args)) Author: jblaine Link to topic: https://cfengine.com/forum/read.php?3,23499,23556#msg-23556 Seva Gluschenko Wrote: --- > You must import slists local