1 |
>>>>> I see what you desire now - essentially you want to clone your laptop |
2 |
>>>>> (or big chunks of it) over to your other workstations. |
3 |
|
4 |
I've been working on this and I think I have a good and simple plan. |
5 |
|
6 |
My laptop roams around with me and is the "master" system. The office |
7 |
router is the "submaster" system. All of the other office systems are |
8 |
"minion" systems. All of the systems are 100% hardware-identical |
9 |
laptops. All of the minions are 100% software-identical. |
10 |
|
11 |
I install every package that any system needs on the master and create |
12 |
an SSH keypair. The only config files that change from their state on |
13 |
the master are: /etc/conf.d/hostname, /etc/conf.d/net, |
14 |
/etc/ssh/sshd_config, /etc/shorewall/*. I write comments in those |
15 |
files which serve as flags for scripted changes. |
16 |
|
17 |
I write a script that is run from the master to the submaster, or from |
18 |
the submaster to a minion. If it's the former, rsync / is run with |
19 |
exceptions (/usr/portage, /usr/local/portage, /var/log, /tmp, /home, |
20 |
/root but /root/.ssh/id_rsa_script* is included), my personal user is |
21 |
removed, a series of workstation users are created with useradd -m, |
22 |
services are added or removed from /etc/runlevels/default, and config |
23 |
files are changed according to comment flags. If it's the latter, |
24 |
rsync / is run without exceptions, services are added or removed from |
25 |
/etc/runlevels/default, and config files are changed according to |
26 |
comment flags. |
27 |
|
28 |
All user info on the submaster and minions would be effectively reset |
29 |
whenever the script is run and that's fine. Root logins would have to |
30 |
be allowed on the submaster and minions but only with the SSH key. |
31 |
There are probably more paths to exclude when rsyncing master to |
32 |
submaster. |
33 |
|
34 |
That's it. No matter how numerous the minions become, this should |
35 |
allow me to keep everything running by administrating only my own |
36 |
system, pushing that to the submaster, and having the submaster push |
37 |
to the minions. I've been going over the nitty-gritty and everything |
38 |
looks good. |
39 |
|
40 |
What do you think? Is there anything inherently wrong with rsyncing / |
41 |
onto a running system? If there are little or no changes to make, |
42 |
about how much data would actually be transferred? Is there a better |
43 |
tool for this than rsync? I know Funtoo uses git for syncing with |
44 |
their portage tree. |
45 |
|
46 |
- Grant |