7 our $ip = '172.16.10.1';
8 our $netmask = '255.255.255.0';
10 our ( $ip_from, $ip_to ) = ( 10, 100 );
12 our $domain_name = 'pxelator.lan';
14 our $base_dir = '/srv/pxelator';
16 use Module::Refresh qw//;
17 sub refresh { Module::Refresh->refresh };
19 mkdir $_ foreach grep { ! -e $_ } map { "$base_dir/conf/$server::ip/$_" } ( 'ip', 'mac', 'hostname', 'deploy' );
23 my ($name, $value) = @_;
25 my $path ="$base_dir/conf/$server::ip/$name";
26 if ( defined $value ) {
27 write_file $path, $value;
28 warn "update $path = $value";
30 $value = read_file $path if -e $path;
35 sub debug { shared('debug', @_) || 0 }