Re: defining classes

2010-05-05 Thread Sandra Wittenbrock
Thanks for all the helpful suggestions! Sandra Nakarin Phooripoom wrote: Also we can use function classify() to transform the fq hostname to canonical form. :-) "policy_hosts" expression => classify("cfengine.domain.com"), handle => "global_classes"; "policy_hosts

RE: defining classes

2010-05-05 Thread Justin Lloyd
Wait, my suggestion worked? It looks like I left out the "or" so I'm surprised it worked. :P Oh well, and by the looks of it, Seva and Nakarin's suggestions were more thorough than mine. :) Justin -Original Message- From: Sandra Wittenbrock [mailto:san...@hpcrd.lbl.gov] Sent: Wednesday,

Re: defining classes

2010-05-05 Thread Sandra Wittenbrock
Thank you for the helpful suggestions. wrote: Hello Sandra, First of all, common bundles don't need to be included into the bundlesequence. Next, the whole policy_hosts construction looks dubious. What did it mean to be, compound match or single? The following would fit better:

Re: defining classes

2010-05-05 Thread Nakarin Phooripoom
Also we can use function classify() to transform the fq hostname to canonical form. :-) "policy_hosts" expression => classify("cfengine.domain.com"), handle => "global_classes"; "policy_hosts" or => {classify("cfengine.domain.com")}, handle => "global_clas

Re: defining classes

2010-05-05 Thread Sandra Wittenbrock
Justin, Thanks for the swift response. And your suggestion worked! It was that easy. Sandra Justin Lloyd wrote: Sandra, The one thing that initially catches my eye is your definition of the policy_hosts class. In your class list, you have a fully-qualified hostname with dots but Cfengine "c

Re: defining classes

2010-05-05 Thread Сева Глущенко
Hello Sandra, First of all, common bundles don't need to be included into the bundlesequence. Next, the whole policy_hosts construction looks dubious. What did it mean to be, compound match or single? The following would fit better: classes: "policy_hosts" expression => "cfengine_domain_com

RE: defining classes

2010-05-05 Thread Justin Lloyd
Sandra, The one thing that initially catches my eye is your definition of the policy_hosts class. In your class list, you have a fully-qualified hostname with dots but Cfengine "canonifies" all classes, turning dots and other non-alphanumeric characters (dashes, etc.) into underscores. So try this

defining classes

2010-05-05 Thread Sandra Wittenbrock
Hello, I've been playing with cfengine for a while, copying configurations, and running them on my systems. Now I need to make then do what I need them to do. For this I need to define classes. I've been able to use hard classes to select when some bundles are run, however I've been unable to

Cfengine Help: Re: reports and ifvarclass

2010-05-05 Thread forum
Forum: Cfengine Help Subject: Re: reports and ifvarclass Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,13968,17105#msg-17105 Instead of linux|!linux, I created an 'all' class that matches 'any'. This removes the problem of the agent warning about using the any class fo

Re: reports and ifvarclass

2010-05-05 Thread Nicolas Charles
Hi, I'm unearthing this old subject because I'm facing a similar issue. I'm reading a list of data from a file, and using the values read to copy some files. I'd like to have a fine tuned control and report for each file (it's a resource consuming process, that I don't want to be done over aga

Cfengine Help: cf-serverd: !! tchdbopen: Opening database "/var/cfengine/cf_LastSeen.tcdb" failed: threading error

2010-05-05 Thread forum
Forum: Cfengine Help Subject: cf-serverd: !! tchdbopen: Opening database "/var/cfengine/cf_LastSeen.tcdb" failed: threading error Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17103,17103#msg-17103 Hello folks, I'm getting the threading error message on my policy