Last change
on this file since b06744b was
4e794c9f,
checked in by Ted Faber <faber@…>, 17 years ago
|
convert illegible testbeds files to something more readable
|
-
Property mode set to
100644
|
File size:
703 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | |
---|
3 | use IO::File; |
---|
4 | |
---|
5 | # Read a hash of per-testbed parameters from the local configurations. |
---|
6 | $conf = new IO::File(shift) || |
---|
7 | die "can't read testbed configutions from $tb_config: $!\n"; |
---|
8 | while (<$conf>) { |
---|
9 | next if /^#/; |
---|
10 | chomp; |
---|
11 | ($tb, $h, $d, $u, $p, $es, $gs, $mes, $mgs, $t, $i, $fs, $boss, $tun) = |
---|
12 | split(":", $_); |
---|
13 | |
---|
14 | # Make sure the domain starts with a period |
---|
15 | $d = ".$d" unless $d =~ /^\./; |
---|
16 | |
---|
17 | print <<END; |
---|
18 | [$tb] |
---|
19 | OpsNode: $h |
---|
20 | User: $u |
---|
21 | Domain: $d |
---|
22 | Project: $p |
---|
23 | ConnectorType: $t |
---|
24 | ConnectorImage: $i |
---|
25 | SlaveNodeStartCmd: $es |
---|
26 | SlaveConnectorStartCmd: $gs |
---|
27 | MasterNodeStartCmd: $mes |
---|
28 | MasterConnectorStartCmd: $mgs |
---|
29 | FileServer: $fs |
---|
30 | Boss: $boss |
---|
31 | TunnelCfg: $tun |
---|
32 | |
---|
33 | END |
---|
34 | } |
---|
35 | $conf->close(); |
---|
Note: See
TracBrowser
for help on using the repository browser.