Re: Write to files - Problem with Examples

2010-04-29 Thread Mark Burgess
You have named the bundle TestWrite, so you must write the reference as files: "/tmp/test_insert" create => "true", edit_line => append_if_no_line("@(TestWrite.lines)"); tktuc...@gmail.com wrote: > I am having troubles using some of the very basic examples listed in the > C3 Solutions guide

Re: Cfengine Help: Re: Write to files - Problem with Examples

2010-04-29 Thread Tom Tucker
Thanks Neil. I switches it from "insert.lines" to "lines" with the following results. # cat /tmp/test_insert @(lines) /var/log/messages Apr 29 23:24:17 usg-admin9902 cf3[12946]: List parameter "lines" not found while constructing scope "append_if_no_line" - use @(scope.variable) in calling ref

Re: how to get the index of a list

2010-04-29 Thread daniel . klein
You probably want to to a classmatch() against the hostname to determine which machine you are on - and take it from there... -Dan > --===0023485862== > Content-Type: multipart/alternative; > boundary="=_Part_150839_55279.1272591905086" > > --=_Part_150839_55279.127259

how to get the index of a list

2010-04-29 Thread liuyidaojian
hi All, We have a partition based system, a list of machines from partition 0 to (n-1) We want to pass partition number to every agent, let them know which partition it is running. how can i achieve this? thanks, php 网易为中小企业免费提供企业邮箱(自主域名)___ Help-c

Cfengine Help: Re: server_copy_remote IPV6 error

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: server_copy_remote IPV6 error Author: rivercross Link to topic: https://cfengine.com/forum/read.php?3,17014,17046#msg-17046 I user "service iptables status ",it shows: Firewall is stopped but it use "telnet 192.168.1.10 6789",it shows: trying 192.168.1.10... t

Cfengine Help: Re: Write to files - Problem with Examples

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Write to files - Problem with Examples Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17043,17045#msg-17045 Your list is called "lines" but you refer to it later as "insert.lines". ___ Help-cf

Cfengine Help: Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Insert a block of text Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17042,17044#msg-17044 I don't edit files in any truly advanced way. Might select region help? http://www.cfengine.org/manuals/cf3-reference.html#se

Write to files - Problem with Examples

2010-04-29 Thread tktucker
I am having troubles using some of the very basic examples listed in the C3 Solutions guide (url below). When testing "3.1 Add lines to a file" the output file contains # cat /tmp/test_insert @(insert.lines) # /var/log/messages List parameter "insert.lines" not found while constructing s

Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread Jesse Becker
On Wed, Apr 28, 2010 at 02:23:04PM -0400, fo...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Insert a block of text >Author: pieterb >Link to topic: https://cfengine.com/forum/read.php?3,17019,17024#msg-17024 > >Is there no way to make Cfengine to treat the bunch of lines as if it were

Re: Cfengine Help: Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread Jesse Becker
On Thu, Apr 29, 2010 at 03:53:47PM -0400, fo...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Cfengine Help: Please add full syslog support to community >edition v.3 >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,17037,17040#msg-17040 > >IIRC Cf2 logged to the

Cfengine Help: Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Please add full syslog support to community edition v.3 Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,17037,17040#msg-17040 IIRC Cf2 logged to the local syslog. Cf3 also does this. The feature Jesse pointed to is remot

Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread Jesse Becker
I think that she's referring to the comments in the code, and reference manual that read "This feature [syslog] is provided in Cfengine Nova and above." See: http://www.cfengine.org/manuals/cf3-reference.html#syslog_005fhost-in-common On Thu, Apr 29, 2010 at 13:10, Mark Burgess wrote: > > Noth

Cfengine 3 tutorial in Boston ...

2010-04-29 Thread Mark Burgess
Represented at the USENIX Annual Tech meeting in Boston http://www.usenix.org/events/config10/ -- Mark Burgess - Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf

Re: Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread Mark Burgess
Nothing that was in cf2 is missing in cf3. I don't understand your remarks. fo...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Please add full syslog support to community edition v.3 > Author: jgreer > Link to topic: https://cfengine.com/forum/read.php?3,17036,17036#msg-17036 > > We ar

Cfengine Help: Please add full syslog support to community edition v.3

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Please add full syslog support to community edition v.3 Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,17036,17036#msg-17036 We are in the process of migrating from cf2 to cf3 and were disappointed to learn that syslog support is now absent from

Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread Michael Potter
Try emptying the file first (edit_defaults) and reconstruct the entire file. This should solve the issue you are running into. On 29/04/2010 10:59 PM, wrote: Forum: Cfengine Help Subject: Re: Insert a block of text Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,17019,17034#

Cfengine Help: Re: Insert a block of text

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Insert a block of text Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,17019,17034#msg-17034 It seems quite obvious that some configuration files require a determined ordering in order to function correctly. I could work around it, but that w

Re: Cfengine Help: Re: Insert a block of text

2010-04-29 Thread Jesse Becker
On Thu, Apr 29, 2010 at 08:41:26AM -0400, fo...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Insert a block of text >Author: Seva Gluschenko >Link to topic: https://cfengine.com/forum/read.php?3,17019,17032#msg-17032 > >From my current discussion with Mark Burgess, Cfengine's developer,

Cfengine Help: Re: Insert a block of text

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Insert a block of text Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,17019,17032#msg-17032 >From my current discussion with Mark Burgess, Cfengine's developer, it seems >like he maintains such approach intentionally. If nobody succe

Cfengine Help: Re: server_copy_remote IPV6 error

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: server_copy_remote IPV6 error Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,17014,17031#msg-17031 Check your iptables configuration to see if the client is allowed to connect to the host on that port. To test this, run 'telnet 192.168.1.10

Cfengine Help: Re: Insert a block of text

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: Insert a block of text Author: pieterb Link to topic: https://cfengine.com/forum/read.php?3,17019,17030#msg-17030 My current code is exactly like this; as you can see there are no double quotes to escape, this cannot be the problem. The block of text gets insert

Cfengine Help: Re: cfengine confused by IPv6?

2010-04-29 Thread forum
Forum: Cfengine Help Subject: Re: cfengine confused by IPv6? Author: rivercross Link to topic: https://cfengine.com/forum/read.php?3,12096,17029#msg-17029 I have the same error when I use cfrun -v Connect to 192.168.1.15 = 192.168.1.15 on port 5308 cfengine:test1: Couldn't look up address v6 for