/[pxelator]/lib/PXElator/config.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/config.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 277 by dpavlin, Thu Aug 20 19:00:13 2009 UTC revision 317 by dpavlin, Thu Aug 27 20:00:30 2009 UTC
# Line 13  use File::Slurp; Line 13  use File::Slurp;
13    
14  our $mounted;  our $mounted;
15    
16  sub available { qw/debian_live webconverger debirf tinycore nfsroot/ };  sub available { qw/debian_live webconverger debirf tinycore nfsroot openvz_host openvz_ve printer wrt/ };
17    
18  sub debian_live {  sub debian_live {
19          my ($ip) = @_;          my ($ip) = @_;
# Line 168  iface eth0 inet dhcp Line 168  iface eth0 inet dhcp
168    
169          };          };
170    
171            map {
172                    file::copy_once $_ => "$export/$_";
173                    file::append "$export/etc/rc.local", $_;
174            } ( '/srv/sysadmin-cookbook/recepies/amt/serial-console.sh' );
175    
176          pxelinux::config_for_ip( $ip, qq{          pxelinux::config_for_ip( $ip, qq{
177    
# Line 179  label nfsroot Line 183  label nfsroot
183          });          });
184  }  }
185    
186    sub openvz_host {}
187    sub openvz_ve   {}
188    sub printer     {}
189    sub wrt         {}
190    
191  sub for_ip {  sub for_ip {
192          my $ip = shift;          my $ip = shift || return;
193          my $deploy = client::conf( $ip => 'deploy', default => 'webconverger' );          my $deploy = client::conf( $ip => 'deploy' ) || return;
194          eval $deploy . '($ip)';          eval $deploy . '($ip)';
195  #       $tftp::dir = "$server::base_dir/tftp/$pxelinux::path_prefix";  #       $tftp::dir = "$server::base_dir/tftp/$pxelinux::path_prefix";
196  }  }

Legend:
Removed from v.277  
changed lines
  Added in v.317

  ViewVC Help
Powered by ViewVC 1.1.26