Sorry, I meant
bundle edit_line resolvconf
Aleksey Tsalolikhin wrote:
> On Tue, Dec 15, 2009 at 1:02 AM, Mark Burgess wrote:
>> And I should have pointed out that the "bundle resolvconf" etc, belongs in
>> the standard
>> library.
>
> Is this why the below does not work? What do I need to do
You are missing
bundle agent resolvconf
Aleksey Tsalolikhin wrote:
> On Tue, Dec 15, 2009 at 1:02 AM, Mark Burgess wrote:
>> And I should have pointed out that the "bundle resolvconf" etc, belongs in
>> the standard
>> library.
>
> Is this why the below does not work? What do I need to do?
>
On Tue, Dec 15, 2009 at 1:02 AM, Mark Burgess wrote:
>
> And I should have pointed out that the "bundle resolvconf" etc, belongs in
> the standard
> library.
Is this why the below does not work? What do I need to do?
myprompt# cf-agent -f ./resolver.cf
cf3:./resolver.cf:33,18: syntax error, ne
I believe this file contains the state of ifelapsed for all promises.
You probably should not delete it, unless you know what you are doing.
You can always run cf-agent or cf-execd with -K if you want to avoid
the locks on a particular run (such as to avoid the default one minute
delay).
On Tue,
Juan,
Can you reach this host 10.20.8.111 via SSH? have you exchanaged keys?
Regards,
Victor Reyes
2009/12/15 Juan Torres :
> [r...@tampico]: # /var/cfengine/bin/cfagent -qvf update.conf
>
> Reference time set to Tue Dec 15 14:56:34 2009
>
>
>
> GNU Configuration Engine -
>
> 2.2.10
>
> Free So
Hi,
in 3.0.2 this file was present in the cfengine direct folder as
cfengine_lock_db, but it seems to have moved to state/cf_lock.db in SVN
trunk.
I don't know exactly the purposes of that file; I know only that it somehow
prevents cf-execd to start if the last cf-execd instance was started less
[r...@tampico]: # /var/cfengine/bin/cfagent -qvf update.conf
Reference time set to Tue Dec 15 14:56:34 2009
GNU Configuration Engine -
2.2.10
Free Software Foundation 1994-
Donated by Mark Burgess, Oslo University College, Norway
---
Heh, I JUST did that, realizing I didn't have that while reading through
config.log. Once I did that, and with a bit of cleanup, I finally got it to
build. :)
Thanks,
Justin
-Original Message-
From: Jarle Bjørgeengen [mailto:ja...@bjorgeengen.net]
Sent: Tuesday, December 15, 2009 2:53
Thanks Everyone for your help...
It seems CFengine3 needs Berkeley DB 4.7.
But pkg_add worked.
Thanks,
Corey
On Tue, Dec 15, 2009 at 16:06, Corey Jones wrote:
> pkg_add -r cfengine3
>
>
> That did the trick.
>
>
> On Tue, Dec 15, 2009 at 15:53, Corey Jones wrote:
>
>> wow! Thanks! but...
>>
>
Did you install the pcre-devel package ?
- Jarle
On Dec 15, 2009, at 10:30 , Justin Lloyd wrote:
> Sorry, I should have mentioned that I did try that.
>
> [jll...@cflinux3:~/cfengine/community/trunk] rpm -ql pcre.i386 |
> grep libpcre
> /lib/libpcre.so.0
> /lib/libpcre.so.0.0.1
> /usr/lib/libp
Apparently I do need both. I can't remove the 64-bit version due to
dependencies (it wants to delete 595 packages if I try that) and I want the
32-bit so I can build cf3 for other Linux systems. Good thought, though.
Justin
-Original Message-
From: nwat...@symcor.com [mailto:nwat...@sy
Sorry, I should have mentioned that I did try that.
[jll...@cflinux3:~/cfengine/community/trunk] rpm -ql pcre.i386 | grep libpcre
/lib/libpcre.so.0
/lib/libpcre.so.0.0.1
/usr/lib/libpcrecpp.so.0
/usr/lib/libpcrecpp.so.0.0.0
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.0
[jll...@cflinux3
Maybe configure --with-libpcre /path/to/32bit/pcre
- Jarle Bjørgeengen
On Dec 15, 2009, at 10:14 , Justin Lloyd wrote:
> When I try to compile from svn and include pcre, I get the following
> error during the make:
>
> In file included from cf3.defs.h:1622,
> from cf3parse.y:1
Do you need both the i386 and x84_64 libs? Perhaps remove one.
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNING
This communication, including any attachments, is for the exclusive use of
addressee and may contain proprietary and/or confidential information. If you
are not the i
When I try to compile from svn and include pcre, I get the following
error during the make:
In file included from cf3.defs.h:1622,
from cf3parse.y:10:
prototypes3.h:1068: error: conflicting types for 'strstr'
prototypes3.h:1071: error: expected identifier or '(' before
'__ex
pkg_add -r cfengine3
That did the trick.
On Tue, Dec 15, 2009 at 15:53, Corey Jones wrote:
> wow! Thanks! but...
>
> cd /usr/ports/sysutils/cfengine3
>
> make install clean
>
>
> error:
>
>
> instrumentation.c: In function 'OpenDB':
> instrumentation.c:426: warning: passing argument 2 of '(*db
wow! Thanks! but...
cd /usr/ports/sysutils/cfengine3
make install clean
error:
instrumentation.c: In function 'OpenDB':
instrumentation.c:426: warning: passing argument 2 of '(*dbp)->open' from
incompatible pointer type
instrumentation.c:426: warning: passing argument 4 of '(*dbp)->open' make
It's also possible to get binaries from the Cfengine.com website for a small
fee.
Brendan Strejcek wrote:
> Actually, pseudo-scratch that:
>
> Update 3.0.1 (3.0.1a7) --> 3.0.2.
>
> Take on maintainership of the port as the maintainer, Jo Rhett
> , can no longer maintain this port.
>
> --
> h
Actually, pseudo-scratch that:
Update 3.0.1 (3.0.1a7) --> 3.0.2.
Take on maintainership of the port as the maintainer, Jo Rhett
, can no longer maintain this port.
--
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/cfengine3/Makefile?rev=1.49
That being said, this looks like it would be r
You also might want to try the official FreeBSD port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/cfengine3/
It looks like it is maintained by Jo Rhett, who is a longstanding
member of the Cfengine community. If I am reading the port page
correctly, it is at version 3.0.1, but it should
you might need to point it to the directory explicitely.
--with-berkeley-db /usr or something like that. Some installations don't find
the libs for
some reason.
Corey Jones wrote:
> Thanks I've tried that.
>
> This is a newly installed 8.0 version of FreeBSD I'm using.
>
> This line in the ./c
Thanks I've tried that.
This is a newly installed 8.0 version of FreeBSD I'm using.
This line in the ./configure output has me concerned the most.
checking Berkeley DB API... checking for db_create in -ldb... no
Thanks,
Corey
On Tue, Dec 15, 2009 at 14:56, Mark Burgess wrote:
>
> Your
Your system is messed up.
Do a
make distclean
./configure
make
Corey Jones wrote:
> I'm also getting this error early when I run make -
>
> getopt.c: In function '_getopt_internal':
> getopt.c:487: warning: incompatible implicit declaration of built-in
> function 'strlen'
> getopt.c:511: warni
I'm also getting this error early when I run make -
getopt.c: In function '_getopt_internal':
getopt.c:487: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:511: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:541: warning: incompa
Freakin' sweet, thanks! I did run into some warnings from the autoreconf
(see below), but otherwise configured and compiled without a problem.
I've never worked with autoconf, etc., though ironically I used to work
with Dave MacKenzie, the author of the original autoconf.
[jll...@cflinux3:~/cfengi
I did have version 4.2 and 4.8 installed.
I ran: pkg_delete db48-4.8.24.0
But I guess it is effecting the build somehow.
Thanks,
Corey
On Tue, Dec 15, 2009 at 14:33, Mark Burgess wrote:
>
> Sounds like you have multiple incompatible versions of Berkeley DB on your
> machine.
>
> Corey Jones
Hmm, edit_field has this:
7.6.1 edit_field (compound body)
Type: (ext body)
"allow_blank_fields"
It seems like getfields needs a similar knob, if one doesn't already exist.
On Tue, Dec 15, 2009 at 10:47 AM, Matt Richards wrote:
> I am looking at getfields and it seems that if you have a null
Sounds like you have multiple incompatible versions of Berkeley DB on your
machine.
Corey Jones wrote:
> Yes, it did.
>
> http://pastie.org/744524
>
> Thanks,
>
> Corey
>
> 2009/12/15 mailto:nwat...@symcor.com>>
>
> Did the configure come out alright? Did if find openssl, pcre and
>
On Tue, Dec 15, 2009 at 03:02:38PM +0100, Patryk Lason wrote:
> Hello,
>
> How can I define a group of classes?
>
> I have something like this:
> -
> classes:
>
>rack_1 or => { "node1_1", "node1_2" };
>rack_2 or => { "node2_1", "node2_2" };
>
>blade or => { "
In this case, you might want to use the following commands
$ aclocal; automake -a -c; autoconf
$ autoreconf --force --install --symlink
$ ./configure
$ make
$ su -c 'make install'
Justin Lloyd wrote:
>
> I’m attempting my first build of cfengine 3 out of svn and it appears
> to want version 1.1
Yes, it did.
http://pastie.org/744524
Thanks,
Corey
2009/12/15
> Did the configure come out alright? Did if find openssl, pcre and
> Berkeley DB?
>
> Sincerely,
> --
> Neil Watson
> 416-673-3465
>
>
>
> CONFIDENTIALITY WARNING
> This communication, including any attachments, is for the exclu
Did the configure come out alright? Did if find openssl, pcre and
Berkeley DB?
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNING
This communication, including any attachments, is for the exclusive use of
addressee and may contain proprietary and/or confidential information. If y
I have a tight deadline, would someone give me some tip or hints so I can
move forward on this?
env_context.c: In function 'NewPersistentContext':
env_context.c:164: warning: passing argument 4 of 'dbp->get' makes integer
from pointer without a cast
env_context.c:164: error: too many arguments t
Hi Justin,
Ideally, you shouldn't need autoconf tools when just running configure
and make scripts.
For some reason you sometimes do (with svn versions), and it matters
much which version of the tools you use.
Personally, I have used the following set with no problems:
m4-1.4.7.tar.bz2
autoconf-
Hi,
Thanks for sharing your experiences.
I don't think graphviz was ever used for anything on the community
version, and it's not even needed for the current Nova release.
It should be removed from the build scripts by the release of 3.0.3
some in January.
--Eystein
On Tue, Dec 15, 2009 at 6:29
I'm attempting my first build of cfengine 3 out of svn and it appears to
want version 1.10 of automake, which starts a whole chain of
dependencies (autoconf, m4, certain functions in rpmlib) that are not
available as updates to RHEL 5. Anyone else have this problem? Is it
required to have the lates
I am looking at getfields and it seems that if you have a null field, the value
in the named array is not populated for that entry. For example:
bundle agent test {
vars:
"passwd_match" int => getfields("^root:.*","/tmp/testfile",":","userdata");
reports:
cfengine_3::
"
On Tuesday 15 of December 2009, you wrote:
> You should have quotes around your "promisers"
>
> "rack_1" or => ...
Yes, I have, it's a manual copy/paste error ;-).
Patryk
--
Patryk Lason
p.la...@cyfronet.pl
phone: (+48 12) 6323355 e.107, http://www.cyfronet.pl
Hmmm. Americans always answer "I'm good" when asked how they are - how's
that in
Toronto? And I do wonder whether Santa agrees with their assessment. I'll be
checking!! ;-)
nwat...@symcor.com wrote:
> Mark Burgess wrote on 2009-12-15 08:59:37:
>
>> The syntax is not tough. It is incredib
You should have quotes around your "promisers"
"rack_1" or => ...
Patryk Lason wrote:
> Hello,
>
> How can I define a group of classes?
>
> I have something like this:
> -
> classes:
>
>rack_1 or => { "node1_1", "node1_2" };
>rack_2 or => { "node2_1", "node2_
Mark Burgess wrote on 2009-12-15 08:59:37:
> The syntax is not tough. It is incredibly simple. One pattern to
> follow for everything.
> You mean that the idea is unfamiliar and the scope is huge. That's
different.
Perhaps. Originally I found the examples were not practical enough for me
to
Hello,
How can I define a group of classes?
I have something like this:
-
classes:
rack_1 or => { "node1_1", "node1_2" };
rack_2 or => { "node2_1", "node2_2" };
blade or => { "rack_1", "rack_2" };
-
And it does not work, here it the erro
I agree, you can't learn other programming languages (like C) overnight.
On Dec 15, 2009, at 8:59 AM, Mark Burgess wrote:
>
> The syntax is not tough. It is incredibly simple. One pattern to follow for
> everything.
___
Help-cfengine mailing list
He
Do you have another bundle or body part elsewhere named 'start'? If not
try to make an entirely self contained example and see if it exhibits the
same behaviour.
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNING
This communication, including any attachments, is for the exclusive
The syntax is not tough. It is incredibly simple. One pattern to follow for
everything.
You mean that the idea is unfamiliar and the scope is huge. That's different.
Watch our for your Christmas promise bundle.
M
nwat...@symcor.com wrote:
> I found the cf3 learning curve to be steep. Indeed t
I found the cf3 learning curve to be steep. Indeed the more I learn the
less I seem to know. The tough syntax is why I wrote my own tutorial.
http://watson-wilson.ca/blog/cf3-tutorial.html
Sincerely,
--
Neil Watson
416-673-3465
CONFIDENTIALITY WARNING
This communication, including any attach
Try upgrading to the latest svn. I think this has to do with the interfaces. It
does not
affect how many cfengines can be running.
M
Miklos Honti wrote:
> Hi,
>
> I found yesterday that if the primary DNS server is missing the running of
> cf-agent -vK slows down and looks like only one cf-ag
Had some strange experiences while trying to write some promises
concerning starting of Unix services (Community 3.0.2). Let me show some
examples:
28 commands:
29
30 "${daemon_path}/${service}"
31 comment => "Executing command '${daemon_path}/${service}
start'",
32
Hi,
I found yesterday that if the primary DNS server is missing the running of
cf-agent -vK slows down and looks like only one cf-agent can run in the same
time. I run the cf-agent -vK command with cssh, so I can see what's going on
quite well. I have about 10 systems in this test environment.
I have just written a promise which checks for the ntpd and starts if it
is not running. I know there are more elegant solutions, but I know that
this example works:
15 bundle agent check_service_running {
16
17 vars:
18 "service" slist => {"ntp"};
19 "daemon_path" string
And I should have pointed out that the "bundle resolvconf" etc, belongs in the
standard
library.
Mark Burgess wrote:
> Try something like this...
>
> CF2
> ---
>
> resolve:
>
> "search iu.hio.no cfengine.com"
>
http://www.cfengine.org/manuals/cf3-reference.html#Rules-are-promises
Aleksey Tsalolikhin wrote:
> What does "promiser" mean, please? I am on PDF page 17 of the
> cfengine 3 tutorial workbook,
> http://www.cfengine.org/manuals/cf3-tutorial.pdf
>
> Line 9, below.
>
> 1 body common con
Try something like this...
CF2 ---
resolve:
"search iu.hio.no cfengine.com"
128.39.89.10
158.36.85.10
129.241.1.99
CF3 ---
vars:
What does "promiser" mean, please? I am on PDF page 17 of the
cfengine 3 tutorial workbook,
http://www.cfengine.org/manuals/cf3-tutorial.pdf
Line 9, below.
1 body common control
2 {
3 bundlesequence => { "fileperms" };
4 }
5 bundle agent fileperms
6 {
7
Well, alright. It's not making sense yet.
I am working my way through the tutorial now
(http://www.cfengine.org/manuals/cf3-tutorial.pdf). Perhaps I'll find
a working example of iteration there.
It's good you'll have something to make this clearer. I reckon it'll
help a lot.
Aleksey
On Tue,
In the approach given, the file is edited twice - once to add each line.
You have to think "sub-routines". Editing is a bundle of promises itself.
My Christmas bundle will help to make this clearer.
Aleksey Tsalolikhin wrote:
> Dear Brendan,
>
> I tried out your code below, expecting it to c
Dear Brendan,
I tried out your code below, expecting it to create
search example.com
nameserver 192.168.1.1
nameserver 192.168.1.2
but it only created:
search example.com
nameserver 192.168.1.1
I am using cfengine 3.0.2 community edition, and calling the code with
"cf-agent -f resolv.cf".
57 matches
Mail list logo