Re: Version control best practices?

2010-03-04 Thread Bas van der Vlies
On Mar 5, 2010, at 12:52 AM, Jessica Greer wrote: > Thanks to everyone for the responses - that's helpful. Tim, I > especially like your idea of mailing out diffs, so everyone stays in > the loop, and teammates don't have to alert each other by hand. > Why you do not use trac. It is a wiki

Re: editing old school cron tables

2010-03-04 Thread liuyidaojian
If someone manually updated crontab or some other scripts updated crontab between "Editing the file" and “last step installing new crontab”, the crontab will be overwritten, something will definately lost. This is a race condition. However this will also happen when two guys manually editing cro

Re: Re: Version control best practices?

2010-03-04 Thread megamic
On Mar 5, 2010 11:08am, Jessica Greer wrote: Matt, This is an interesting approach - food for thought. Do you find yourself standing up test classes in the alpha/beta versions of your files and removing them when you're ready to tag them as prod? Maybe I'm not approaching the problem t

Indexing an array of slist?

2010-03-04 Thread Steve Barnes
Hi Apologies if I'm a bit late to the party on this subject, but how do you reference a specific sub-element of an slist that is a value part of an associative array? So far all the doco I've read is a bit light on more "advanced" uses of arrays. For example, I have the following var defined:

Re: Version control best practices?

2010-03-04 Thread Jessica Greer
Matt, This is an interesting approach - food for thought. Do you find yourself standing up test classes in the alpha/beta versions of your files and removing them when you're ready to tag them as prod? Maybe I'm not approaching the problem the right way by thinking of test environments as sandbo

Re: Version control best practices?

2010-03-04 Thread Jessica Greer
Thanks to everyone for the responses - that's helpful. Tim, I especially like your idea of mailing out diffs, so everyone stays in the loop, and teammates don't have to alert each other by hand. What are your sandboxes like? Do your non-prod branches just contain promises that pertain to testing

Re: How to run Cfengine 3 with Cfengine 2 policies? I get syntax errors.

2010-03-04 Thread Nicolas Charles
Hum, Cfengine 2 and 3 don't have the same syntax. However, to ease the transition, you can read http://www.cfengine.org/manuals/cf3-upgrade.htmland use the conversion tool : https://cfengine.com/inside/config_convert (you need to be logged in) Regards, Nicolas On Thu, Mar 4, 2010 at 11:12 PM, Ale

Flags on osx

2010-03-04 Thread Anders Bruvik
There is something odd going on here. I have a test directory: bash-3.2# ls -Old@ /testdir -rwxrwxrwt 1 root admin - 0 Mar 3 22:49 /testdir Now, if I run CFEngine, with a simple configuration to set the permissions on the directory: bash-3.2# /opt/cfengine/sbin/cf-agent -K -f osx-permi

How to run Cfengine 3 with Cfengine 2 policies? I get syntax errors.

2010-03-04 Thread Aleksey Tsalolikhin
Hi. I understood that Cfengine 3 could read and run Cfengine 2 policies. How to get a Cfengine 3 promises.cf to import a Cfengine 2 cfagent.conf, please? I get syntax errors if I try to import it using "inputs". Best, -at ___ Help-cfengine mailing lis

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: .mil domain and help-cfengine@cfengine.org

2010-03-04 Thread Mark Burgess
More likely that it would be blocked by .mil? Have you tried the web interface? We are setting up a web forum solution too.. M Ingersoll, Robert wrote: > All I know is that I never receive any confirmation message when I > attempt to register a .mil address. > > And I have seen a few other regis

RE: .mil domain and help-cfengine@cfengine.org

2010-03-04 Thread Ingersoll, Robert
All I know is that I never receive any confirmation message when I attempt to register a .mil address. And I have seen a few other registration systems in the past that can't handle it. -Original Message- From: Mark Burgess [mailto:mark.burg...@iu.hio.no] Sent: Thu 3/4/2010 2:30 PM To:

Re: .mil domain and help-cfengine@cfengine.org

2010-03-04 Thread Mark Burgess
I have seen mil addresses before. Why wouldn't it handle them? Ingersoll, Robert wrote: > Can anyone please confirm whether this mailing list can handle .mil > addresses and perhaps fix the problem? > > Using this web mail crap is a real PITA! > > Thanks > > > -Original Message- > Fro

RE: .mil domain and help-cfengine@cfengine.org

2010-03-04 Thread Ingersoll, Robert
Can anyone please confirm whether this mailing list can handle .mil addresses and perhaps fix the problem? Using this web mail crap is a real PITA! Thanks -Original Message- From: help-cfengine-boun...@cfengine.org on behalf of Ingersoll, Robert Sent: Wed 2/24/2010 2:07 PM To: help-cfe

