RE: File Transfer

2010-02-25 Thread Zamboni, Diego
Christian, Try reading the cf3 tutorial and reference guides, available from cfengine.org. --Diego From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Seifert, Christian Sent: Friday, February 26, 2010 1:06 AM To: help-cfengine@cfengine.org Subject:

File Transfer

2010-02-25 Thread Seifert, Christian
Hello everybody, for my IT education i have to do a automatically file transfer from a policy server to any client servers with cfengine. Has anyone a hint or an example configuration on his machines which could help me? Regards -- Christian Seifert ___

Re: How to create a rule for a long running task that should not run on all host at once ?

2010-02-25 Thread Erlend Leganger
On 25 February 2010 13:21, wrote: > > May „strategies:“ help me with this? > > > I immediately though of the dist attribute for class promises, but then I saw you are using cf2... However, the dist documentation [1] does mention that it's equivalent to cf2 strategy, so you are probably on the ri

Re: lastseen confusion

2010-02-25 Thread Erlend Leganger
2010/2/24 > I've configured the reported to include last_seen. > body reporter control { >reports => { >"audit", >"performance", >"all_locks", "active_locks", >"hashes", "classes", >"last_seen", >"monitor_now", >"monitor_history", >

Re: Overriding default variables

2010-02-25 Thread Daniel V Klein
If you have a single case, then special:: and !special is better. If you have more than that, then any:: is better :-) > Thanks, Dan. I was hoping that any:: would be better since I may need > additional cases in the future and was hoping to avoid something like: > > !(special|other):: > "d

RE: Overriding default variables

2010-02-25 Thread Justin Lloyd
Thanks, Dan. I was hoping that any:: would be better since I may need additional cases in the future and was hoping to avoid something like: !(special|other):: "dns_search_domains" string => "mydomain.com"; special:: "dns_search_domain" string => "special.mydomain.com mydomain.com"; oth

Re: Overriding default variables

2010-02-25 Thread Daniel V Klein
You need to add policy => 'overridable' in the first promise if you want to specify a default assignment with special overrides. But IMHO, I like the !special class better... -Dan > I want to use the standard resolvconf() bundle but I need a special > search list for certain hosts. I may

Overriding default variables

2010-02-25 Thread Justin Lloyd
I want to use the standard resolvconf() bundle but I need a special search list for certain hosts. I may eventually need more exceptions to the default, so I'm hoping the "any" approach would be fine. any:: # or should this be !special:: ? "dns_search_domains" string => "mydomain.com"; specia

Broken links, hidden files

2010-02-25 Thread Tim Boyer
I'm running 2.21 on a RHEL5.4 system. I've noticed that I have a number of old hidden files pointing back to my main repository. Like so: [r...@tolstoy scripts]# ls -la .#* lrwxrwxrwx 1 root root 33 Dec 30 10:47 .#blockip -> ./r...@buran.denmantire.com.10813 lrwxrwxrwx 1 root root 32 Dec 30 10:3

RE: Splaytime and hostname hashing

2010-02-25 Thread Justin Lloyd
Interesting, I'll poke through this. Thanks! Justin -Original Message- From: C R Ritson [mailto:c.r.rit...@newcastle.ac.uk] Sent: Thursday, February 25, 2010 11:24 AM To: Justin Lloyd; Help-cfengine Subject: RE: Splaytime and hostname hashing A colleague, now retired, wrote the attached

RE: Splaytime and hostname hashing

2010-02-25 Thread C R Ritson
A colleague, now retired, wrote the attached piece of python - clearly you would need to customise this as it does things with our domain name to get the correct string to hash. I hope this helps. Chris Ritson (Computing Officer and School Safety Officer) Room 707, Claremont Tower,EMAIL

RE: Splaytime and hostname hashing

2010-02-25 Thread Justin Lloyd
Ok, I've partially scratched my own itch by adapting the files_hashes.c Hash() function and two associated C #defines from cf3.defs.h into a small Perl script. Given a list of hostnames on standard input, the script below will print out lines of the form "hashvalue = hostname1, hostname2, ..." for

Splaytime and hostname hashing

2010-02-25 Thread Justin Lloyd
The documentation states that splaytime specifies an integer number of minutes by which cf-execd's execution of cf-agent should be delayed. It states the delay is between 0 and splaytime minutes, which to nitpick should really read "0 to (splaytime * 60) seconds", since otherwise it could be misint

Re: Segmentation Fault in cf-agent

2010-02-25 Thread Mark Burgess
Any chance of getting a gdb backtrace? Anders Bruvik wrote: > On 12. jan. 2010, at 19.03, Jordan Redner wrote: > >> I'm receiving a segmentation fault from cg-agent built on Snow Leopard. Has >> anyone seen this one with cfengine 3? >> >> >> cf3 Verifying SQL table promises is only available

Re: Segmentation Fault in cf-agent

