Re: cf3-quickstart still mentions BerkeleyDB as prereq?

2012-08-03 Thread Erlend Leganger
Great, I will check into this, but I fear the usual Solaris dependency hell, hehe... - ErlEnd On 3 August 2012 08:02, Bas van der Vlies wrote: > Erland, > > There are Solaris packages available on: > * http://www.opencsw.org/packages/CSWcfengine3utils > > regards > > > > -- >

Re: cf3-quickstart still mentions BerkeleyDB as prereq?

2012-08-03 Thread Erlend Leganger
> Thanks, > --Diego > > > On Aug 2, 2012, at 4:47 PM, Erlend Leganger wrote: > >> Checking [1] for looking into how to compile cf3 v3.3/.xv3.4.x on >> Solaris 10, I find "Prior to installing CFEngine, you should first >> ensure that the following packages ar

cf3-quickstart still mentions BerkeleyDB as prereq?

2012-08-02 Thread Erlend Leganger
Checking [1] for looking into how to compile cf3 v3.3/.xv3.4.x on Solaris 10, I find "Prior to installing CFEngine, you should first ensure that the following packages are installed: - OpenSSL - Open source Secure Sockets Layer for encryption. - BerkeleyDB (version 3.2 or later) - Lightweight flat-

Re: CFEngine Help: Thoughts about some cfengine design decisions?

2011-12-16 Thread Erlend Leganger
And here is another thing I'd like to see: When learning cf3, I always had problems figuring out which names were part of the language and which were user defined. For example, my previous example read: ...       depth_search => recurse, ... body depth_search recurse {    depth => "inf"; } I alway

Re: CFEngine Help: Thoughts about some cfengine design decisions?

2011-12-16 Thread Erlend Leganger
On 16 December 2011 09:49, Mark Burgess wrote: > As a teacher of many years I will share an experience that sounds > arrogant but which is very true: people are rarely the best judge of > what is good for them unless they have thought very, very carefully > about everything. Most of us react inst

Re: CFEngine Help: Thoughts about some cfengine design decisions?

2011-12-16 Thread Erlend Leganger
ich led > to chaos and feature creep. > > The goal of cf3 core is to be small and stable. We are looking at other > mechanisms to simplify body templating. > > -- > Sent from my Android phone with probably ridiculous and involuntary > spelling corrections > > Erlend L

Re: CFEngine Help: Thoughts about some cfengine design decisions?

2011-12-15 Thread Erlend Leganger
2011/12/14 Ted Zlatanov > > "$(crond)/cfrun" > perms => "{ mode: 644, owners: ['root'] }"; > A definitive +1 - as a Perl user, I've always missed this syntax shortcut. It's compact and readable - I can't see any drawbacks with it. - Erlend _

Re: CFEngine Help: Thoughts about some cfengine design decisions?

2011-12-15 Thread Erlend Leganger
On 14 December 2011 09:45, wrote: > reports: > any:: > > This is not allowed, if you didn't know it yet. Still what everybody does > now is this: > > reports: > cfengine:: > I knew about the any:: restriction, but not the workaround - thanks! - Erlend _

Re: Minimal Cfengine Configuration

2011-11-01 Thread Erlend Leganger
On 1 November 2011 04:19, Robert Carleton wrote: > I renamed recurse(d) to myrecurse(d) and put it in update.cf. > And renaming to something that is clearly not part of cfe is also a very good idea, I had (still have?) a hard time understanding what was part of the language and what was not. In

Re: Minimal Cfengine Configuration

2011-10-31 Thread Erlend Leganger
On 31 October 2011 14:31, Robert Carleton wrote: > Suggest you move "body depth_search recurse" from failsafe.cf into > update.cf, it is used in update.cf and not in failsafe.cf. > > > body depth_search recurse(d) is defined in both failsafe.cf and > cfengine_stdlib.cf. The definition in failsaf

Re: Minimal Cfengine Configuration

2011-10-30 Thread Erlend Leganger
On 31 October 2011 02:15, Robert Carleton wrote: > Please let me know if there are any suggestions, comments or questions. Suggest you move "body depth_search recurse" from failsafe.cf into update.cf, it is used in update.cf and not in failsafe.cf. - Erlend

Re: CFEngine Help: CFEngine 3.2.3 source code released

