RPM [was: Re: bind dies with assertion failure]
Warren Kumari
warren at kumari.net
Tue Jul 3 18:03:27 UTC 2012
On Jul 3, 2012, at 10:58 AM, WBrown at e1b.org wrote:
> Jan-Piet wrote on 07/03/2012 10:41:20 AM:
>
>> Building BIND is easy; turning it into an installable RPM not so.
>> I highly recommend fpm [1] which makes building an RPM trivial. :)
>
> Any advice or tricks for making a DEB for Ubuntu?
>
> So far my plan was to copy the source directory to each server and just
> run "make install" on each. I'm only looking at 8 to 10 servers.
>
This got old for me really fast, so I ended up writing a small script to do this for me…
WARNING: This works for me, but doesn't do a huge amount of error checking, may completely trash your machine, cause male pattern baldness, etc.
It is in: http://www.auth-servers.net/files/named/upgrade_bind_unattended.sh
I run this out of cron every few minutes. It downloads a file called bind_versions.txt (from INSTRUCT_URL). This file contains key value pairs specifying the hostname and version of BIND that that host should be running, something like:
ns1: 9.9.1
ns2: 9.8.0
If the hostname is not running the specified version it will:
1: Delete everything in /usr/local/src/bind/ (!)
2: Download the source from ftp://ftp.isc.org/isc/bind9/$BIND_VER/
3: Check the GPG signature.
4: Build the new BIND and install it.
5: Restart BIND
6: Send mail saying that it is done…
I use puppet to push to install this script, and to setup a cronjob to run it (I could have done most of this in puppet itself, but that seems hard :-P)
Feel free to update / modify the script to make it work in your environment…
W
>
>
> Confidentiality Notice:
> This electronic message and any attachments may contain confidential or
> privileged information, and is intended only for the individual or entity
> identified above as the addressee. If you are not the addressee (or the
> employee or agent responsible to deliver it to the addressee), or if this
> message has been addressed to you in error, you are hereby notified that
> you may not copy, forward, disclose or use any part of this message or any
> attachments. Please notify the sender immediately by return e-mail or
> telephone and delete this message from your system.
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
--
She'd even given herself a middle initial - X - which stood for "someone who has a cool and exciting middle name".
-- (Terry Pratchett, Maskerade)
More information about the bind-users
mailing list