summaryrefslogtreecommitdiffstats
path: root/config.d
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-06-24 11:27:16 +1000
committerMartin Schwenke <martin@meltin.net>2014-07-02 14:17:17 +1000
commitb0c58b8a8fb72db26fa3c80979a666c46500e458 (patch)
tree44deeba9be54eccb264aa207c3e22a1e7909ea56 /config.d
parenta9b06655f6537bcbda5ce8d1a88a75a563fe963d (diff)
downloadautocluster-b0c58b8a8fb72db26fa3c80979a666c46500e458.tar.gz
autocluster-b0c58b8a8fb72db26fa3c80979a666c46500e458.tar.xz
autocluster-b0c58b8a8fb72db26fa3c80979a666c46500e458.zip
Move kickstart options to new 02kickstart.defconf
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'config.d')
-rw-r--r--config.d/00base.defconf51
-rw-r--r--config.d/02kickstart.defconf57
2 files changed, 57 insertions, 51 deletions
diff --git a/config.d/00base.defconf b/config.d/00base.defconf
index af84672..a2b6b55 100644
--- a/config.d/00base.defconf
+++ b/config.d/00base.defconf
@@ -162,9 +162,6 @@ defconf SYSTEM_DISK_MOUNTS "@uto" \
defconf TIMEZONE "" \
"<tz>" "timezone for each node"
-defconf KS_KEYBOARD "us" \
- "<kbd>" "keyboard layout for each node"
-
# how much disk space to use on each node
# note that it will only use what is actually occupied,
# so start this larger than you think you'll need
@@ -195,9 +192,6 @@ defconf NICMODEL "e1000" \
defconf ROOTPASSWORD "password" \
"<string>" "initial root password for each node"
-defconf KS_LANGUAGE "${LANG:-en_US.UTF-8}" \
- "<locale>" "locale for installer to use"
-
defconf NUMCPUS 2 \
"<n>" "number of virtual CPUs per node"
@@ -415,16 +409,6 @@ get_kvm_path ()
}
-ks_get_packages ()
-{
- echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
-}
-
-ks_get_services ()
-{
- echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
-}
-
rhel_get_install_kernel_options ()
{
case "$RHEL_VERSION" in
@@ -486,14 +470,6 @@ rhel_post_config_hook ()
KVM=$(get_kvm_path) || exit $?
fi
- if [ "$KS_RHEL_PACKAGES" = "@uto" ] ; then
- KS_RHEL_PACKAGES=$(ks_get_packages) || exit $?
- fi
-
- if [ "$KS_RHEL_SERVICES" = "@uto" ] ; then
- KS_RHEL_SERVICES=$(ks_get_services) || exit $?
- fi
-
if [ "$INSTALL_KERNEL_OPTIONS" = "@uto" ] ; then
INSTALL_KERNEL_OPTIONS=$(rhel_get_install_kernel_options) || exit $?
fi
@@ -515,10 +491,6 @@ defconf RHEL_ARCH "x86_64" \
defconf RHEL_VERSION "6.2" \
"<version>" "version of Red Hat Enterprise Linux to configure"
-defconf KS_RHEL_PACKAGES "@uto"
-
-defconf KS_RHEL_SERVICES "@uto"
-
defconf RHEL_MULTIPATH_MAGIC "@uto"
defconf ISO_DIR "/virtual/ISO" \
@@ -527,9 +499,6 @@ defconf ISO_DIR "/virtual/ISO" \
defconf ISO "@uto" \
"<file>" "ISO image for base image creation"
-defconf KICKSTART "$installdir/templates/nas-kickstart.cfg" \
- "<file>" "choice of kickstart file"
-
# the install server where we will get local packages from
defconf INSTALL_SERVER "http://10.0.0.1/mediasets" \
"<url>" "URL of install server"
@@ -539,26 +508,6 @@ defconf INSTALL_SERVER "http://10.0.0.1/mediasets" \
defconf YUM_TEMPLATE "$_YUM_TEMPLATE" \
"<file>" "location of template for yum repositories"
-# any extra packages to install. List one on each line. To force a package
-# not to be installed, list it with a leading -
-defconf KS_EXTRA_PACKAGES '' \
- "<list>" "extra packages for kickstart to install"
-
-defconf KS_EXTRA_CHKCONFIGS "" \
- "<chkconfigs>" "extra chkconfig commands to run in post-install"
-
-defconf KS_STANDARD_POSTINSTALL "$installdir/templates/basic-postinstall.sh" \
- "<file>" "standard kickstart postinstall script - change with care"
-
-defconf KS_POSTINSTALL_TEMPLATE "" \
- "<file>" "extra script to be incorporated into kickstart post-install"
-
-defconf KS_KERNEL_OPTS "rhgb console=tty1 console=ttyS0,19200 nodmraid nompath" \
- "<opts>" "options passed by kickstart to the kernel"
-
-defconf KS_DONE_MESSAGE "you may safely reboot your system|System halted.|Power down." \
- "<string>" "string indicating kickstart install is complete"
-
defconf INSTALL_KS_DEVICE_TEMPLATE "@uto"
##############################
diff --git a/config.d/02kickstart.defconf b/config.d/02kickstart.defconf
new file mode 100644
index 0000000..a09dec4
--- /dev/null
+++ b/config.d/02kickstart.defconf
@@ -0,0 +1,57 @@
+# Hey Emacs, this is a -*- shell-script -*- !!!
+
+defconf KICKSTART "$installdir/templates/nas-kickstart.cfg" \
+ "<file>" "choice of kickstart file"
+
+defconf KS_KEYBOARD "us" \
+ "<kbd>" "keyboard layout for each node"
+
+defconf KS_LANGUAGE "${LANG:-en_US.UTF-8}" \
+ "<locale>" "locale for installer to use"
+
+defconf KS_RHEL_PACKAGES "@uto"
+
+defconf KS_RHEL_SERVICES "@uto"
+
+# any extra packages to install. List one on each line. To force a package
+# not to be installed, list it with a leading -
+defconf KS_EXTRA_PACKAGES '' \
+ "<list>" "extra packages for kickstart to install"
+
+defconf KS_EXTRA_CHKCONFIGS "" \
+ "<chkconfigs>" "extra chkconfig commands to run in post-install"
+
+defconf KS_STANDARD_POSTINSTALL "$installdir/templates/basic-postinstall.sh" \
+ "<file>" "standard kickstart postinstall script - change with care"
+
+defconf KS_POSTINSTALL_TEMPLATE "" \
+ "<file>" "extra script to be incorporated into kickstart post-install"
+
+defconf KS_KERNEL_OPTS "rhgb console=tty1 console=ttyS0,19200 nodmraid nompath" \
+ "<opts>" "options passed by kickstart to the kernel"
+
+defconf KS_DONE_MESSAGE "you may safely reboot your system|System halted.|Power down." \
+ "<string>" "string indicating kickstart install is complete"
+
+ks_get_packages ()
+{
+ echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.packages"
+}
+
+ks_get_services ()
+{
+ echo "$installdir/templates/RHEL${RHEL_VERSION%%.*}.services"
+}
+
+ks_post_config_hook ()
+{
+ if [ "$KS_RHEL_PACKAGES" = "@uto" ] ; then
+ KS_RHEL_PACKAGES=$(ks_get_packages) || exit $?
+ fi
+
+ if [ "$KS_RHEL_SERVICES" = "@uto" ] ; then
+ KS_RHEL_SERVICES=$(ks_get_services) || exit $?
+ fi
+}
+
+register_hook post_config_hooks ks_post_config_hook