2011-10-28 Thread Erlend Leganger
What a good way to start a Friday! - Cfe v3.2.3 compiled and installed without a single hitch on Solaris 10 SPARC. The Cfe upgrade from 3.2.1 to 3.2.3 was the smoothest ever here in my corner... Thanks guys! - Erlend On 25 October 2011 18:41, wrote: > Forum: CFEngine Help > Subject: CFEngine 3

Re: Cannot download source code from the website

2011-10-11 Thread Erlend Leganger
It works for me: Go to http://cfengine.com/source-code, then click on for example cfengine-3.2.1.tar.gz to get the tarball. - Erlend On 11 October 2011 10:22, Nicolas Charles wrote: > When I try to download the source code of CFEngine 3, I arrive on the > following page : > > http://cfengine.com

Re: Cfe v3.2.0 for Solaris 10 and HP-UX?

2011-09-20 Thread Erlend Leganger
Just to tick off this one as well - here's a hypothetical answer to this question: "The problems identified when compiling v3.2.0 on Solaris and HP-UX will be fixed in v3.2.1, planned for release medio September 2011". - Erlend On 31 August 2011 19:19, Erlend Leganger wrote:

Re: cfe binaries update spread out on multiple cf-agent runs

2011-09-20 Thread Erlend Leganger
On 12 September 2011 08:45, Erlend Leganger wrote: > it took several runs of cf-agent to update all the cfe binaries on the > clients FYI - this did not happen on v3.2.1, then all binaries were updated in the first cf-agent run on all the servers I checked, as they always have been. I ha

Re: Announcements: CFEngine Community 3.2.1 is released

2011-09-20 Thread Erlend Leganger
CFEngine Community 3.2.1 compiles ok on Solaris 10. - Erlend On 19 September 2011 23:06, wrote: > Forum: Announcements > Subject: CFEngine Community 3.2.1 is released > Author: mark > Link to topic: https://cfengine.com/forum/read.php?1,23543,23543#msg-23543 > > This patch release corrects a fe

Re: Still getting "Challenge response...incorrect!" in cfe3.2.0b3

2011-09-18 Thread Erlend Leganger
in the 6 days I have run with 3.2.0). I did not change anything apart from the version upgrade, so something changed between 3.2.0b3 and 3.2.0 which made this problem almost go away - thanks! - Erlend On 16 August 2011 19:37, Erlend Leganger wrote: > No takers? I got tired of the false positi

cfe binaries update spread out on multiple cf-agent runs

2011-09-11 Thread Erlend Leganger
After manually adding the bugfix in cfe community v3.2.0 so it would compile on Solaris 10, I noticed that it took several runs of cf-agent to update all the cfe binaries on the clients. I don't think it was like that before. Is this intentional? It doesn't seem to do any harm, but I wonder what ma

Re: CFEngine Help: Re: cf3 inputs, branching, selectiveness, staying sane

2011-09-10 Thread Erlend Leganger
On 10 September 2011 21:20, Mark Burgess wrote: > Where does this myth come from that CFEngine does not allow trailing > commas? I think you will find that this has been the case since 3.0.x where > x is a small number. Great, then I learnt something new today as well - thanks! I will introduce

Re: CFEngine Help: Re: cf3 inputs, branching, selectiveness, staying sane

2011-09-10 Thread Erlend Leganger
On 10 September 2011 17:39, wrote: > See: > > http://www.puppetcookbook.com/ > http://forge.puppetlabs.com/ > I enjoyed the puppetcookbook above, it was nice and too the point. But there is a very similar thing in cfengine ([1]), explaining how to do much of the same tasks as in the cookbook. -

Cfe v3.2.0 for Solaris 10 and HP-UX?

2011-08-31 Thread Erlend Leganger
I have found that cfe v3.2.0 fails to compile on Solaris 10 and from the mailing list I see that there are problems with HP-UX as well. What are the plans here? A patch release maybe, as was the case for v3.0.5 (patched in 3.0.5p1)? - Erlend ___ Help-cfe

Re: FO plugin: Use even header/footer on all pages?

2011-08-26 Thread Erlend Leganger
On 26 August 2011 20:08, Erlend Leganger wrote: > The default behaviour is to generate odd and even headers/footers in the > PDF, so for example the header text is placed in the upper left corner on > even numbered pages and in the upper right corner on odd numbered pages. I > want

FO plugin: Use even header/footer on all pages?

2011-08-26 Thread Erlend Leganger
The default behaviour is to generate odd and even headers/footers in the PDF, so for example the header text is placed in the upper left corner on even numbered pages and in the upper right corner on odd numbered pages. I want headers and footers at the same location on the printed page, regardless

