diff options
author | Martin Schwenke <martin@meltin.net> | 2014-07-29 11:08:16 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-08-12 11:17:11 +1000 |
commit | 2808edf98da04f88b6db929ea21df42994aca323 (patch) | |
tree | e9fd1b2195f1d4e17cd5a424d1ce292d40789579 | |
parent | aa02a12144fe70147a22601be9452f43989a62b6 (diff) | |
download | autocluster-2808edf98da04f88b6db929ea21df42994aca323.tar.gz autocluster-2808edf98da04f88b6db929ea21df42994aca323.tar.xz autocluster-2808edf98da04f88b6db929ea21df42994aca323.zip |
Make some configuration variables depend on KVMHOST @uto
Signed-off-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | config.d/00base.defconf | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/config.d/00base.defconf b/config.d/00base.defconf index c93b456..0e291b9 100644 --- a/config.d/00base.defconf +++ b/config.d/00base.defconf @@ -18,7 +18,7 @@ defconf NODES "nas:0-3 rhel_base:4" \ # cluster filesystem. This is useful for compiles, RPMs, devel # scripts etc you need to add this to your /etc/exports and run # exportfs -av yourself on the virtualisation host -defconf NFSSHARE "10.0.0.1:/home" \ +defconf NFSSHARE "@uto" \ "<mnt>" "NFS share to mount on each node" defconf NFS_MOUNTPOINT "/home" \ @@ -215,10 +215,7 @@ defconf DOMAIN "EXAMPLE.COM" \ defconf WORKGROUP "EXAMPLE" \ "<grp>" "Windows(TM) workgroup for node" -# DNS name server. Usually set this to the -# kvm host, then setup DNS on the kvm host to direct -# queries for the windows domain name to the w2003 server -defconf NAMESERVER "10.0.0.1" \ +defconf NAMESERVER "@uto" \ "<ip>" "DNS server for each node" defconf DNSSEARCH "$DOMAIN" \ @@ -489,6 +486,18 @@ rhel_post_config_hook () if [ "$RHEL_MULTIPATH_MAGIC" = "@uto" ] ; then RHEL_MULTIPATH_MAGIC=$(rhel_get_multipath_magic) || exit $? fi + + if [ "$NAMESERVER" = "@uto" ] ; then + NAMESERVER="$KVMHOST" + fi + + if [ "$INSTALL_SERVER" = "@uto" ] ; then + INSTALL_SERVER="http://${KVMHOST}/mediasets" + fi + + if [ "$NFSSHARE" = "@uto" ] ; then + NFSSHARE="10.0.0.1:/home" + fi } register_hook post_config_hooks rhel_post_config_hook @@ -508,7 +517,7 @@ defconf ISO "@uto" \ "<file>" "ISO image for base image creation" # the install server where we will get local packages from -defconf INSTALL_SERVER "http://10.0.0.1/mediasets" \ +defconf INSTALL_SERVER "@uto" \ "<url>" "URL of install server" defconf CONFIG_EXTRA_PACKAGES "" \ |