Re: Editors for Cf3?

2010-03-04 Thread Jesse Becker
On Thu, Mar 04, 2010 at 01:39:05PM -0500, Jessica Greer wrote: > Also, what are you all using for editing v.3 code? I'd like syntax > highlighting in vim (and > see that Neil Watson started that), but I'd be inclined to switch to > Eclipse if someone's I use nedit, and have the beginnings o

Editors for Cf3?

2010-03-04 Thread Jessica Greer
Also, what are you all using for editing v.3 code? I'd like syntax highlighting in vim (and see that Neil Watson started that), but I'd be inclined to switch to Eclipse if someone's written a plugin that'll do syntax suggestion - especially if it were sophisticated enough to understand the context

Is it possible to make sure /etc/fstab mount points stay mounted with cfengine?

2010-03-04 Thread Sean Carolan
In the cfengine v2 reference the mountall directive is defined thus: mountall mounts all filesystems defined in the hosts filesystem table. This causes new NFS filesystems added by addmounts and mailcheck to be actually mounted. This should probably be called both before mountinfo and after addmou

Re: Version control best practices?

2010-03-04 Thread Deb Heller-Evans
We're using a similar approach here with SVN, although we divvy the dir trees up between groups - Engineering and Systems Administration. I would like to pose a follow-on question to Jessica's: Using your favorite repository software (insert subversion, Bazaar, or whatever here), we would h

Re: Version control best practices?

2010-03-04 Thread Tim Cutts
On 4 Mar 2010, at 4:45 pm, Jessica Greer wrote: > Anyone want to share advice on using SCM/revision control software to manage > Cfengine configuration? > > I've recently joined a group where several people will be editing inputs and > masterfiles, and it'll be important to have a clear picture

Re: Version control best practices?

2010-03-04 Thread Matt Richards
Mine is similar to how Neil does it. I use plain old CVS. Specifying tags on the cf configuration to indicate which level (alpha, beta, prod, etc...) the edit should be in: cvs tag -F alpha failsafe.cf I then can key off the tag to release different levels and release using cvs. Something lik

Re: Version control best practices?

2010-03-04 Thread NWatson
I use Subversion and try to use the traditional approach of branches. /trunk - production /branches/dev - development /branches/preprod - staging for production roll out /branches/neil - a custom branch for experimentation. The best thing to do is to treat your policy development formally just as

Version control best practices?

2010-03-04 Thread Jessica Greer
Anyone want to share advice on using SCM/revision control software to manage Cfengine configuration? I've recently joined a group where several people will be editing inputs and masterfiles, and it'll be important to have a clear picture of what changes have been made and by whom. Yale is using B

Re: editing old school cron tables

2010-03-04 Thread Matt Richards
This sound like the best safe method. A little more work to deal with the file, but no race conditions or quirky platform specific items. On Mar 4, 2010, at 11:00 AM, Christopher Browne wrote: > > I cope with cron edits via... > > - Pulling it out into a file (crontab -l) > > - Editing the fil

Cfeninge Help (Mailing list): Re: editing old school cron tables

2010-03-04 Thread forum
Forum: Cfeninge Help (Mailing list) Subject: Re: editing old school cron tables Author: testuser1 Link to topic: https://cfengine.com/forum/read.php?3,7740,7749#msg-7749 Testing an upcoming forum. Please ignore. ___ Help-cfengine mailing list Help-cfe

Re: editing old school cron tables

2010-03-04 Thread Christopher Browne
nwat...@symcor.com writes: > Having been spoiled by Vixie Cron I was not aware until yesterday that > older cron daemons, found in Solaris and AIX, do not automatically reread > cron tables at regular intervals. Thus if you edit crontables using CF's > edit files method older cron daemons will

Re: editing old school cron tables

2010-03-04 Thread Les Mikesell
On 3/4/2010 9:21 AM, Matt Richards wrote: > True, only if you have the full crontab available as a file. With cfengine, I > just edit the cron entry directly without pulling the whole file. But, that > is another way to do it. I suppose you could do a > > crontab /var/spool/cron/crontabs/ > > Int

Re: editing old school cron tables

2010-03-04 Thread Ted Zlatanov
On Thu, 4 Mar 2010 10:21:27 -0500 Matt Richards wrote: MR> On Mar 4, 2010, at 10:12 AM, Ted Zlatanov wrote: >> On Thu, 04 Mar 2010 16:05:04 +0100 Mark Burgess >> wrote: >> MB> I always did a HUP, but I don't have to deal with AIX. From 3.0.4 MB> cfengine will detach from its parent, so it c