Re: CFEngine Help: Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-24 Thread Erlend Leganger
On 24 August 2011 21:22, Mikhail Gusarov wrote: > Fix committed to both trunk and 3.2.x branch, please try. That fix is for HP-UX, is the Solaris problem also fixed? - Erlend ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.o

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-23 Thread Erlend Leganger
On 22 August 2011 16:39, Mikhail Gusarov wrote: > > You might just change the aforementioned file in both configure and > configure.ac, then only ./configure is needed. I changed both files, but it still bombs with the same error. I see others have the same problem and that you are working on a

Re: Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Erlend Leganger
On 22 August 2011 13:12, Mikhail Gusarov wrote: > Please try to change the line > > if test x$DIRFD_MACRO_FOUND != x; then > > to > > if test x$DIRFD_MACRO_FOUND = x; then > > in configure.ac, rerun ./autogen.sh and see whether it works for you. > I tried the patch followed by bash autogen.sh

Cannot compile cfengine-3.2.0.tar.gz on Solaris 10

2011-08-22 Thread Erlend Leganger
Seems as dirfd is referenced, even though configure finds that I don't have dirfd on my system. This is on my usual compiling platform - a freshly installed Solaris 10 SPARC box (full Solaris installation) with all pre-reqs added (from Sunfreeware). - Erlend 2011-08-22 10:24:06 6 INFO - cfe-build

Re: FORUM messages

2011-08-18 Thread Erlend Leganger
On 18 August 2011 08:58, Bas van der Vlies wrote: > I just following the email list and don't use the CFengine forum. My > question can the FORUM message be properly forwarded to the email list? > +1, definitely a +1... - Erlend ___ Help-cfengine mail

Re: Still getting "Challenge response...incorrect!" in cfe3.2.0b3

2011-08-16 Thread Erlend Leganger
is it just my setup? - Erlend On 11 August 2011 06:36, Erlend Leganger wrote: > In my cfe setup, the clients send me email every time the output changes > (which I think is fairly common in smaller installations). I always have a > report in a policy, so if it kicks in on a client to ma

Still getting "Challenge response...incorrect!" in cfe3.2.0b3

2011-08-10 Thread Erlend Leganger
In my cfe setup, the clients send me email every time the output changes (which I think is fairly common in smaller installations). I always have a report in a policy, so if it kicks in on a client to make a change, I get an email receipt, very nice. However, this feature is plagued by the spurios

Re: Cannot compile cfengine-3.2.0b3.tar.gz on Solaris 10

2011-08-09 Thread Erlend Leganger
On 9 August 2011 13:35, Mikhail Gusarov wrote: > On 08/08/2011 01:32 PM, Erlend Leganger wrote: > > > dir.c:199:4: #error "buffer size for readdir_r cannot be determined" > > dir.c:4: warning: 'GetNameMax' used but never defined > > Thanks for catchin

How to get a oneliner result for --version?

2011-08-09 Thread Erlend Leganger
In 3.2.0b3, the --version command returns a fancy ascii graphic intermixed with the program name, version number and copyright. All of this was in previous versions returned on one line of output, making it relatively easy to extract the version number in a script. Is there a way to get the oneline

Cannot compile cfengine-3.2.0b3.tar.gz on Solaris 10

