Re: using copy_from help

2010-01-13 Thread Neil Watson
On Wed, Jan 13, 2010 at 04:54:59PM -0800, michoski wrote: >Expense isn't really part of the equation here -- part of what I wanted to >point out -- most people have load balancers around already (for their I'm sure where you work there is a lot of net gear available ;) Most of us are not so lucky

Re: copy and file perms

2010-01-13 Thread Neil Watson
Tonight I build cf again from the latest trunk and now perms are not altered unexpectedly. Did I make a mistake last night or was something fixed in SVN today? -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca ___ Help-cfengine mailing list

Re: using copy_from help

2010-01-13 Thread michoski
Expense isn't really part of the equation here -- part of what I wanted to point out -- most people have load balancers around already (for their website or other applications), and if not they at least have Linux boxes and get load balancing for free. Do you mean the expense of configuring it all

Re: using copy_from help

2010-01-13 Thread Neil Watson
Loading balancing and redundancy are two separate requirements. Sometimes the merge but not always. Most of the load in Cfengine is on the client so the server is not typically very busy. It is nice to have a redundant server in case of failure but I don't think that a load balancer is often wort

package_file_repositories functionality not implemented?

2010-01-13 Thread Diego Zamboni
Hi, Just getting started with cfengine. I am trying to verify that a certain package is installed (rpm on a SLES9 system), and if it’s not, install it from an rpm file stored in /usr/src/packages/RPMS. From my understanding of the documentation, package_file_repositories in the package_method body

Same package with different archs

2010-01-13 Thread Patryk Lason
Hi, can anyone give me a working example for installing the same package with two different archs? I have sth like this: # yum list all | grep glibc-devel glibc-devel.x86_64 2.5-42installed glibc-devel.i3862.5-42

Re: using copy_from help

2010-01-13 Thread michoski
Curious -- Why not just load balance N policy hosts, which appear as one "server" (cfservd VIP) to clients (thereby requiring no special configuration). Some would argue this is best practice for any large org, and free load balancing solutions are available and widely used for those without a bud

Re: using copy_from help

2010-01-13 Thread NWatson
I was teaching him to fish :) Seriously if anyone uses multiple servers in production and has tested failover I'd love to hear about your experience. Sincerely, -- Neil Watson 416-673-3465 Mark Burgess wrote on 2010-01-13 14:15:07: > > To follow up from Neil, try setting localhost as your f

Re: using copy_from help

2010-01-13 Thread Mark Burgess
To follow up from Neil, try setting localhost as your failover server nwat...@symcor.com wrote: > The 'servers' option in the copy_from body takes an array of servers. > http://www.cfengine.org/manuals/cf3-reference.html#copy_005ffrom-in-files > > Sincerely, > -- > Neil Watson > 416-673-3465 >

Re: using copy_from help

2010-01-13 Thread NWatson
The 'servers' option in the copy_from body takes an array of servers. http://www.cfengine.org/manuals/cf3-reference.html#copy_005ffrom-in-files Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee a

using copy_from help

2010-01-13 Thread Mahmoud Hanafi
I would like to configure copy_from to first try using a external server if thats not available then use local filesystem. How can I set this up. Thanks, Mahmoud ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/

Re: Patch correction for repair-denied

2010-01-13 Thread Mark Burgess
Thanks. patched Nicolas Charles wrote: > Hi, > > There was a minor typo in attributes.c preventing from setting the > repair-denied classes. > Attached, the patch (my first patch !) > > Regards, > Nicolas > > > > >

Re: copy and file perms

2010-01-13 Thread NWatson
My point is that the promise is still changing permissions even though no permissions are specifically promised. It seems that the agent defaults to setting the target permissions to match the source permissions. Sincerely, -- Neil Watson 416-673-3465 help-cfengine-boun...@cfengine.org wrote o

Re: Validation error for restart_class rvalue

2010-01-13 Thread Jim Lawson
Just so. Thanks very much, Mark. Jim On 1/13/10 1:27 AM, Mark wrote: > You probably have not managed to compile with PCRE. > > > Mark > > > On 13 Jan 2010, at 04:24, Jim Lawson wrote: > >> Hi help-cfengine, >> >> I am just getting started with Cf3. I was fiddling with some of the >> examples u

Re: Validation error for restart_class rvalue

2010-01-13 Thread Nakarin Phooripoom
Um... it doesn't happen to me. cfengine-3.0.3 phnakarin$ sudo /tmp/cfengine-3.0.3/src/cf-promises -f /usr/local/share/doc/cfengine/unit_update.cf cfengine-3.0.3 phnakarin$ sudo /tmp/cfengine-3.0.3/src/cf-promises -V This comprises cf-promises core community version 3.0.3 - (C) Cfengine AS 2008- c

Patch correction for repair-denied

2010-01-13 Thread Nicolas Charles
Hi, There was a minor typo in attributes.c preventing from setting the repair-denied classes. Attached, the patch (my first patch !) Regards, Nicolas --- attributes.c.old 2010-01-13 12:36:10.707855237 +0100 +++ attributes.c 2010-01-13 12:36:14.837848642 +0100 @@ -600,7 +600,7 @@ struct DefineC

Re: Validation error for restart_class rvalue

2010-01-13 Thread bernd . adamowicz
I'm getting the same messages with 3.0.3: Validation: Scalar item in restart_class => { start_cf_monitord } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) Validation: Scalar item in restart_class => { start_cf_serverd } in rvalue is out of bounds (value should matc

Re: Splay over a custom interval

2010-01-13 Thread Mark Burgess
I guess this is not yet implemented for other intervals, but it would not be too hard to do, just finding the time Nicolas Charles wrote: > Hi, > > I'm trying to splay a large file copy over a large time interval (like > several days). Splayclass allows for splaying only in a day or an hou

Re: copy and file perms

2010-01-13 Thread Mark Burgess
I'm not sure what you are saying here. Neil Watson wrote: > On Mon, Jan 11, 2010 at 07:28:58AM +0100, Mark Burgess wrote: >> >> Neil. You are correct that this option was not implemented. The >> default value of all >> boolean type /true/false options is always false, so preserving >> original pe