Last change
on this file since 5714 was 5230, checked in by rick, 19 years ago |
Made more generic
/filelist will be filelist
/nodelist will return nodelist
added option to remove certain dirs at the nodedir
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/usr/bin/perl -w
|
---|
2 | #
|
---|
3 | # Variable file
|
---|
4 |
|
---|
5 | #debugging variable
|
---|
6 | $debug=0;
|
---|
7 |
|
---|
8 | #author credits
|
---|
9 | $author="feb 2003 jasper\@WirelessLeiden.NL \| maart 2005 rick\@WirelessLeiden.NL";
|
---|
10 |
|
---|
11 | #filelist
|
---|
12 | @filelist = ();
|
---|
13 | $filelist[0]="dhcpd.conf";
|
---|
14 | $filelist[2]="rc.node.local";
|
---|
15 | $filelist[3]="resolv.conf";
|
---|
16 | $filelist[4]="named.conf";
|
---|
17 | $filelist[6]="txtconfig";
|
---|
18 | $filelist[7]="authorized_keys";
|
---|
19 |
|
---|
20 | #Ignore this node diretories
|
---|
21 | %removefromnodelist = (
|
---|
22 | 'retired' => 'YES',
|
---|
23 | 'obsolete' => 'YES',
|
---|
24 | );
|
---|
25 |
|
---|
26 |
|
---|
27 | #(inter)net env
|
---|
28 | if( defined $ENV{'SERVER_NAME'} ) {
|
---|
29 | $hostname=$ENV{'SERVER_NAME'};
|
---|
30 | }
|
---|
31 | else {
|
---|
32 | $hostname=`hostname`;
|
---|
33 | };
|
---|
34 |
|
---|
35 | chomp($hostname);
|
---|
36 | $cgi_dir="http://$hostname/cgi-bin";
|
---|
37 | $source="$cgi_dir/g_list.pl";
|
---|
38 |
|
---|
39 | #path variablen
|
---|
40 | $home="/home/genesis";
|
---|
41 | $ndir="$home/nodes";
|
---|
42 | #$toolfile="$home/tools/wleiden.pl";
|
---|
43 | #Temp Svn fix
|
---|
44 | $toolfile="$home/tools/FreeBSD6_x/wleiden.pl";
|
---|
45 |
|
---|
46 |
|
---|
47 | #exec vars
|
---|
48 | $svn="/usr/local/bin/svn";
|
---|
49 | $wicontrol='/usr/sbin/wicontrol';
|
---|
50 |
|
---|
51 | #naming vars
|
---|
52 | $configfile="wleiden.conf";
|
---|
53 |
|
---|
54 | #module IP.pm
|
---|
55 | $IP_pmPath='/home/genesis/tools/IP.pm';
|
---|
56 |
|
---|
57 | #dnsheader.conf
|
---|
58 | $dnsheader_confPath='/home/genesis/dns/dnsheader.conf';
|
---|
59 |
|
---|
60 |
|
---|
61 | ## ssh key variablen ##
|
---|
62 | #global ssh_keys
|
---|
63 | $global_keyPath='/home/genesis/nodes/global_keys';
|
---|
64 | #node specific
|
---|
65 | $ssh_file='ssh_key'
|
---|
66 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.