Gentoo Archives: gentoo-user

From: kashani <kashani-list@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Managing multiple Gentoo systems
Date: Thu, 07 Jul 2011 18:24:37
Message-Id: 4E15F993.1080901@badapple.net
In Reply to: [gentoo-user] Managing multiple Gentoo systems by Grant
1 On 7/2/2011 3:14 PM, Grant wrote:
2 > After a frustrating experience with a Linksys WRT54GL, I've decided to
3 > stick with Gentoo routers. This increases the number of Gentoo
4 > systems I'm responsible for and they're nearing double-digits. What
5 > can be done to make the management of multiple Gentoo systems easier?
6 > I think identical hardware in each system would help a lot but I'm not
7 > sure that's practical. I need to put together a bunch of new
8 > workstations and I'm thinking some sort of server/client arrangement
9 > with the only Gentoo install being on the server could be appropriate.
10 >
11 > - Grant
12 >
13
14 You may want to look at something like a config management system. I'm
15 using Puppet these days, but Gentoo support isn't spectacular. It would
16 be a bit complex to have Puppet install the packages with the correct
17 USE flags. However you could use Puppet to manage all the text files and
18 then manage the packages somewhat manually.
19
20 Here's a snippet of a template for nrpe.cfg
21
22 <% if processorcount.to_i >= 12 then -%>
23 command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir')
24 %>/check_load -w 35,25,25 -c 35,25,25
25 <% elsif fqdn =~ /(.*)stage|demo(.*)/ then -%>
26 command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir')
27 %>/check_load -w 10,10,10 -c 10,10,10
28 <% else -%>
29 command[check_load]=<%= scope.lookupvar('nrpe::params::pluginsdir')
30 %>/check_load -w 10,7,5 -c 10,7,5
31 <% end -%>
32
33 If you were managing a make.conf you could set -j<%= processorcount*2 %>
34 or whatever as well as pass in your own settings etc. Once you have
35 things working it's pretty good at keeping your servers in sync and
36 doing minor customization per server based on OS, hardware, IP,
37 hostname, etc.
38
39 kashani

Replies

Subject Author
Re: [gentoo-user] Managing multiple Gentoo systems Alan McKinnon <alan.mckinnon@×××××.com>