summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Kickstart: Drop 2nd network interface configurationMartin Schwenke2015-04-011-1/+0
| | | | | | It isn't used and causes problems with RHEL 7.1. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Do not disable IPv6 stackAmitay Isaacs2014-11-251-1/+0
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Remove netmask from network_mapMartin Schwenke2014-11-251-1/+1
| | | | | | | This removes the /24 assumption, embeds the prefix into the ip field and calculates netmask in the only place it is needed. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move shared disk presence logic from nodes into shared disk codeMartin Schwenke2014-07-021-1/+1
| | | | | | | | | | | | | | | | | | | Currently this is distributed around the node logic and is hard to manage. Instead, introduce 2 new functions (well, meta-functions, called using call_func): * is_dedicated_storage_node() Defaults to false. Is true for sofs_storage. * node_has_shared_disks() Defaults to false. True for sofs_storage. True for sofs_front when there are no dedicated storage nodes. Signed-off-by: Martin Schwenke <martin@meltin.net>
* kickstart - Replacing multipath.conf here is redundantMartin Schwenke2014-07-021-18/+0
| | | | | | It is done later when nodes are created. Signed-off-by: Martin Schwenke <martin@meltin.net>
* kickstart - sadc has no -d option so don't add itMartin Schwenke2014-07-021-8/+0
| | | | | | | -S DISK is the default on at least RHEL 5 and 6, so that should collect the disk statistics we want. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Don't manually mess with ntpd, just enable it in kickstartMartin Schwenke2014-07-023-0/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update comments in basic post-installMartin Schwenke2014-07-021-1/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename some kickstart variables to start with "KS_"Martin Schwenke2014-07-021-7/+7
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove add_extra_package() and add_extra_chkconfig()Martin Schwenke2014-07-021-2/+0
| | | | | | | | | These were a hack to get around EXTRA_PACKAGES having a default non-empty value. That's no longer true. Just use EXTRA_PACKAGES and EXTRA_CHKCONFIGS directly. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Enable nfslock in services file instead of in basic post-installMartin Schwenke2014-07-024-8/+1
| | | | | | Note sure why it was done this way... Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename configuration variable GATEWAY to KVMHOSTMartin Schwenke2014-06-251-2/+4
| | | | | | | | | | | | | A previous commit meant that the value of GATEWAY is no longer used as the gateway for the default network route, so renaming the variable adds clarity. This means that GATEWAY is no longer available to kickstart via the basic post-install script. So generate some new variables INSTALL_GW and INSTALL_IP in create_base() and tweak the post-install logic to use them. Signed-off-by: Martin Schwenke <martin@meltin.net>
* "poweroff" when kickstart is completeMartin Schwenke2014-06-251-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Initial RHEL 7 service enable/disable fileMartin Schwenke2014-06-251-0/+19
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add packages list for RHEL 7.0Martin Schwenke2014-06-251-0/+55
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove INSTALLKEY configuration variableMartin Schwenke2014-06-251-1/+0
| | | | | | | | RHEL 7.0 kickstart fails on "key" directive so remove this "feature". We haven't actually used it for a long time. If needed then do it post-kickstart. Signed-off-by: Martin Schwenke <martin@meltin.net>
* RHEL 7.0 kickstart needs %end for %packages sectionMartin Schwenke2014-06-251-0/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* RHEL 7.0 can't use --initlabel with --drivesMartin Schwenke2014-06-251-2/+2
| | | | | | | | It claims that it needs --all but it seems to work with --linux. --all is potentially nasty because it also relabels the kickstart disk. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Support RHEL 7.0 "well known" network interface names in kickstartMartin Schwenke2014-06-251-6/+17
| | | | | | | | | The names aren't easy for autocluster to guess so hack to find the first ethernet interface. Also remove any ifcfg-* ethernet-related configuration files. Signed-off-by: Martin Schwenke <martin@meltin.net>
* RHEL 7 needs different boot options to support kickstartMartin Schwenke2014-06-251-6/+2
| | | | | | | | | | | | | | It no longer supports ks=floppy and needs inst.stage2 to point to the DVD image. Label the "floppy" as "KICKSTART" regardless of the version - this does no harm. If running RHEL >= 7 then set up the kickstart "floppy" as a hard disk in libvirt and have the kernel command-line point to the label. Also set inst.stage2 so it can find root device to install from. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move service enable/disable in kickstart to per-RHEL config fileMartin Schwenke2014-06-173-32/+65
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename gpfs-nas-kickstart.cfg since it no longer references GPFSMartin Schwenke2014-06-171-0/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move GPFS path setting from to GPFS-specific codeMartin Schwenke2014-06-171-7/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix NETWORKS configuration to support non-standard interface namesMartin Schwenke2013-03-121-10/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variable NETWORKS - IPBASE, IPNET* no longer usedMartin Schwenke2013-03-053-26/+3
| | | | | | | | | Much more flexible network configuration. Replace canned host_setup/etc/libvirt/qemu/networks/*.xml with setup_networks.sh script. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Kickstart: Move modprobe.conf config to a file that isn't deprecatedMartin Schwenke2012-07-231-1/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix base creation with newer libvirt and/or qemu-kvmMartin Schwenke2012-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seeing this problem: qemu: could not load PC BIOS '[...]/tmp/isolinux.bin' From the libvirt NEWS file: 0.9.12: May 14 2012: ... - Bug Fixes: ... Wire up <loader> to set the QEMU BIOS path (Daniel P. Berrange), ... So, it looks like we've been misusing <loader> forever, since it is meant to be BIOS and not bootloader, but this bug fix has exposed that. "isolinux.bin" isn't present in the qemu-kvm command-line on the older machines. This suggests that libvirt hasn't been able to do anything "useful" with the <loader> option... until now... ;-) The libvirt documentation seems to suggest that it would be correct to use <bootloader> instead of <loader>. However, it also seems to imply that if you use <kernel> then you probably don't need <bootloader>. So, for now, I'm deleting the <loader> option from install.xml. If this causes problems then can someone please try <bootloader>? :-) Signed-off-by: Martin Schwenke <martin@meltin.net>
* Kickstart: suddenly we need zerombr with RHEL6.3 guestsMartin Schwenke2012-07-091-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Change default package lists to have no desktop/X.Martin Schwenke2012-05-225-112/+112
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add openssl-devel to RHEL6.packagesMartin Schwenke2012-05-221-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Make EXTRA_PACKAGES null by defaultMartin Schwenke2012-05-223-0/+6
| | | | | | | This shouldn't change anything since the packages mentioned in the old default have been added to the package lists as appropriate. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove old SoFS-releated filesMartin Schwenke2012-05-221-194/+0
| | | | | | | | | | | kickstart-SoFS.cfg is superceded by gpfs-nas-kickstart.cfg, which is now the default. SoFS-postinstall.sh is superceded by gpfs-nas-postinstall.cfg. The contents of releases/ and imacros/ are no longer of any value. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Merge remote-tracking branch 'amitay/master'Martin Schwenke2012-05-223-10/+2
|\
| * Exclude samba and ctdb packages from RHEL repoAmitay Isaacs2012-05-213-10/+2
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* | Add openssl-devel to RHEL6-no-desktop.packagesMartin Schwenke2012-05-081-0/+1
|/ | | | | | GPFS needs it. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Devel additions to RHEL6 package listsMartin Schwenke2012-05-072-0/+5
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* NFS client setup fixesMartin Schwenke2012-05-073-0/+9
| | | | | | | | | Install nfs-utils on RHEL6. Enable nfslock in the basic postinstall - NFS client functionality is used on client nodes and not just on cluster nodes. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Added RHEL5-minimal.packages template to allow building minimal nodesMartin Schwenke2012-04-241-0/+24
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add packages for basic kerberos toolsAmitay Isaacs2012-03-051-0/+1
|
* uuid support required for building samba4Amitay Isaacs2012-03-051-0/+1
|
* Merge remote-tracking branch 'amitay/master'Martin Schwenke2012-02-093-2/+5
|\
| * Added packages required for gpfs rpmsAmitay Isaacs2012-02-061-0/+2
| |
| * Add package required for building samba rpmsAmitay Isaacs2012-02-061-0/+1
| |
| * Specify netmask (/24) when configuring interfaceAmitay Isaacs2012-01-301-1/+1
| |
| * Add missing type option for qemu driverAmitay Isaacs2012-01-301-1/+1
| |
* | Configure YUM plugins off in basic postinstallMartin Schwenke2012-02-091-0/+5
|/ | | | | | | The fastest mirror plugin (used by CentOS and Fedora) is particularly annoying because we don't tend to even use the standard mirrors. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Explicitly set disk image type to $BASE_FORMAT in install.xml.Martin Schwenke2011-02-101-1/+1
| | | | | | If you don't specify a type then RHEL6's KVM default it to 'raw'. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Explicitly set disk image type to $SYSTEM_DISK_FORMAT in node.xml.Martin Schwenke2011-02-101-1/+1
| | | | | | If you don't specify a type then RHEL6's KVM default it to 'raw'. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add initial "no desktop" package listing for RHEL6.Martin Schwenke2011-02-081-0/+52
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Change handling of packages in kickstart with new variable RHEL_PACKAGES.Martin Schwenke2011-01-184-202/+158
| | | | | | | | | | | | | $RHEL_PACKAGES points to a file containing the standard package list, which is inserted into the kickstart packages section along with $_EXTRA_RHEL_PACKAGES and $EXTRA_PACKAGES. The old packages list is in RHEL5.packages, with an initial list of RHEL6 in RHEL6.packages. The RHEL5 list has been slightly updated in the area of compat packages. The default value of $RHEL_PACKAGES invokes new function rhel_package_list(), which prints the contents of the packages file corresponding to the current $RHEL_VERSION. Signed-off-by: Martin Schwenke <martin@meltin.net>