CFEngine Help: Re: auto-scrolling website

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: auto-scrolling website
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27522,27554#msg-27554

It seems to affect Firefox and IE users. I could not reproduce on Chrome and 
Safari.

* Get to a hash link (#)
* Scroll up to the top
* Scroll down a little bit. You will be redirected to the hash link.
* Disable Javascript works but you always have a search box.

Cheers,
-- Nakarin

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Re: [ANNOUNCE] Mantis -> Redmine

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: [ANNOUNCE] Mantis -> Redmine
Author: Teamnork
Link to topic: https://cfengine.com/forum/read.php?3,27043,27555#msg-27555

Redmine is a flexible project management web aplication. Written using Ruby on 
Rails framework, it is cross-platform and cross-database.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: regcmp() not working correctly?

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: regcmp() not working correctly?
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27556,27556#msg-27556

I have a bundle for disabling services:


bundle agent disable_services(name) {

vars:
  "status" string => execresult("/sbin/chkconfig --list $(name)", "useshell");

classes:
   "service_$(name)_exists" or => { fileexists("/etc/init.d/$(name)"), 
fileexists("/etc/xinetd.d/$(name)") };
   "service_on"  expression => regcmp(".*on.*","$(status)");

commands:
   service_on::
  "/sbin/chkconfig $(name) off", comment => "disable $(name) service", 
ifvarclass => "service_$(name)_exists";

reports:
   service_on::
  "disable $(name) service.", ifvarclass => "service_$(name)_exists";
}


My issue is that even a service such as haldaemon os off, cfagent wants to 
execute /sbin/chkconfig haldaemon off everytime regardless of expression => 
regcmp(".*on.*","$(status)");

# cf-agent -IK
 -> Executing '/sbin/chkconfig haldaemon off' 
...(timeout=-678,owner=-1,group=-1)
 -> Completed execution of /sbin/chkconfig haldaemon off
R: disable haldaemon service.

Happens everytime even if:

# /sbin/chkconfig --list haldaemon
haldaemon   0:off   1:off   2:off   3:off   4:off   5:off   6:off


___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Re: regcmp() not working correctly?

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: Authority
Link to topic: https://cfengine.com/forum/read.php?3,27556,27558#msg-27558

It's matching the "on" in haldaemon.

Perhaps try setting a word boundary in your regex like so: .*\bon\b.*

>From my handy "Regular Expression Pocket Reference":
\b Word boundary; position between a word character (\w) and either a non-word 
character (\W), the start of the string, or the end of the string.

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Re: regcmp() not working correctly?

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,27556,27559#msg-27559

Which version of CFEngine are you running? I have quite a similar bundle to 
disable services and it works fine for me.

I'm running Enterprise 2.2.2 by the way.

# cf-agent -V

   @@@  
   @@@  cf-agent

 @ @@@ @CFEngine Core 3.3.6
 @ @@@ @CFEngine Nova 2.2.2
 @ @@@ @
 @ @
   @@@  
   @ @  
   @ @  
   @ @  

Copyright (C) CFEngine AS 2008-2012
See Licensing at http://cfengine.com/3rdpartylicenses


Cheers,
-- Nakarin

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Re: cf-monitord: "Internal limit 4: Buffer ran out of space constructing string (3970 > 3968)."

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: cf-monitord: "Internal limit 4: Buffer ran out of space 
constructing string (3970 > 3968)."
Author: Charlie
Link to topic: https://cfengine.com/forum/read.php?3,26891,27561#msg-27561

What bug number is it?  I'd like to track it as well.

I'm getting the same error on our production hub server.

Thanks,
Charlie

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Re: regcmp() not working correctly?

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Re: regcmp() not working correctly?
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,27556,27564#msg-27564

Ahh. I think Authority's answer made sense. changing my regex to ".*:on.*" 
solved the problem. I wont make that mistake twice. 
-D

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine Help: Disable telnet with cfengine

2012-09-25 Thread no-reply
Forum: CFEngine Help
Subject: Disable telnet with cfengine
Author: marlonc
Link to topic: https://cfengine.com/forum/read.php?3,27565,27565#msg-27565

Hi

Can we disable or restrict telnet and other ports using cfengine policy? Do you 
have an example??

Thanks...

___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine


CFEngine BoF at Ohio Linux Fest on Friday, 7pm - 8pm

2012-09-25 Thread Aleksey Tsalolikhin
FYI, I've organized a CFEngine BoF at Ohio Linux Fest on Friday, 28
Sep, 7 pm - 8pm in room C121.  (http://www.ohiolinux.org/bofs)

If you'll be at OLF, please come by, I'd love to meet you.

Best,
Aleksey
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine