"empty_file_before_editing" does not appear to work in CFengine 3.0.5p1 ?

2010-08-26 Thread Ed Voncken
Hi all, I've run into an issue with "empty_file_before_editing" not emptying the file when it is being edited by CFengine. I'm trying to achieve the following (based on http://www.cfengine.org/manuals/cf3-solutions.html#Distribute-ssh-keys) * Copy authorized keys from repository * If not present,

Re: "empty_file_before_editing" does not appear to work in CFengine 3.0.5p1 ?

2010-08-26 Thread Seva Gluschenko
Ed, The following line looks dubious to me: edit_defaults => "empty", AFAIR, quotes are only allowed for constants, not for body names. Did you try it without quotes, i.e. edit_defaults => empty, ? 2010/8/26 Ed Voncken : > Hi all, > > I've run into an issue with "empty_file_before_editing" no

Re: "empty_file_before_editing" does not appear to work in CFengine 3.0.5p1 ?

2010-08-26 Thread Ed Voncken
Hi Seva, > The following line looks dubious to me: > edit_defaults => "empty", > > AFAIR, quotes are only allowed for constants, not for body names. Did you try > it without quotes, i.e. Good catch, thank you! This is one major step in the right direction - still grappling with some CFengine 3

Cfengine Help: Re: Tokyocabinet for AIX build

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: Tokyocabinet for AIX build Author: matter Link to topic: https://cfengine.com/forum/read.php?3,17964,17996#msg-17996 To get it to compile dynamically, you could set the LD_LIBRARY_PATH environment variable to the same directory as LD_FLAGS that you set to get it

Cfengine Help: Re: Article on the Configuration Management Summit 2010 now online at www.linux-mag.com

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: Article on the Configuration Management Summit 2010 now online at www.linux-mag.com Author: matter Link to topic: https://cfengine.com/forum/read.php?3,17989,17997#msg-17997 Nice. I was there at the conference a did a little presentation on "Converting an Ad-hoc

Cfengine Help: Re: Multi-homed clients and authentication

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-homed clients and authentication Author: matter Link to topic: https://cfengine.com/forum/read.php?3,17966,17998#msg-17998 I only have a few hosts similar to this. I fake it out on the policy host by creating host aliases /etc/hosts. Also another trick is

Cfengine Help: Re: Article on the Configuration Management Summit 2010 now online at www.linux-mag.com

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: Article on the Configuration Management Summit 2010 now online at www.linux-mag.com Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17989,17999#msg-17999 This is a good comparison Aleksey. It is interesting that there are many CM tools

v3 process matching

2010-08-26 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
Hello all Anyone have this issue, and is there a fix? Thanks - Jim running v3, and notice it uses "/bin/ps -elf" to grap process table. However, each line cuts off at 124 characters on solaris and it fails to match the processes. For example: # /bin/ps -ef | grep cfengine_watch.sh root 13

Cfengine Help: Re: v3 process matching

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: v3 process matching Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18000,18001#msg-18001 I noticed Solairs process matching problems with older versions but I've not looked at 3.0.5p1 yet. Do you have a small test case that we can try?

Cfengine Help: backgrounding methods

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: backgrounding methods Author: matter Link to topic: https://cfengine.com/forum/read.php?3,18002,18002#msg-18002 Greetings, Is it possible to background a whole method? For example, I would like to copy files from several hosts and background each host's copies separ

Cfengine Help: Re: backgrounding methods

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: backgrounding methods Author: matter Link to topic: https://cfengine.com/forum/read.php?3,18002,18003#msg-18003 I suppose I should qualify what the end goal is, rather than a specific example. I have about 300 servers that I collect information from. The copy is

defined classesf

2010-08-26 Thread Sandra Wittenbrock
Hello, I am trying to define a custom class, containing a list of servers. When I attempt to use it, the computer I run from, (hostname1.domain, with ipaddress "relavantip") does not recognize it IS in the class, so the promises are not relevant. I'd appreciate being pointed in the right di

Re: defined classesf

2010-08-26 Thread Mark Burgess
Sandra, try "canonifying" the string hostname1.domain -> hostname1_domain You can see the list of available classes on your machine by typing cf-promises -v Sandra Wittenbrock wrote: > Hello, > > I am trying to define a custom class, containing a list of servers. > When I attempt to use it,

Re: defined classesf

2010-08-26 Thread Sandra Wittenbrock
Yes! That works! Cheers, Sandra Mark Burgess wrote: > Sandra, try "canonifying" the string hostname1.domain -> hostname1_domain > > You can see the list of available classes on your machine by typing > > cf-promises -v > > Sandra Wittenbrock wrote: > >> Hello, >> >> I am trying to define a

Cfengine Help: Re: backgrounding methods

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: backgrounding methods Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18002,18004#msg-18004 What happens if you background the files promise instead? ___ Help-cfengine mailing list Help-cfengine

Cfengine Help: Re: backgrounding methods

2010-08-26 Thread no-reply
Forum: Cfengine Help Subject: Re: backgrounding methods Author: matter Link to topic: https://cfengine.com/forum/read.php?3,18002,18005#msg-18005 I have tried that, and it gets a little squirrely, mostly I need to bump up my max connections. I receive many file transfer changed in transit warning