From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QevMf-0001Gt-AC for garchives@archives.gentoo.org; Thu, 07 Jul 2011 20:40:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D36821C020; Thu, 7 Jul 2011 20:38:20 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id C34A721C020 for ; Thu, 7 Jul 2011 20:38:19 +0000 (UTC) Received: by wwf26 with SMTP id 26so1211666wwf.10 for ; Thu, 07 Jul 2011 13:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=FypAdqy2SH06wvh7liqAldO7Ue1dy7BHYuRg3ezauMM=; b=t4phbKrxKsrB/tlUSr2+1Y84VnKMVamRq3su6Yiz50LsD9KzGf9pG0dVedmZycO5Kz pNlIuN34UdmMyiS3dCpDJluAIcStE1In/2/tT1uFDfEWHxeeD4XEUGkn8hmDQKv1Ip+2 2v8SrHSCAX0dwsr6sFnj8l1mRtm0A2lglDTZU= Received: by 10.227.153.8 with SMTP id i8mr1095067wbw.64.1310071098928; Thu, 07 Jul 2011 13:38:18 -0700 (PDT) Received: from nazgul.localnet (196-215-19-196.dynamic.isadsl.co.za [196.215.19.196]) by mx.google.com with ESMTPS id n18sm7159684wbh.23.2011.07.07.13.38.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 13:38:17 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Cc: kashani Subject: Re: [gentoo-user] Managing multiple Gentoo systems Date: Thu, 07 Jul 2011 22:37:13 +0200 Message-ID: <2206705.m0niYJH5nW@nazgul> User-Agent: KMail/4.6.0 (Linux/2.6.39-ck; KDE/4.6.4; x86_64; ; ) In-Reply-To: <4E15F993.1080901@badapple.net> References: <4E15F993.1080901@badapple.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-Archives-Salt: X-Archives-Hash: e79f0eabdc9ba56677041b9a98f0e9c3 On Thursday 07 July 2011 11:23:15 kashani did opine thusly: > On 7/2/2011 3:14 PM, Grant wrote: > > After a frustrating experience with a Linksys WRT54GL, I've > > decided to stick with Gentoo routers. This increases the > > number of Gentoo systems I'm responsible for and they're > > nearing double-digits. What can be done to make the management > > of multiple Gentoo systems easier? I think identical hardware > > in each system would help a lot but I'm not sure that's > > practical. I need to put together a bunch of new workstations > > and I'm thinking some sort of server/client arrangement with > > the only Gentoo install being on the server could be > > appropriate. > > > > - Grant > > You may want to look at something like a config management system. > I'm using Puppet these days, but Gentoo support isn't spectacular. > It would be a bit complex to have Puppet install the packages with > the correct USE flags. However you could use Puppet to manage all > the text files and then manage the packages somewhat manually. Give chef a try. It overcomes a lot of the issue puppet ran into, and of course makes new ones all of it's won, but by and large chef is more flexible. > > Here's a snippet of a template for nrpe.cfg > > <% if processorcount.to_i >= 12 then -%> > command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir') > %>/check_load -w 35,25,25 -c 35,25,25 > <% elsif fqdn =~ /(.*)stage|demo(.*)/ then -%> > command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir') > %>/check_load -w 10,10,10 -c 10,10,10 > <% else -%> > command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir') > %>/check_load -w 10,7,5 -c 10,7,5 > <% end -%> > > If you were managing a make.conf you could set -j<%= > processorcount*2 %> or whatever as well as pass in your own > settings etc. Once you have things working it's pretty good at > keeping your servers in sync and doing minor customization per > server based on OS, hardware, IP, hostname, etc. > > kashani -- alan dot mckinnon at gmail dot com