Expect the following variables to be set:
TEMP_PATH somewhere to store what we need to run
BOOT_CD_VERSION A tuple of the current bootcd version
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
LVM_SETUP_2X_CD indicates if lvm is downloaded and setup for 2.x cds
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
# download and extract support tarball for this step,
# which has everything we need to successfully run
step_support_file= "alpina-BootLVM.tar.gz"
- source_file= "%s/%s" % (ALPINA_SERVER_DIR,step_support_file)
+ source_file= "%s/%s" % (SUPPORT_FILE_DIR,step_support_file)
dest_file= "%s/%s" % (TEMP_PATH, step_support_file)
log.write( "Downloading support file for this step\n" )
Expect the following variables to be set:
TEMP_PATH somewhere to store what we need to run
BOOT_CD_VERSION A tuple of the current bootcd version
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
PARTDISKS_SETUP_2X_CD indicates if lvm is downloaded and setup for 2.x cds
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
# download and extract support tarball for this step,
# which has everything we need to successfully run
step_support_file= "alpina-PartDisks.tar.gz"
- source_file= "%s/%s" % (ALPINA_SERVER_DIR,step_support_file)
+ source_file= "%s/%s" % (SUPPORT_FILE_DIR,step_support_file)
dest_file= "%s/%s" % (TEMP_PATH, step_support_file)
log.write( "Downloading support file for this step\n" )
SYSIMG_PATH=/mnt/tmp/sysimg
-# where the cacerts for the boot cd can be found
-# currently, this must start with /mnt/cdrom
-# which is hardcoded in the installer
-CACERT_PATH=/mnt/cdrom/bootme/cacert
-
-
# the nonce the boot cd created, need to authenticate
# requests that are made to the boot server
NONCE_FILE=/tmp/nonce
# directory on the boot server containing
-# alpina support files and scripts
-ALPINA_SERVER_DIR=/alpina-v3
+# support files and scripts
+SUPPORT_FILE_DIR=/boot
# this sets the size of the root logical volume,
Except the following variables from the store:
TEMP_PATH the path to download and store temp files to
- CACERT_PATH path where the cacerts on the bootcd live
SYSIMG_PATH the path where the system image will be mounted
(always starts with TEMP_PATH)
INSTALL_LANGS languages for install (used by rpm)
if TEMP_PATH == "":
raise ValueError, "TEMP_PATH"
- CACERT_PATH= vars["CACERT_PATH"]
- if CACERT_PATH == "":
- raise ValueError, "CACERT_PATH"
-
SYSIMG_PATH= vars["SYSIMG_PATH"]
if SYSIMG_PATH == "":
raise ValueError, "SYSIMG_PATH"
SYSIMG_PATH the path where the system image will be mounted
PARTITIONS dictionary of generic part. types (root/swap)
and their associated devices.
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
- INSTALL_LANGS languages for install (used by rpm)
NODE_ID the id of this machine
Sets the following variables:
if PARTITIONS == None:
raise ValueError, "PARTITIONS"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
-
- INSTALL_LANGS= vars["INSTALL_LANGS"]
- if INSTALL_LANGS == "":
- raise ValueError, "INSTALL_LANGS"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
NODE_ID= vars["NODE_ID"]
if NODE_ID == "":
# this step, which has everything
# we need to successfully run
step_support_file= "alpina-BootstrapRPM.tar.bz2"
- source_file= "%s/%s" % (ALPINA_SERVER_DIR,step_support_file)
+ source_file= "%s/%s" % (SUPPORT_FILE_DIR,step_support_file)
dest_file= "%s/%s" % (SYSIMG_PATH, step_support_file)
# 30 is the connect timeout, 7200 is the max transfer time
SYSIMG_DIR the directory name of the system image
contained in TEMP_PATH
PLCONF_DIR The directory to store the configuration file in
- ALPINA_SERVER_DIR The dir on the server where the support files are
Sets the following variables:
SYSIMG_PATH the directory where the system image will be mounted,
if PLCONF_DIR == "":
raise ValueError, "PLCONF_DIR"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == "":
- raise ValueError, "ALPINA_SERVER_DIR"
-
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
except ValueError, var:
TEMP_PATH somewhere to store what we need to run
ROOT_SIZE the size of the root logical volume
SWAP_SIZE the size of the swap partition
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
- scripts and support files
BOOT_CD_VERSION A tuple of the current bootcd version
Sets the following variables:
if SWAP_SIZE == "" or SWAP_SIZE == 0:
raise ValueError, "SWAP_SIZE invalid"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
-
BOOT_CD_VERSION= vars["BOOT_CD_VERSION"]
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
Expect the following variables from the store:
BOOT_CD_VERSION A tuple of the current bootcd version
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
Sets the following variables from the configuration file:
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
"""
BOOT_CD_VERSION= vars["BOOT_CD_VERSION"]
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
NETWORK_SETTINGS= vars["NETWORK_SETTINGS"]
if file_contents is None:
postVars= {"ifconfig" : ifconfig}
result= bs_request.DownloadFile( "%s/getnodeid.php" %
- ALPINA_SERVER_DIR,
+ SUPPORT_FILE_DIR,
None, postVars, 1, 1,
"/tmp/node_id")
if result == 0: