• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/SystemManagement/H19-Jun-2015-11483

ChangeLogH A D19-Jun-2015209 75

LICENSEH A D19-Jun-201517.6 KiB341281

MANIFESTH A D19-Jun-2015172 1110

META.ymlH A D19-Jun-2015284 119

Makefile.PLH A D19-Jun-2015469 1511

READMEH A D19-Jun-20151.2 KiB4632

TODOH A D19-Jun-2015207 95

ghostsH A D19-Jun-20152.7 KiB12317

gshH A D19-Jun-201512.4 KiB462204

README

1Well, this is seriously undocumented code.  The short version is:
2
3	perl Makefile.PL
4	make
5	make install
6
7And then create a file called /etc/ghosts which lists all the machines you
8want to contact.  It would look something like this:
9
10	# Macros
11	sunprod=solaris^e450
12	# Machines
13	#
14	# Name		Group		Hardware	OS
15	bilbo		prod		intel		linux
16	baggins		prod		e4500		solaris
17	tolkien		devel		e450		solaris
18
19Machine groups are run together with "+"s and "^"s as you see fit:
20
21	ghosts intel+e450
22
23	ghosts prod^intel
24
25The "ghosts" command just shows the resulting list.  "gsh" a group to run
26a command:
27
28	gsh devel+intel "cat /etc/motd"
29
30You'll need to have ssh set up with trusted RSA keys, though.  I should
31cover that in here too, but it's REALLY late tonight, and I just want to
32get this posted so my buddy will quite bugging me about downloading the
33"latest" version.  :P
34
35See the TODO file for the huge list of things I need to do.  Mostly
36documentation.  :)
37
38Credit where credit is due: this is very very losely based on the "gsh" tool
39that came (comes?) with the Perl distribution, and on extra work by
40Mike Murphy.  My version will do things in parallel, and does proper macro
41expansions.  It is released under the GNU General Public License.
42
43
44Kees Cook
45kees@outflux.net
46