2010-02-25 Thread Anders Bruvik
On 12. jan. 2010, at 19.03, Jordan Redner wrote: > I'm receiving a segmentation fault from cg-agent built on Snow Leopard. Has > anyone seen this one with cfengine 3? > > > cf3 Verifying SQL table promises is only available with Cfengine Nova or above > cf3 > cf3 .

Trivial patch to configure.ac

2010-02-25 Thread Jesse Becker
While building from trunk, I got a warning from ./configure: ./configure: line 14956: test: =: unary operator expected The line in question is this: if test $WITH_SQL = 1; then Basically, the WITH_SQL variable isn't properly initialized. Here's a trivial patch to configure.ac to fi

Re: another segfault in cf-agent

2010-02-25 Thread Jesse Becker
On Thu, Feb 25, 2010 at 07:20:37AM -0500, Nakarin Phooripoom wrote: >Which distro are you running? For me, a debug flag didn't be stripped on my >RedHat 4. I'm using this version: I'm running the RPM community binaries: # cf-agent -V This comprises cf-agent core community ver

How to create a rule for a long running task that should not run on all host at once ?

2010-02-25 Thread Andreas.Balg
Hi there, is there any internal mechanism in CFengine (v2) to make sure not all hosts of a certain class run a certain task at once (because it will take them out of service during that time) . For example we have clusters of hosts performing the same service behind a load balancer. Additional

Re: Cfengine 3: Installing Packages from FreeBSD Ports Collection

2010-02-25 Thread Traiano Welcome
Thanks, Nakarin. Funny enough, the freebsd source package doesn't include "unit_package_freebsd.cf", I had to get it from the tarball on cfengine.org :-) Traiano From: Nakarin Phooripoom Date: Thu, 25 Feb 2010 14:03:59 +0200 To: Traiano Welcome Cc: Subject: R

Re: another segfault in cf-agent

2010-02-25 Thread Nakarin Phooripoom
Which distro are you running? For me, a debug flag didn't be stripped on my RedHat 4. Cheers, --Nakarin On Feb 25, 2010, at 1:09 PM, Jesse Becker wrote: > On Thu, Feb 25, 2010 at 12:39:33AM -0500, Mark Burgess wrote: >> >> Jesse - can you please compile with debugging symbols -g so that the >

Re: AW: cf-agent troubleshooting

2010-02-25 Thread Nakarin Phooripoom
It looks like you compiled from a tarball. You might need to recompile with --without-sql or update a version of mysql. Cheers, --Nakarin On Feb 25, 2010, at 1:13 PM, Seifert, Christian wrote: > No i have not a "lib" folder in my /var/cfengine directory... > Should I have one to run cf-agent pr

AW: cf-agent troubleshooting

2010-02-25 Thread Seifert, Christian
No i have not a "lib" folder in my /var/cfengine directory... Should I have one to run cf-agent properly? -- Christian Seifert Basistechnologie und Betrieb GESIS Gesellschaft für Informationssysteme mbH Eisenhüttenstraße 99 38239 Salzgitter Internet www.gesis.de -- GESIS Gesellschaft für In

Re: another segfault in cf-agent

2010-02-25 Thread Jesse Becker
On Thu, Feb 25, 2010 at 12:39:33AM -0500, Mark Burgess wrote: > >Jesse - can you please compile with debugging symbols -g so that the backtrace >shows some >details? Yep, that's on my list for today. Perhaps the RPMs could have the debugging information left in place? The gain from stripping the

Re: Cfengine 3: Installing Packages from FreeBSD Ports Collection

2010-02-25 Thread Nakarin Phooripoom
There might be an example for FreeBSD in a tarball:/test/units/unit_package_freebsd.cf, I guess. Cheers, --Nakarin On Feb 25, 2010, at 11:03 AM, Traiano Welcome wrote: > Hi List > > How would I construct a bundle to add packages to a freebsd system using the > Ports collection? I see the CF3

Re: cf-agent troubleshooting

2010-02-25 Thread Nakarin Phooripoom
Is there any shared libraries in /var/cfengine/lib? If so, you might need to do something with ldconfig, add the lib folder and re-run ldconfig. Cheers, --Nakarin On Feb 25, 2010, at 12:40 PM, Seifert, Christian wrote: > Hello, > i want to start cf-agent on my policy or client server and get th

cf-agent troubleshooting

2010-02-25 Thread Seifert, Christian
Hello, i want to start cf-agent on my policy or client server and get this message: /var/cfengine/bin/cf-promises: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory Should I install the newest version of mysql or what is the pr

Cfengine 3: Installing Packages from FreeBSD Ports Collection

2010-02-25 Thread Traiano Welcome
Hi List How would I construct a bundle to add packages to a freebsd system using the Ports collection? I see the CF3 Solutions list provides an example for Solaris and SuSE, but I can't find anything on the internet for installing freebsd packages. I'd like to somehow adapt the solution prese