Re: Cfengine Help: Re: package mgmt with apt

2010-11-01 Thread Tim Cutts
On 1 Nov 2010, at 07:43, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: package mgmt with apt > Author: joke > Link to topic: https://cfengine.com/forum/read.php?3,18977,18979#msg-18979 > > There are pitfalls using apt or aptitude with cfengine. You need to make sure > to di

Re: OT (maybe) how to detect virtual machines

2010-10-14 Thread Tim Cutts
I detect VMware by looking for the string VMware in the output of dmidecode. Tim -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered of

Re: NFS mount flags in fstab entry?

2010-09-21 Thread Tim Cutts
On 21 Sep 2010, at 21:12, Mathew Hennessy wrote: > Hi, > Is there a way to guarantee changes to relevant fstab NFS mount flags > when made in a body mount? So far, I have to umount the dirs and delete > them from fstab on the client for a cf-agent run to repopulate fstab > with the changed

Re: cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
On 20 Sep 2010, at 6:38 pm, Tim Cutts wrote: > > On 20 Sep 2010, at 6:22 pm, Mark Burgess wrote: > >> >> Could be a libdb problem. Try deleting the db files. > > D'oh - found it; very close to the right answer! BerkeleyDB header files > were the wrong

Re: cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
On 20 Sep 2010, at 6:22 pm, Mark Burgess wrote: > > Could be a libdb problem. Try deleting the db files. D'oh - found it; very close to the right answer! BerkeleyDB header files were the wrong version for the installed libraries. Quite why SLES didn't complain about that I have no idea...

cfengine 2 (I know!) on SLES11 SP1

2010-09-20 Thread Tim Cutts
Has anyone managed to get cfengine 2 running on SLES11 SP1? Leaving aside that I really should have moved to cfengine 3 by now, I'd like to get cfengine working on SLES11, but it crashes and dumps core immediately. This is cfengine 2.2.8. cfagent backtrace looks like this: (gdb) where #0 0x

Re: Package installation fails but cfengine sees it as ok