Re: editing old school cron tables

2010-03-04 Thread Matt Richards
True, only if you have the full crontab available as a file. With cfengine, I just edit the cron entry directly without pulling the whole file. But, that is another way to do it. I suppose you could do a crontab /var/spool/cron/crontabs/ Interesting, I never thought to do it that way. It might

Re: editing old school cron tables

2010-03-04 Thread Ted Zlatanov
On Thu, 04 Mar 2010 16:05:04 +0100 Mark Burgess wrote: MB> I always did a HUP, but I don't have to deal with AIX. From 3.0.4 MB> cfengine will detach from its parent, so it could kill and restart MB> cron. The other common method besides HUP is to just resubmit the crontab with "crontab FILENAM

Re: editing old school cron tables

2010-03-04 Thread Matt Richards
I SIGKILL cron for AIX, it is set to respawn in /etc/inittab. Others I did a different action (like Linux listed below): bundle agent update_cron { files: "$(global.crontabs)/root" comment => "Add cf-agent to root's crontab", edit_line => add_cf_cron, classes =>

Re: editing old school cron tables

2010-03-04 Thread Mark Burgess
I always did a HUP, but I don't have to deal with AIX. From 3.0.4 cfengine will detach from its parent, so it could kill and restart cron. nwat...@symcor.com wrote: > Having been spoiled by Vixie Cron I was not aware until yesterday that > older cron daemons, found in Solaris and AIX, do not au

editing old school cron tables

2010-03-04 Thread NWatson
Having been spoiled by Vixie Cron I was not aware until yesterday that older cron daemons, found in Solaris and AIX, do not automatically reread cron tables at regular intervals. Thus if you edit crontables using CF's edit files method older cron daemons will not pick-up the changes. What to

Re: loadays

2010-03-04 Thread Fabrice Flore-Thebault
It's too short for me to learn enough to make a presentation, i'm more in the learning phase. I'll be representiong the new born fusioninventory team which is building a modular agent which can do asset inventory, snmp queries, wol, files deployment ... The project is interested in the contribu

Re: challenge: last Saturday of the month

2010-03-04 Thread Nicolas Courtel
GNU date is very good to do this, you can use the following test: test `date --date "last saturday" +%d` -eq `date +%d` Haven't tried to figure out how to use this command in cfengine, though. -- Nicolas nwat...@symcor.com a écrit : Over at Ars there was a discussion about scheduling a cro

RE: Can't use host name regexps with trustkeysfrom

2010-03-04 Thread Assarsson, Emil
Acually it should be useful if It could handle AND and OR. This could let the admin enforce naming conventions as well as adding some security based on IP. It would be useful for me. Just an idea :-) Best regards, Emil Assarsson emil.assars...@sonyericsson.com Phone: +46 (0)10 8017422 -O

Re: Can't use host name regexps with trustkeysfrom

2010-03-04 Thread Mark Burgess
Emil, don't worry. We are thinking about it and have not dismissed any ideas. It will not be anything for the up coming release, but I am interested to hear what more people think before going ahead with anything. Assarsson, Emil wrote: > Should I change my bug reports to feature requests? > >

RE: Can't use host name regexps with trustkeysfrom

2010-03-04 Thread Assarsson, Emil
Should I change my bug reports to feature requests? Best regards, Emil Assarsson emil.assars...@sonyericsson.com Phone: +46 (0)10 8017422 -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Neil Watson Sent: torsdag den 4 m

RE: Can't use host name regexps with trustkeysfrom

2010-03-04 Thread Assarsson, Emil
That is totally OK as long as the documentation reflects the reality :-P I can work with my current setup, but I would have saved some time if I hadn't have to spend time to investigate "quirkiness's" like this. Just hope that my input can save some time for the next one in line. Best regards,

Re: loadays

2010-03-04 Thread Mark Burgess
Any community people who could do this? I'm afraid, this is probably too short notice for us at Cfengine to schedule something. M Fabrice Flore-Thebault wrote: > Hello cfengine users, > > It would be great if someone made a presentation about cfengine at the > Linux Open Administration days i

loadays

2010-03-04 Thread Fabrice Flore-Thebault
Hello cfengine users, It would be great if someone made a presentation about cfengine at the Linux Open Administration days in Antwerp, Belgium, 10-11 April [1]. The call for presentations is still open. They currently have propositions for presentations about puppet, but no proposition for cf