is Cfengine working for heterogeneous cluster

2010-03-02 Thread liuyidaojian
hi All, We have many sub systerms, totally hundreds of machines. There are tens of different cron jobs running on these machines, is cfengine fit for managing different machines(promise is diff) in a central way? Maybe we can just divide them into homogenous groups? thanks, php ___

Re: lastseen confusion

2010-03-02 Thread milo...@gmail.com
> Why not include this in the documentation, then I wouldn't have had to ask > these all these questions? On the top of this page: Cfengine 3.0.4 This hasn't been released yet, so it seems for me the guys work hard to update they doc and Mark gave you an early access to the updated doc. Thank y

Re: Cfengine and Xen Configuration!

2010-03-02 Thread milo...@gmail.com
> > > I wonder some one has any tutorial guide on that. > > Thanks in advance for help! > > What are you looking for exactly? As far as I know other than some build-in classes CFEngine does not really care if it's a VM or a physical hardware. I run CFEngine on KVM based VMs with no special setti

Re: lastseen confusion

2010-03-02 Thread Erlend Leganger
On 2 March 2010 10:48, milo...@gmail.com wrote: > > > This hasn't been released yet, so it seems for me the guys work hard > to update they doc and Mark gave you an early access to the updated > doc. > > Which "updated doc" did I get early access to? I have searched the docs I know of without fin

Re: lastseen confusion

2010-03-02 Thread Mark Burgess
What I sent you was quoted from the docs. The problem with docs is both when there is too little and too much. M Erlend Leganger wrote: > On 2 March 2010 10:48, milo...@gmail.com > mailto:milo...@gmail.com>> wrote: > > > > This hasn't been released yet, so it s

Re: lastseen confusion

2010-03-02 Thread Erlend Leganger
On 2 March 2010 12:23, Mark Burgess wrote: > > What I sent you was quoted from the docs. The problem with docs is both > when there is too > little and too much. > > Yes, I know what you sent me - I pasted the referenced text into the test file I used and it worked fine, I just needed at little p

Re: is Cfengine working for heterogeneous cluster

2010-03-02 Thread NWatson
I think that Cfengine can probably help you. Take a look at the tutorial to get an idea how it works. Try some examples and post your questions here. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of ad

Re: Basic string replacement

2010-03-02 Thread NWatson
I don't think there is a function at present for string search a replace actions out side of file editing. Perhaps look at it from a higher level. Why is string manipulation needed? Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments,

Re: lastseen confusion

2010-03-02 Thread milo...@gmail.com
> Which "updated doc" did I get early access to? I have searched the docs I The one you got the example from. > know of without finding too much on cf-report, but maybe I overlooked > something? And I will happily joint in thanking the team, but there is > always room for improvement. That is ve

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
On Tue, Mar 02, 2010 at 08:33:15AM -0500, nwat...@symcor.com wrote: >I don't think there is a function at present for string search a replace >actions out side of file editing. Perhaps look at it from a higher level. > Why is string manipulation needed? There are two reasons, one specific, and

Re: Basic string replacement

2010-03-02 Thread NWatson
canonify will change /path/to/file to path_to_file. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended reci

Re: Basic string replacement

2010-03-02 Thread Mark Burgess
Why don't you use the expand_template method for file editing? M Jesse Becker wrote: > On Tue, Mar 02, 2010 at 08:33:15AM -0500, nwat...@symcor.com wrote: >> I don't think there is a function at present for string search a replace >> actions out side of file editing. Perhaps look at it from a

Re: Basic string replacement

2010-03-02 Thread Daniel V Klein
Speaking just for myself (and not cfengine today), I think this is a good idea. As long as you're at it, you probably want a tolower() and toupper() function. You can get "ignore case" on regular expression matching with PCRE '(?i)', but converting to lower or to upper on output is harder (and if y

escape() function unknown?

2010-03-02 Thread Jesse Becker
Given this bundle: bundle agent escape_test { vars: 'string' string => "This'string_has\\stuff!\"in.it."; 'escaped' string => escape(${string}); reports: linux:: "String=${string}${const.n}Escaped=${escaped}"; } A bit contrived, perhaps, but based on http://www.cfengine.org/

Re: escape() function unknown?

