Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Managing multiple systems with identical hardware
Date: Fri, 27 Sep 2013 19:49:52
Message-Id: 5245E03A.2020605@gmail.com
In Reply to: Re: [gentoo-user] Managing multiple systems with identical hardware by Grant
1 On 27/09/2013 12:37, Grant wrote:
2 >>> I realized I only need two types of systems in my life. One hosted
3 >>> server and bunch of identical laptops. My laptop, my wife's laptop,
4 >>> our HTPC, routers, and office workstations could all be on identical
5 >>> hardware, and what better choice than a laptop? Extremely
6 >>> space-efficient, portable, built-in UPS (battery), and no need to buy
7 >>> a separate monitor, keyboard, mouse, speakers, camera, etc. Some
8 >>> systems will use all of that stuff and some will use none, but it's
9 >>> OK, laptops are getting cheap, and keyboard/mouse/video comes in handy
10 >>> once in a while on any system.
11 >>
12 >> Laptops are a good choice, desktops are almost dead out there, and thin
13 >> clients nettops are just dead in the water for anything other than
14 >> appliances and media servers
15 >>
16 >>> What if my laptop is the master system and I install any application
17 >>> that any of the other laptops need on my laptop and push its entire
18 >>> install to all of the other laptops via rsync whenever it changes?
19 >>> The only things that would vary by laptop would be users and
20 >>> configuration.
21 >>
22 >> Could work, but don't push *your* laptop's config to all the other
23 >> laptops. they end up with your stuff which might not be what them to
24 >> have. Rather have a completely separate area where you store portage
25 >> configs, tree, packages and distfiles for laptops/clients and push from
26 >> there.
27 >
28 > I actually do want them all to have my stuff and I want to have all
29 > their stuff. That way everything is in sync and I can manage all of
30 > them by just managing mine and pushing. How about pushing only
31 > portage configs and then letting each of them emerge unattended? I
32 > know unattended emerges are the kiss of death but if all of the
33 > identical laptops have the same portage config and I emerge everything
34 > successfully on my own laptop first, the unattended emerges should be
35 > fine.
36
37 Within those constraints it could work fine. The critical stuff to share
38 is make.conf and /etc/portage/*, everything else can be shared to
39 greater or lesser degree and you can undo things on a whim if you wish.
40
41 There's one thing that we haven't touched on, and that's the hardware.
42 Are they all identical hardware items, or at least compatible? Kernel
43 builds and hardware-sensitive apps like mplayer are the top reasons
44 you'd want to centralize things, but those are the very apps that will
45 make sure life miserable trying to fins commonality that works in all
46 cases. So do keep hardware needs in mind when making purchases.
47
48 Personally, I wouldn't do the building and pushing on my own laptop,
49 that turns me inot the central server and updates only happen when I'm
50 in the office. I'd use a central build host and my laptop is just
51 another client. Not all that important really, the build host is just an
52 address from the client's point of view
53
54
55
56 >
57 >> I'd recommend if you have a decent-ish desktop lying around, you press
58 >> that into service as your master build host. yeah, it takes 10% longer
59 >> to build stuff, but so what? Do it overnight.
60 >
61 > Well, my goal is to minimize the number of different systems I
62 > maintain. Hopefully just one type of laptop and a server.
63 >
64 >>> Maybe puppet could help with that? It would almost be
65 >>> like my own distro. Some laptops would have stuff installed that they
66 >>> don't need but at least they aren't running Fedora! :)
67 >>
68 >> DO NOT PROVISION GENTOO SYSTEMS FROM PUPPET.
69 >
70 > OK, I'm thinking over how much variation there would be from laptop to laptop:
71 >
72 > 1. /etc/runlevels/default/* would vary of course.
73 > 2. /etc/conf.d/net would vary for the routers and my laptop which I
74 > sometimes use as a router.
75 > 3. /etc/hostapd/hostapd.conf under the same conditions as #2.
76 > 4. Users and /home would vary but the office workstations could all be
77 > identical in this regard.
78 >
79 > Am I missing anything? I can imagine everything else being totally identical.
80 >
81 > What could I use to manage these differences?
82
83 I'm sure there are numerous files in /etc/ with small niggling
84 differences, you will find these as you go along.
85
86 In a Linux world, these files actually do not subject themselves to
87 centralization very well, they really do need a human with clue to make
88 a decision whilst having access to the laptop in question. Every time
89 we've brain-stormed this at work, we end up with only two realistic
90 options: go to every machine and configure it there directly, or put
91 individual per-host configs into puppet and push. It comes down to the
92 same thing, the only difference is the location where stuff is stored.
93
94 I'm slowly coming to conclsuion that you are trying to solve a problem
95 with Gentoo that binary distros already solved a very long time ago. You
96 are forcing yourself to become the sole maintainer of GrantOS and do all
97 the heavy lifting of packaging. But, Mint and friends already did all
98 that work already and frankly, they are much better at it than you or I.
99
100 I would urge you to take a good long hard look at exactly why a binary
101 distro is not suitable, as I feel that would solve all your issues. Run
102 Gentoo on your server or even personal laptop by all means where you can
103 tweak it endlessly to your heart's content, but is that really your
104 requirement for the other workstations in your environment?
105
106 >
107 >> Rather keep your laptop as your laptop with it's own setup, and
108 >> everything else as that own setup. You only need one small difference
109 >> between what you want your laptop to have, and everything else to have,
110 >> to crash that entire model.
111 >
112 > I think it will work if I can find a way to manage the few differences
113 > above. Am I overlooking any potential issues?
114 >
115 > - Grant
116 >
117
118
119 --
120 Alan McKinnon
121 alan.mckinnon@×××××.com

Replies

Subject Author
[gentoo-user] Re: Managing multiple systems with identical hardware James <wireless@×××××××××××.com>
Re: [gentoo-user] Managing multiple systems with identical hardware Grant <emailgrant@×××××.com>