help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bootstrapping


From: Tim Nelson
Subject: Re: Bootstrapping
Date: Thu, 19 Feb 2004 10:22:25 +1100 (EST)

On Wed, 18 Feb 2004, Luke A. Kanies wrote:

> > > [ Binaries ]
> > > This is a classic package management problem.  If you're not using
> > > cfengine for package management, then use your normal package management
> > > solution to get the package installed.  If you are using cfengine, then
> > > you're in an interesting catch-22:  How do I install the package used to
> > > install packages?
> >
> > Not using cfengine for package management. I made a home-rolled RPM
> > which includes the binaries and the latest update.conf. Part of the
> > post-install runs 'cfagent -q' so cfenginization happens at RPM
> > installation time.
>
> So you have a system outside of cfengine which actually installs the
> cfengine package, then?  That certainly simplifies the bootstrapping
> problem within cfengine, although I'd imagine it just moves it into the
> packaging system.

        I'm also using an external package management system, but
whatever you're doing, you can usually do something like the following in
your kickstart file (assuming you install via kickstart):

----------------------------------
%post

# %post must be followed by a blank line

cd /root

URL1=<x>
URL2=<y>
URL3=<z>

/bin/rpm -Uvh $URL1/updates/*
/bin/rpm -Uvh $URL2/cfengine-2.1.0-0.fdr.1.p1.i386.rpm

wget $URL3/cfstartconf/update.conf
mv update.conf /var/cfengine/inputs/

wget $URL3/cfstartconf/ntp.conf
mv ntp.conf /etc/

chkconfig --add cfexecd
chkconfig --add ntpd

echo 'cfagent -q -vv -D setup | tee ~/cf.log' >> /etc/rc.local
----------------------------------

        This, as you'll probably recognise, installs the updates (best
done ASAP) and cfengine, copies across the cfengine config, and ensures
that cfagent is run immediately on startup.  It also ensures that the time
is synchronised -- without that, cfengine doesn't always work.  As far as
I know, it doesn't conflict with cfengine's package management stuff
either.

        :)

--
Tim Nelson
Systems Administrator
Sunet Internet
Tel: +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au






reply via email to

[Prev in Thread] Current Thread [Next in Thread]