2010-03-02 Thread Mark Burgess
Sorry, the docs are updated against svn currently, or you can wait a few days for 3.0.4 Jesse Becker wrote: > Given this bundle: > > bundle agent escape_test { > > vars: > 'string' string => "This'string_has\\stuff!\"in.it."; > 'escaped' string => escape(${string}); > > reports: >

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
On Tue, Mar 02, 2010 at 10:45:32AM -0500, Mark Burgess wrote: > >Why don't you use the expand_template method for file editing? I already do. I am working on writing several things "around" this, so that I canget to calling expand_template in a generalized bundle, instead of duplicating many line

Re: escape() function unknown?

2010-03-02 Thread Jesse Becker
On Tue, Mar 02, 2010 at 11:22:41AM -0500, Mark Burgess wrote: > >Sorry, the docs are updated against svn currently, or you can wait a few days >for 3.0.4 No worries. I actually saw this a few days ago, but didn't report it because I figured it hadn't made it into SVN yet. But when I tried SVN t

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
On Tue, Mar 02, 2010 at 10:58:35AM -0500, Daniel V Klein wrote: >Speaking just for myself (and not cfengine today), I think this is a good idea. That's good to hear--there's at least one other crazy person here! :-) >As long as you're at it, you probably want a tolower() and toupper() function.

RE: Can't use host name regexps with trustkeysfrom

2010-03-02 Thread Assarsson, Emil
Hi, This is my finding about using hostnames and dynamic IPs in cf3. I have pounding the configuration with all possible variations. If someone can prove me wrong and show me how to get it to work I would be most happy. Please note that I'm not using trunk from SVN; Using 3.0.3 - To get the ser

Re: Basic string replacement

2010-03-02 Thread Daniel V Klein
> That's good to hear--there's at least one other crazy person here! :-) That's me, crazy... > >As long as you're at it, you probably want a tolower() and toupper() functio > n. > > And, left(), right(), substr(), length(), sprintf(), s///, and others. No. left/right/substr are from before re

Re: Basic string replacement

2010-03-02 Thread Jesse Becker
On Tue, Mar 02, 2010 at 12:28:25PM -0500, Daniel V Klein wrote: >> That's good to hear--there's at least one other crazy person here! :-) > >That's me, crazy... > >> >As long as you're at it, you probably want a tolower() and toupper() functio >> n. >> >> And, left(), right(), substr(), length(),

Re: Basic string replacement

2010-03-02 Thread Les Mikesell
On 3/2/2010 11:28 AM, Daniel V Klein wrote: > > Cfengine is not a programming language - it may have some language-like > features, but it is not a programming language. How can something that controls what a program does not best be understood as a programming language? -- Les Mikesell

Multiple cf-execd processes

2010-03-02 Thread Prashanth . Garani
In one of my development configurations, I have a problem of having multiple cf-execd processes being spawned, very much similar to that discussed in the mail thread in the following URL: http://www.mail-archive.com/help-cfengine@cfengine.org/msg00682.html Request to please point me towards an

Re: Multiple cf-execd processes

2010-03-02 Thread NWatson
How are you spawning multiple cf-execd's? In the thread you quoted I wanted to make sure that cf-execd was running but that cf-execd -F was not counted when considering that promise. Thus the negative look ahead regex. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This com

Re: Multiple cf-execd processes

2010-03-02 Thread Michael Potter
I gave up trying to manage cf-execd with cfengine itself. I know use Solaris SMF to manage all my services, for stopping, starting and restarting if they crash. In fact, the only interaction between cfengine and services in my current config is for cfengine to restart a SMF service if a config file

Changing Variable Based on Class

2010-03-02 Thread Bruce Carleton
I'm modifying the example bundle agent to change root passwords. I need to set a different password hash based on class. Are there any cf3 examples out there that would show something similar? Thanks, --Bruce _

Re: Multiple cf-execd processes

2010-03-02 Thread Mark Burgess
Since you provide no information to work with, all I can say is "upgrade and good look". M prashanth.gar...@kofc.org wrote: > > In one of my development configurations, I have a problem of having > multiple cf-execd processes being spawned, very much similar to that > discussed in the mail thr

RE: Changing Variable Based on Class

2010-03-02 Thread Bruce Carleton
I'm embarrassed, this was too easy: bundle agent site_root_password { vars: no_passwd:: "passwd_hash" string => "x"; some_class:: "passwd_hash" string => "somehash"; files: "/tmp/shadow" comment => "Set the local pass