$(match.1) with comment_lines_containing

2012-01-09 Thread Seifert, Christian
Hello, is this a bug in cfengine? I can not see any mistakes... This is my promise: bundle agent set_sudoers { files: "/etc/sudoers" create => "true", perms => mog("0440","root","root"), edit_line

AW: if assignment in cfengine

2012-01-04 Thread Seifert, Christian
This solution works very well for me. Thanks a lot! -Ursprüngliche Nachricht- Von: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] Im Auftrag von Nick Anderson Gesendet: Mittwoch, 4. Januar 2012 15:21 An: help-cfengine@cfengine.org Betreff: Re: if assignment

if assignment in cfengine

2012-01-04 Thread Seifert, Christian
Hello everybody, i have a simple question about the syntax in cfengine. I want to configurate the snmpd.conf on many systems in my it-infrastructure. For this task, I make changes on the snmp config file on the systems. After that, the snmd service should do a restart. The problem is followin

execresult

2011-11-14 Thread Seifert, Christian
Hello everybody, i want to use the function "execresult" to write the hostname in a variable. Here is my example: vars: "hostname" string => execresult("/bin/hostname","noshell"); Can I use the execresult function in the newest version of cfengine? Regards -- Christia

AW: sshd_conf managing with cfengine

2010-11-15 Thread Seifert, Christian
steme mbH | Sitz der Gesellschaft: Salzgitter | Registergericht: Amtsgericht Braunschweig | Registernummer: HRB 6194 | Geschäftsführer: Dipl.-Kfm. Ewald Kratz Von: Nakarin Phooripoom [mailto:mynameisje...@gmail.com] Gesendet: Freitag, 12. November 2010 12:20 An: S

sshd_conf managing with cfengine

2010-11-12 Thread Seifert, Christian
Hello everybody, I want to managing some configuration files of my system. For example the file sshd_conf. I want to edit the line "PermitRootLoging yes". In this line there has to be no comment - no # sign. I think i should use the bundle "edit_line uncomment_lines_matching(regex,comment)", but i

recurse undeclared

2010-03-22 Thread Seifert, Christian
Thats part of my promises.cf to copy the cfengine folder to a client. But when i start cf-agent it copies only the folder without the files inside. body depth_search recurse { depth => "inf"; } bundle agent test { files: "/tmp/cfengine" copy_from => mycopy("/tmp/cfeng

synchronize a folder

2010-03-19 Thread Seifert, Christian
Hello everybody, i want to sync recursive a folder on my policy server to every client in my network infrastructure. Can someone tell me the command for that? -- Christian Seifert Bastechnologie und Betrieb GESIS Gesellschaft für Informationssysteme mbH Eisenhüttenstraße 99 38239 Salzgitter E

AW: AW: AW: Remote Access

2010-03-01 Thread Seifert, Christian
itter | Registergericht: Amtsgericht Braunschweig | Registernummer: HRB 6194 | Geschäftsführer: Dipl.-Ing. Günter König -Ursprüngliche Nachricht- Von: Nakarin Phooripoom [mailto:mynameisje...@gmail.com] Gesendet: Montag, 1. März 2010 15:07 An: Seifert, Christian Cc: help-cfengine@cfengine.

AW: AW: Remote Access

2010-03-01 Thread Seifert, Christian
ternummer: HRB 6194 | Geschäftsführer: Dipl.-Ing. Günter König -Ursprüngliche Nachricht- Von: nwat...@symcor.com [mailto:nwat...@symcor.com] Gesendet: Montag, 1. März 2010 14:58 An: Seifert, Christian Cc: help-cfengine@cfengine.org Betreff: Re: AW: Remote Access "

AW: Remote Access

2010-03-01 Thread Seifert, Christian
onssysteme mbH | Sitz der Gesellschaft: Salzgitter | Registergericht: Amtsgericht Braunschweig | Registernummer: HRB 6194 | Geschäftsführer: Dipl.-Ing. Günter König -Ursprüngliche Nachricht- Von: nwat...@symcor.com [mailto:nwat...@symcor.com] Gesendet: Montag, 1. März 2010 14:47 An: Seifert, Ch

Remote Access

2010-03-01 Thread Seifert, Christian
Hello, I've added the following lines to my promises.cf on the server: body runagent control { hosts => { "172.24.1.58" }; } After that I get the following message if I run "cf-runagent -v": cf3 ... cf3 * Hailing 172.

File Transfer

2010-03-01 Thread Seifert, Christian
Hello everybody, i've succesfully tested the file transfer between my host und my policy server. My problem is: I have a file on my server test.txt I can transfer this file from my server to a client if I started the server with the command "cf-serverd -v" and the client with "cf-agent". But the c

file transfer the 2nd try

2010-02-26 Thread Seifert, Christian
Here ist my configuration: cf-serverd.cf on the policy server: body server control { trustkeysfrom => { "172.24.1.58" }; allowconnects => { "172.24.1.58" }; maxconnections => "10"; logallconnections => "true"; } bundle server access_rules { access: "/srv/cf-serverd" ad

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 ___

AW: cf-agent troubleshooting

2010-02-25 Thread Seifert, Christian
erstag, 25. Februar 2010 13:01 An: Seifert, Christian Cc: help-cfengine@cfengine.org Betreff: Re: cf-agent troubleshooting 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

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