mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 19:52:03 +00:00
48 lines
1.5 KiB
Perl
48 lines
1.5 KiB
Perl
#!/usr/bin/env perl
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
package probe_global_constant;
|
|
|
|
#The type of log
|
|
$::LOGTYPE_RSYSLOG = 0; #rsyslog
|
|
$::LOGTYPE_HTTP = 1; #apache log
|
|
|
|
#The lable of specific line log
|
|
$::LOGLABEL_DHCPD = 0;
|
|
$::LOGLABEL_TFTP = 1;
|
|
$::LOGLABEL_HTTP = 2;
|
|
$::LOGLABEL_XCAT = 3;
|
|
$::LOGLABEL_UNDEF = 4;
|
|
|
|
#The important stage of provision process
|
|
$::STATE_POWER_ON = 1;
|
|
$::STATE_POWERINGON = 2;
|
|
$::STATE_DHCP = 3;
|
|
$::STATE_BOOTLODER = 4;
|
|
$::STATE_KERNEL = 5;
|
|
$::STATE_INITRD = 6;
|
|
$::STATE_KICKSTART = 7;
|
|
$::STATE_INSTALLING = 8;
|
|
$::STATE_INSTALLRPM = 9;
|
|
$::STATE_POSTSCRIPT = 10;
|
|
$::STATE_BOOTING = 11;
|
|
$::STATE_POSTBOOTSCRIPT = 12;
|
|
$::STATE_COMPLETED = 13;
|
|
|
|
#The description of every important stage of provision process
|
|
%::STATE_DESC = (
|
|
$::STATE_POWER_ON => "rpower_to_install",
|
|
$::STATE_POWERINGON => "powering_on",
|
|
$::STATE_DHCP => "got_ip_from_dhcp",
|
|
$::STATE_BOOTLODER => "download_bootloder",
|
|
$::STATE_KERNEL => "download_kernel",
|
|
$::STATE_INITRD => "download_initrd",
|
|
$::STATE_KICKSTART => "download_kickstart",
|
|
$::STATE_INSTALLING => "installing",
|
|
$::STATE_INSTALLRPM => "start_to_install_os_package",
|
|
$::STATE_POSTSCRIPT => "running_postscripts",
|
|
$::STATE_BOOTING => "booting",
|
|
$::STATE_POSTBOOTSCRIPT => "running_postbootscripts",
|
|
$::STATE_COMPLETED => "complete",
|
|
);
|
|
1;
|