Last change
on this file since 13256 was 9525, checked in by rick, 13 years ago |
Relocate to new paths
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[6664] | 1 | #!/usr/bin/perl -w
|
---|
[7273] | 2 | use Cwd;
|
---|
[6664] | 3 | #
|
---|
| 4 | # Variable file
|
---|
| 5 |
|
---|
| 6 | $NG = 0;
|
---|
| 7 |
|
---|
| 8 | #debugging variable
|
---|
| 9 | $debug=0;
|
---|
| 10 |
|
---|
| 11 | #author credits
|
---|
[7036] | 12 | $author="feb 2003 jasper\@WirelessLeiden.NL \| maart 2005/jul 2009 rick\@WirelessLeiden.NL";
|
---|
[6664] | 13 |
|
---|
| 14 | #filelist
|
---|
| 15 | @filelist = ();
|
---|
[7523] | 16 | #$filelist[0]="dhcpd.conf";
|
---|
[7521] | 17 | $filelist[1]="rc.conf.local";
|
---|
[6664] | 18 | $filelist[2]="resolv.conf";
|
---|
[7036] | 19 | #$filelist[3]="named.conf";
|
---|
[6664] | 20 | $filelist[4]="txtconfig";
|
---|
| 21 | $filelist[5]="authorized_keys";
|
---|
[7141] | 22 | $filelist[6]="dnsmasq.conf";
|
---|
[8802] | 23 | $filelist[7]="wleiden.conf";
|
---|
[6664] | 24 |
|
---|
[8802] | 25 |
|
---|
[6664] | 26 | #Ignore this node diretories
|
---|
| 27 | %removefromnodelist = (
|
---|
| 28 | 'retired' => 'YES',
|
---|
| 29 | 'obsolete' => 'YES',
|
---|
| 30 | );
|
---|
| 31 |
|
---|
| 32 | #(inter)net env
|
---|
| 33 | if( defined $ENV{'SERVER_NAME'} ) {
|
---|
| 34 | $hostname=$ENV{'SERVER_NAME'};
|
---|
| 35 | }
|
---|
| 36 | else {
|
---|
[8672] | 37 | # $hostname=`hostname`;
|
---|
| 38 | $hostname='sunfire.wirelessleiden.nl';
|
---|
[6664] | 39 | };
|
---|
| 40 |
|
---|
| 41 | chomp($hostname);
|
---|
[9525] | 42 | $uri='/wleiden/config/iris/node/FreeBSD/8.0-RELEASE/g_list.pl/';
|
---|
[8672] | 43 | $cgi_dir="$uri";
|
---|
[8620] | 44 | $source="$cgi_dir";
|
---|
[6664] | 45 |
|
---|
| 46 | #path variablen
|
---|
[8676] | 47 | $home=getcwd;
|
---|
[8802] | 48 | $ndir="/usr/local/www/wlconfig/nodes/";
|
---|
[8676] | 49 | $toolfile="$home/wleiden.pl";
|
---|
[6664] | 50 |
|
---|
| 51 |
|
---|
| 52 | #exec vars
|
---|
| 53 | $svn="/usr/local/bin/svn";
|
---|
| 54 | $wicontrol='/usr/sbin/wicontrol';
|
---|
| 55 |
|
---|
| 56 | #naming vars
|
---|
| 57 | $configfile="wleiden.conf";
|
---|
| 58 |
|
---|
| 59 | #module IP.pm
|
---|
[8676] | 60 | $IP_pmPath="$home/IP.pm";
|
---|
[6664] | 61 |
|
---|
| 62 | #dnsheader.conf
|
---|
| 63 | $dnsheader_confPath="$home/dns/dnsheader.conf";
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 | ## ssh key variablen ##
|
---|
| 67 | #global ssh_keys
|
---|
[8677] | 68 | $global_keyPath="$home/../../../../../nodes/global_keys";
|
---|
[6664] | 69 | #node specific
|
---|
[8953] | 70 | $ssh_file='ssh_key';
|
---|
[6664] | 71 |
|
---|
[8953] | 72 | $domain="wLeiden.NET";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.