2010-09-17 Thread Tim Cutts
On 17 Sep 2010, at 10:59 am, Davide Brini wrote: > Well, if my custom file is in place before the package is installed, could it > be overwritten with the default one by the package installation? (I haven't > tried to be honest) That depends, I suspect, on how you invoke your package manager,

Re: Package installation fails but cfengine sees it as ok

2010-09-17 Thread Tim Cutts
On 17 Sep 2010, at 10:35 am, Davide Brini wrote: > I'm already doing that to determine if the package needs to be installed and > the package manager invoked. > > But I also have other things that depend upon the successful installation > (copying a custom config file, basically). Currently,

Re: Package installation fails but cfengine sees it as ok

2010-09-17 Thread Tim Cutts
On 17 Sep 2010, at 10:27 am, Seva Gluschenko wrote: > While I disagree with Mark about usefulness of exit status (at least > of exit status 0 in this case), in case of packages, it's pretty easy > to check some vital file for existence as I stated already. I use such > a method to detect availabi

Re: Package installation fails but cfengine sees it as ok

2010-09-17 Thread Tim Cutts
On 17 Sep 2010, at 10:15 am, Mark Burgess wrote: > David, the problem is one of semantics. In bulk operations, some things > succeed and some > fail. You are entirely slave to the behaviour of the package manager, making > it difficult > to have a consistent behaviour that everyone can agree on

Re: Linux CPU speed

2010-09-01 Thread Tim Cutts
On 1 Sep 2010, at 20:07, Justin Lloyd wrote: > Hi Tim, > > > > Someone else mentioned that dmidecode has the output, but a quick test > seems to have found it unreliable since many of my systems were > reporting 3 MHz. I wish! J Let me guess - those CPUs are VMware virtual machines. I'd

Re: Linux CPU speed

2010-09-01 Thread Tim Cutts
On 31 Aug 2010, at 10:23 pm, Justin Lloyd wrote: > Here’s an interesting question for Nova users and/or Linux experts. I have a > number of measurements promises that extract information about a system and > store that data in our asset database. However, if dynamic CPU throttling is > enabled

cfengine2 bug (yes, I know)

2010-05-19 Thread Tim Cutts
I realise the chances of any help on this are slim with the current advice on moving to cfengine3, but I don't have the resources to do that, and I've just hit a bug in cfengine2 which is a royal pain, and I was hoping someone can help me fix it if possible. Actually it's two things, one defini

Re: Super-scaled cfengine server?

2010-04-30 Thread Tim Cutts
On 30 Apr 2010, at 5:22 pm, Mark Burgess wrote: > > I think the issue is where Linux can support this many cores. My > understanding was that > the Linux kernel was limited to 8 cores, but this is only hearsay. As others have said, Linux supports many many more cores than that, and has done f

Re: Super-scaled cfengine server?

2010-04-30 Thread Tim Cutts
On 30 Apr 2010, at 4:06 pm, Paul Krizak wrote: > Has anybody out there ever tried scaling up a cfengine server (v2.1 or > v2.2) on a really big, fast server? I'm thinking on the order of 4 > sockets, 24 cores, and a 10Gbit NIC. > > This is to support a particularly massive (and temporary) flo

Re: little Cfengine survey

2010-03-10 Thread Tim Cutts
On 9 Mar 2010, at 9:49 pm, Niek Timmers wrote: > Dear *, > > I am a student of the University of Amsterdam, currently enrolled in the > System & Network Engineering Master program. At the moment I am doing a > small project concerned Cfengine which involves looking into the > usability of this s

Re: Version control best practices?

2010-03-05 Thread Tim Cutts
On 5 Mar 2010, at 7:47 am, Bas van der Vlies wrote: > > 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 aler

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: cfengine and FAI

2010-02-09 Thread Tim Cutts
On 9 Feb 2010, at 4:59 pm, John G. Heim wrote: > Hi, > > I am trying to configure our automatic linux install system (Fully > Automated > Install or FAI) to do a mimimal debian linux install and then to run > cfengine to install all of the config files and additional packages. I > already have

Re: Team-based Cfengine Management

2010-02-02 Thread Tim Cutts
On 1 Feb 2010, at 5:47 pm, Justin Lloyd wrote: > Hi all, > > > > For those of you who are part of a team that manage a Cfengine-based > environment, how do you prevent people from making local changes to > things that are managed by Cfengine, thus causing local changes to get > wiped out? For exa

Re: Team-based Cfengine Management

2010-02-02 Thread Tim Cutts
On 1 Feb 2010, at 5:47 pm, Justin Lloyd wrote: > * Change Control - well-defined dept/company procedures for > change approval, and all changes to systems should be done only > through > Cfengine policy, never locally on any system Change approval, if made an absolute blanket rule, can

Re: Apple script in cfengine files

2010-01-27 Thread Tim Cutts
On 26 Jan 2010, at 8:11 pm, Janet Bass wrote: > Has anyone used Applescripts scripts in cfengine? > > I am not finding a lot of documentation about Cfengine and Mac OS X You can make applescripts trivially executable from the command line, just like any shell script, so you should be able to r

Re: Standard library: apt package method

2010-01-26 Thread Tim Cutts
On 26 Jan 2010, at 3:13 pm, Andreas Dan Larsson wrote: > > I would recommend that you check if the install is successful and > run aptitude update if its not. If a updated package is published > since you ran "aptitude update" you will get a 404 on your request > for the older version. I th

Re: Standard library: apt package method

2010-01-26 Thread Tim Cutts
On 26 Jan 2010, at 2:41 pm, Nakarin Phooripoom wrote: > Zypper and yum seem to check and update the latest list of packages > every time it runs before installing any selected packages. > > Could we do something like this for Debian/Ubuntu? > > package_add_command => "/usr/bin/aptitude update &

Re: Standard library: apt package method

2010-01-26 Thread Tim Cutts
On 26 Jan 2010, at 2:25 pm, Mark Burgess wrote: > > This seems reasonable. I am spoiled using zypper which does this > automatically. It's arguable that apt's separation of the two functions is sensible. I have more than 2000 machines; and have already once been blacklisted by one apt rep

Re: How do you monitor your cfengine client instances?

2010-01-21 Thread Tim Cutts
On 21 Jan 2010, at 10:31 am, Erlend Leganger wrote: >> >> Hmm, in my cfengine v3.0.2 setup, /var/cfengine/lastseen is empty. >> There is > a /var/cfengine/cf_LastSeen.db which probably contains the same info > for > cf3, but that is not readily accessible to me - maybe I can crank up > Perl

Re: How do you monitor your cfengine client instances?

2010-01-21 Thread Tim Cutts
On 21 Jan 2010, at 9:00 am, Erlend Leganger wrote: > I have played with cfengine for a while and set up an environment > with about > 20 client machines.One day /var/cfengine/inputs was empty on one of > these > machines. I don't know why and it was easy to fix, but I wasn't > warned about

Re: recording cfengine execution time

2010-01-19 Thread Tim Cutts
On 19 Jan 2010, at 4:19 pm, Guillaume Rousse wrote: > Hello list. > > I'm trying to keep track of cfengine execution time, in order to > monitor > policy changes effect. > > The easiest way seems to add start/stop messages in the logs. > > If invocating cfagent from a cron task, it's quite simp

Re: use cfengine to backup files from clients

2010-01-04 Thread Tim Cutts
On 4 Jan 2010, at 3:25 pm, Tim Cutts wrote: > > On 4 Jan 2010, at 2:52 pm, nwat...@symcor.com wrote: > >> Yes. You can do this. Here is a recipe with CF version 2. You'll >> have >> to figure out the Cf 3 way but the principle is the same. >> http:/

Re: use cfengine to backup files from clients

2010-01-04 Thread Tim Cutts
On 4 Jan 2010, at 2:52 pm, nwat...@symcor.com wrote: > Yes. You can do this. Here is a recipe with CF version 2. You'll > have > to figure out the Cf 3 way but the principle is the same. > http://watson-wilson.ca/blog/cfcookbook.html#SECTION00020 That method's a little unwie

Re: Non-interactive apt-get package installation

2009-12-08 Thread Tim Cutts
On 7 Dec 2009, at 10:42 pm, Robert Markula wrote: > which cause cf-agent to hang since the underlying process expects a > user > input. Looking at the processes, I can see that in the second line > (see > below), the quotes are missing around "--force-confdef" and > "--force-confold": > > htt