2011-08-08 Thread Erlend Leganger
I pulled out my good old script to compile cfengine-3.2.0b3.tar.gz today, but it failed. I re-ran the script without changes on cfengine-3.1.5.tar.gz and then it compiled fine. What have I missed? This is on my usual compiling platform - a freshly installed Solaris 10 SPARC box (full Solaris instal

Re: What's the difference between () and {} ? Why are there two?

2011-07-17 Thread Erlend Leganger
On 17 July 2011 07:35, Aleksey Tsalolikhin wrote: > On Fri, Jul 15, 2011 at 12:44 AM, Mark Burgess wrote: > > ... there is no > > difference in the way that () and {} are handled. Logically, there > > should be full symmetry between these cases. > > Dear Mark, > > If () and {} have no differenc

Re: All cfe src tarballs have same date

2011-06-28 Thread Erlend Leganger
Super - thanks for the quick reaction. Cheers, Erlend On 29 June 2011 06:58, Mark Burgess wrote: > > I found the originals and restored the times. > > On 29/06/11 06:00, Erlend Leganger wrote: > > I download my cfe-sources from http://cfengine.com/pages/source_code. > &

All cfe src tarballs have same date

2011-06-28 Thread Erlend Leganger
I download my cfe-sources from http://cfengine.com/pages/source_code. Most of the tarballs listed here have a Date: field, but all the dates are set to the same four second period (June 05 2011 10:17:14 to 10:17:18). The Date: field is more useful if it shows the date of release for each of the tar

Re: Lengthy in-line bash commands

2011-05-23 Thread Erlend Leganger
Give us more to work with: Provide an example of a "lengthy piece" that you want cf3 to execute; what did your command promise look like and what was the error message etc. - Erlend On 23 May 2011 16:25, Scott Dobner wrote: > Hi, > I am porting some bash scripts into cfengine and am having troub

Re: How to execute subshell within shell command?

2011-04-19 Thread Erlend Leganger
Come to think of it - this may not be a cfe problem at all - if the shell used is sh, then only backticks will work, not $(...) (which is a bash feature). Hmm, have to look more into this. On 19 April 2011 08:56, Erlend Leganger wrote: > Perfect, this works fine - but you have to

Re: How to execute subshell within shell command?

2011-04-18 Thread Erlend Leganger
ich allows you to place command execution > in shell (disabled by default). > > 2011/4/19 Erlend Leganger : >> I was trying to maintain /etc/defaultrouter using cfengine communit >> v3.1.4. When the file changes, you either have to reboot the server >> for it to take effect or u

How to execute subshell within shell command?

2011-04-18 Thread Erlend Leganger
I was trying to maintain /etc/defaultrouter using cfengine communit v3.1.4. When the file changes, you either have to reboot the server for it to take effect or use the route command to delete the current default route and add the new. I tried with the policy below, but get errors. Here is a compl

Meta: Forum postings break help-cfengin email threads in Gmail

2011-02-12 Thread Erlend Leganger
I follow this list on email only (using Gmail), I don't use the forum. It seems as if questions or responses posted to the forum have the prefix "Cfengine Help: " when reaching the email list, while submissions directly to the mailing list do not get this prefix. This breaks the thread functionalit

Re: Cfengine vf3.1.4 not announced on the mailing list?

2011-02-01 Thread Erlend Leganger
On 1 February 2011 20:18, Eystein Måløy Stenberg wrote: > Perhaps it got stuck in some spam filter? > That seems to be the case with some of the emails that are sent out > (like the activation email for Engine Room signups). > > Of course, you are right - no less than 53 cfengine conversations cl

Cfengine vf3.1.4 not announced on the mailing list?

2011-02-01 Thread Erlend Leganger
>From the email trail below I understand that Cfengein 3.1.4 has been released. However, I did not see the original 3.1.4 announcement message on the mailing list, I only see this response with title "Re: Cfengine Help: Cfengine 3.1.4 is released". Is this a problem only I have or do others see the

Re: How to check out cfengine source?

2011-01-31 Thread Erlend Leganger
On 31 January 2011 21:29, Aleksey Tsalolikhin wrote: > I do not have a solution for this, I hope you got along OK with the > tarball generator? > Well, I had some problems compiling from the tarball generator for svn 1717, but that seems to be fixed now (at least the make clean; make; make insta

Re: SVN browsers

2011-01-23 Thread Erlend Leganger
On 4 January 2011 17:30, Jesse Becker wrote: > I just noticed that there are two SVN web interfaces linked from > cfengine.org: > >        http://source.cfengine.com/browse/ >        http://source.cfengine.com/websvn/ > And the websvn link has a very useful tarball generator - nice if you don't w

Re: How to check out cfengine source?

2011-01-23 Thread Erlend Leganger
On 19 January 2011 02:23, Aleksey Tsalolikhin wrote: > I think you can ignore COBPL and tests, if you're trying to build Cfengine, > "core" should be enough. > > autoreconf is part of autoconf - can you get autoconf from your Solaris > sources? > You are right, autoreconf came in with the autoco

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-23 Thread Erlend Leganger
On 22 January 2011 23:39, Mark Burgess wrote: > > I wonder why this was not picked up before. Can you please try svn now? > There was a missing prototype. > Still dumps core, but a different error this time. - Erlend bash-3.00# make; make install ... bash-3.00# grep ForeignZone src/prototypes3.

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-23 Thread Erlend Leganger
On 22 January 2011 23:39, Mark Burgess wrote: > Can you please try svn now? I would if I knew how to compile from svn on Solaris - I've figured out how to do it from the tarball, but I get stuck on autoreconf below. Any tips? - Erlend bash-3.00# cd workdir/trunk/ bash-3.00# head -8 .svn/entries

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-22 Thread Erlend Leganger
On 21 January 2011 10:07, Mark Burgess wrote: > > That's unlikely. Can you provide a gdb backtrace please? After make; make install on the 3.1.3 tarball of today, I get the runlog shown below when I run in the global zone on a virgin Solaris 10 x86 complete installation. It looks like it has some

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-21 Thread Erlend Leganger
On 21 January 2011 10:07, Mark Burgess wrote: > That's unlikely. Can you provide a gdb backtrace please? I don't have gdb installed, so I need to duck into Solaris manually-resolving-all-dependencies hell to install it. Hopefully I will get to do this over the weekend. - Erlend ___

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-20 Thread Erlend Leganger
On 9 January 2011 11:10, Mark Burgess wrote: > Erland, please try the current svn (1681) and let me know if this works > for you. > I haven't figured out how to compile from svn on my Solaris box, but I tried it with cfengine-3.1.3.tar.gz. When built in the same way as 3.1.2, the cf-agent v3.1.3

Re: How to check out cfengine source?

2011-01-16 Thread Erlend Leganger
Thanks guys, one problem fixed - this is probably obvious for the skilled subversion user, but I'm not and tried to follow the documentation. Now I did this: svn checkout http://source.cfengine.com/svn/core/trunk core svn checkout http://source.cfengine.com/svn/copbl/trunk copbl svn checkout http

How to check out cfengine source?

2011-01-16 Thread Erlend Leganger
I have found out how to compile a release tarball on Solaris (such as cfengine-v3.1.2.tar.gz), but have some noob problems doing it from the svn source. I follow the steps at [1] and can only do the first checkout, the following two fail with the error: 'trunk' is already a working copy for a diffe

Re: 3.0.5 -> 3.1.2 key issue?

2011-01-10 Thread Erlend Leganger
I went from 3.0.2 to 3.1.2 without any key issues - I haven't run cf-key on any of the existing clients, so this upgrade was painless (with respect to keys that is; static vs dynamic linking was quite another matter...). - Erlend On 10 January 2011 18:28, Gusto wrote: > Hi Folks, > > I have a

Re: SVN browsers

2011-01-04 Thread Erlend Leganger
On 4 January 2011 17:30, Jesse Becker wrote: > I just noticed that there are two SVN web interfaces linked from > cfengine.org: > >http://source.cfengine.com/browse/ >http://source.cfengine.com/websvn/ > > > Thanks! > > And thanks for sharing - I needed to look up the code the oth

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-03 Thread Erlend Leganger
On 3 January 2011 08:17, Mark Burgess wrote: > > the ps issue is already fixed as far as I know in current trunk svn. Yes, enterprise_stubs.c has been updated to append "-z global" for the global zone (see below). I think this still will fail on Solaris, because the use of the -e option (as set

Re: The default policy restarts running cf-serverd,cf-monitord on Solaris 10

2011-01-02 Thread Erlend Leganger
On 3 January 2011 07:26, Erlend Leganger wrote: > Fixing this is a bit tricky, since the -e option cancels out any -z > global option (ref man ps). This is what you want in a global zone > (with -z option, no -e option): > > /bin/ps -z global -o user,pid,ppid,pgid, ... > > w

The default policy restarts running cf-serverd, cf-monitord on Solaris 10

2011-01-02 Thread Erlend Leganger
If I build cfengine v3.1.2 on Solaris10 and run the commands below directly after make install, the default policies tries to restart cf-serverd,cf-monitord every time cf-agent is run, regardless of whether the processes already are running. Consequently, I get an "Address already in use" bind erro

Inconsistent and incomplete "Getting started" procedures

2011-01-01 Thread Erlend Leganger
[1] provides these initial steps to get cfengine running from scratch (after make; make install): mkdir -p /var/cfengine/masterfiles cp /usr/local/share/doc/cfengine/inputs/*.cf /var/cfengine/masterfiles cp /usr/local/share/doc/cfengine/cfengine_stdlib.cf /var/cfengine/masterfiles /usr/local/sbin/

Re: generating a list of all your current servers using Cfengine

2010-12-31 Thread Erlend Leganger
On 30 December 2010 23:41, Nick Anderson wrote: > On Thu, Dec 30, 2010 at 10:42:59PM +0100, Erlend Leganger wrote: >> I have a simple setup where all servers (<30) are on the same LAN. The >> policies include heartbeat promise which always evaluates to true, this >>

Re: generating a list of all your current servers using Cfengine

2010-12-30 Thread Erlend Leganger
I have a simple setup where all servers (<30) are on the same LAN. The policies include heartbeat promise which always evaluates to true, this promise runs a heartbeat script which updates a data file per server on a common NFS share. By changing the heartbeat script (it's distributed using cfengin

Re: Error compiling cf3.1.2 on Solaris 10

2010-12-26 Thread Erlend Leganger
r/sfw --disable-shared 7 - Build and install: make; make install On 20 December 2010 09:55, Erlend Leganger wrote: > Here are the steps I use: > - Install a fresh server with the complete Solaris 10 package cluster > (SUNWCall) > - Install the required dependencies to compile cfengine (

Re: How to refer to an slist defined in a common bundle?

2010-12-23 Thread Erlend Leganger
Thanks - this was all documented, so I should have found it while RTFM. The gist is that you can do ${g.my_global_textvar}, but for slists you have to first do my_global_slist slist => {...@{g.my_global_slist}} to make a local copy, then you can do ${my_global_slist}. Just another thing to remember

How to refer to an slist defined in a common bundle?

2010-12-23 Thread Erlend Leganger
I am tidying up my policies a bit and thought it was a good idea to put various common settings into a common bundle. This works fine for regular text variables, but I had problems referring to globally defined slists (see tester1 below). The kludge I came up with (see tester2 below) was to copy th

Re: Cfengine Help: How to configure a client machine to contact the policy server and downloads updates?

2010-12-22 Thread Erlend Leganger
On 23 December 2010 06:09, Nick Anderson wrote: > On 12/22/2010 11:04 PM, Erlend Leganger wrote: >> I like it. Would you mind posting motd.tpl as well, just to complete >> the picture? > > Glad you like it. Here is motd.tpl. > > I think I want to extend it a bit, see

Re: Cfengine Help: How to configure a client machine to contact the policy server and downloads updates?

2010-12-22 Thread Erlend Leganger
On 22 December 2010 23:28, Nick Anderson wrote: > I have attached my failsafe.cf and update.cf for your enjoyment. My > update configuration might be slightly more than the best practice > recommends but I thought it would be nice to have my /etc/motd updated > with the time of the last successful

Re: Flip-flopping file properties

2010-12-22 Thread Erlend Leganger
"true"; > > it directs Cfengine to preserve file permissions taken from source. > Your source file obviously has permissiions 644. > > 2010/12/22 Erlend Leganger : >> After upgrading from cf v3.0.2 to v3.1.2, my simple file copying >> promises cannot set proper p

Flip-flopping file properties

2010-12-22 Thread Erlend Leganger
After upgrading from cf v3.0.2 to v3.1.2, my simple file copying promises cannot set proper perms for files any more. Or to be more precise - the correct file access is set and then immediately reset again. This flip-flopping forces all my file copying policies to kick in every time cfengine runs a

Error compiling cf3.1.2 on Solaris 10

2010-12-20 Thread Erlend Leganger
Here are the steps I use: - Install a fresh server with the complete Solaris 10 package cluster (SUNWCall) - Install the required dependencies to compile cfengine (gcc, flex, bison, ...) on this server - Then the following: tar xvfz cfengine-3.1.2.tar.gz cd cfengine-3.1.2 automake --add-missing au

Re: what does ${...} mean?

2010-12-14 Thread Erlend Leganger
On 13 December 2010 07:48, Diego Zamboni wrote: > Both $(...) and ${...} can be used to refer to scalar > variables, and to do implicit looping. > And since I use bash a lot to create my scripts, I really like to use ${myvar} for variables - then I can use the same syntax both in bash and cfengi

Re: Cfengine community 3.1.1 released

2010-11-25 Thread Erlend Leganger
Will you provide Solaris 10 binaries for this 3.1.1? I have plans to upgrade soon (I need the "exists" option in file copy); if I can avoid the extra work of compiling it myself, I'd prefer that. Cheers, Erlend On 24 November 2010 16:18, Mark Burgess wrote: > > Source code release of Cfengine

Re: Updating same file in different home directories

2010-11-22 Thread Erlend Leganger
ovember 2010 08:36, Michael Potter wrote: > Is this what you are looking for? > > vars: > > "users" slist => { "user0", "user1" ... }; > > files: > svr01:: > "/home/$(users)/.bashrc" ... > > On Mon, Nov 2

Updating same file in different home directories

2010-11-22 Thread Erlend Leganger
What is best way to loop over a number of directories and update the same file in each directory? I am looking into letting cfengine control bash config files for many users. I could for example do this: ... files: svr01:: "/home/user0/.bashrc" copy_from,... "/home/user1/.ba

Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine minimal configuraton example

2010-10-15 Thread Erlend Leganger
On 15 October 2010 13:48, wrote: > Forum: Cfengine Help > Subject: Re: Cfengine Help: Re: Cfengine minimal configuraton example > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,18760,18762#msg-18762 > > Alas I don't think they keep Solaris packages but Sunfreeware does

Re: Cfengine Help: Re: Cfengine minimal configuraton example

2010-10-14 Thread Erlend Leganger
On 14 October 2010 17:53, wrote: > If you register at cfengine.com you can get packages from there. > Unless you are on Solaris, of course - or have I missed the location of the cfengine v3.1 package for Solaris 10? - E ___ Help-cfengine mailing list

Re: Quickstart guide?

2010-09-19 Thread Erlend Leganger
And here we go again - yet another thread from a beginner which states that it is hard to get going with Cfengine. It would have been nice to have an official, detailed step-by-step tutorial which covers the basic case of installing cfengine on a server and client, instead of letting all noobs (def

Re: Matching host names by regexp

2010-04-21 Thread Erlend Leganger
On 21 April 2010 17:48, Justin Lloyd wrote: > FWIW, for scalability I'd probably use $(sys.uqhost) to ensure that > classmatch is not matching against another class that may exist and just > happens to look like a valid hostname. > > classes: > "svxx" expression => regcmp("sv[0-9]{2}", "$(sys.uq

Re: Matching host names by regexp

2010-04-21 Thread Erlend Leganger
Burgess wrote: > > Sorry, I forgot to remove a { > > classes: >    "svxx" expression => classmatch("sv.."); > > Mark Burgess wrote: >> Oh, I didn't notice that. But why not simply write >> >> classes: >>    "svxx" e

Re: Matching host names by regexp

2010-04-20 Thread Erlend Leganger
regexp a bit, e.g. > >  classes: >    "svxx" expression => classmatch("sv\d\d"); > > 2010/4/21 Erlend Leganger : >> I have some servers named sv01, sv02, sv03, ... which I need a class >> for in cf3 community 3.0.2. I have come up with this: >> >>

Re: Matching host names by regexp

2010-04-20 Thread Erlend Leganger
Mark wrote: > Why do you say this is convoluted? I think it looks just fine > > > Mark > > > On 21 Apr 2010, at 07:07, Erlend Leganger wrote: > >> I have some servers named sv01, sv02, sv03, ... which I need a class >> for in cf3 community 3.0.2. I have come up with

Matching host names by regexp

2010-04-20 Thread Erlend Leganger
I have some servers named sv01, sv02, sv03, ... which I need a class for in cf3 community 3.0.2. I have come up with this: classes:    "svxx" and =>{classmatch("sv.."),any}; so that I later can do for example: files:    svxx::       "/etc/passwd"          handle=>"update_passwd",          ... I

Re: Question about keys and trust

2010-04-01 Thread Erlend Leganger
On 31 March 2010 23:37, Lebel, Marco wrote: > I have applications that have IP addresses and DNS names associated with > them. These applications can run on any number of physical hosts but on > only one at the time. Whenever I try to copy files across the network using > cfengine specifying t

Re: cfengine vs source masterfiles

2010-03-29 Thread Erlend Leganger
On 29 March 2010 13:44, wrote: > > Hello All, > > For my understanding - How does your client machines(managed systems) get > access to files "master_cfinputs"? > > while looking at the example bellow - Do I need to to do any kind of > modification on "master_cfinputs" like sharing it via an nf

Re: Retrieving certain files from a directory

2010-03-18 Thread Erlend Leganger
On 17 March 2010 23:37, Justin Lloyd wrote: > > Ok, I'm stumped again. I've been working on a problem for hours. I want > to effectively do the following on each client: > > client# scp policy_host:/usr/local/etc/*.rc /usr/local/etc > > but I can't figure out how to set up the access rules and fil

Re: Cfengine Nova 1.1 released

2010-03-16 Thread Erlend Leganger
On 16 March 2010 13:36, Mark Burgess wrote: > > Windows compatible binaries. No Cygwin. > > Great, I always thought requiring the Cygwin DLL was a hacky solution (even though I am an avid Cygwin user myself). Congratuations, this should make the solution more palatable to skeptic Windows centric

Re: Howto escape double qoutes used in a string

2010-03-15 Thread Erlend Leganger
Just a variantion of Nakarin's answer - if you wanted the end result to become: access example "usm auth exact all none none" then the correct escaping would be "snmp2" string =>  "access example \"usm auth exact all none none\""; - Erlend On 15 March 2010 10:57, Nakarin Phooripoom wrote: > >

Re: Editors for Cf3?

2010-03-04 Thread Erlend Leganger
vi - what's colour highlighting?, hehe... - Erlend ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine

Re: Who deletes all files in /var/cfengine/inputs?

2010-03-03 Thread Erlend Leganger
Just for the record - removing purge fixed the problem, my cfengine inbox is empty and has been so for days, while the last seen report from cf-report shows that all clients check in with the policy server once every hour - sweet! - Erlend ___ Help-cfeng

Re: lastseen confusion

2010-03-02 Thread Erlend Leganger
On 2 March 2010 12:23, Mark Burgess wrote: > > What I sent you was quoted from the docs. The problem with docs is both > when there is too > little and too much. > > Yes, I know what you sent me - I pasted the referenced text into the test file I used and it worked fine, I just needed at little p

Re: lastseen confusion

2010-03-02 Thread Erlend Leganger
On 2 March 2010 10:48, milo...@gmail.com wrote: > > > This hasn't been released yet, so it seems for me the guys work hard > to update they doc and Mark gave you an early access to the updated > doc. > > Which "updated doc" did I get early access to? I have searched the docs I know of without fin

Re: lastseen confusion

2010-03-01 Thread Erlend Leganger
On 1 March 2010 17:50, Mark Burgess wrote: > > I take the example in the reference manual > > http://www.cfengine.org/manuals/cf3-reference.html#control-reporter > > and run it: > > cf-report -f ~/tmp/cftest.cf > > Then I open the html page produced /tmp/nerves/last-seen.html > > Peers as last se

Re: File Transfer

2010-03-01 Thread Erlend Leganger
On 1 March 2010 11:44, Seifert, Christian wrote: > > 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 >

Re: lastseen confusion

2010-02-28 Thread Erlend Leganger
On 26 February 2010 13:18, Mark Burgess wrote: > > I don't know what "in transition" means. The last seen report is available in > community. > Select a report type like html and and output directory (default > /var/cfengine/reports) > > M The term "in transition" is a quote from an unanswered

Re: SOLVED / Minor Bug? :cf2: Mysterious Syntax error

2010-02-26 Thread Erlend Leganger
On 26 February 2010 17:13, wrote: > Thanks for your suggestion, > > but infact it does not change anything here renaming the modules itself - I > just renamed the module to more usual name without the colon > but as before it works but still throws the syntax error. > > I finally just got rid of

Re: lastseen confusion

2010-02-26 Thread Erlend Leganger
On 26 February 2010 10:05, Mark Burgess wrote: > > I think I wrote about it in a special topics guide on reporting... > I guess this is the link to that guide: https://cfengine.com/inside/document/SpecialTopic_Reporting.pdf But it didn't help me, it mentions cf-report once and lastseen once, bo

Re: File Transfer

2010-02-26 Thread Erlend Leganger
On 26 February 2010 11:00, Seifert, Christian wrote: > I want to transfer some files from a server to any client. That’s my task > > > Well, the example given can easily be expanded to transfer some files from a server (the policy server) to any client, so I think you have the solution or am I mi

Re: lastseen confusion

2010-02-26 Thread Erlend Leganger
On 26 February 2010 08:48, Mark wrote: > It works perfectly here > > > Mark > Good, but I don't know how to use and I can't find any documentation on it. Where is cf-report documented? I tried the cf3-reference, cf3-tutoial and cf-report --help, but couldn't find a good description of how to use

Re: File Transfer

2010-02-26 Thread Erlend Leganger
On 26 February 2010 08:06, Seifert, Christian wrote: > 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? > I am not qu

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", >

  1   2   >