summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove add_extra_package() and add_extra_chkconfig()Martin Schwenke2014-07-022-22/+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>
* Remove create_cluster.shMartin Schwenke2014-07-021-123/+0
| | | | | | | | | | This is now: autocluster cluster destroy create update_hosts boot configure :-) Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add "cluster configure" commandMartin Schwenke2014-07-022-2/+46
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add new commands cluster [ destroy | update_hosts | boot ]Martin Schwenke2014-07-021-2/+64
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add new function announce() to print a header for an actionMartin Schwenke2014-07-021-0/+9
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename some of the internal functions to NOUN_VERBMartin Schwenke2014-06-251-6/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Allow command line with noun first and (potentially) multiple verbsMartin Schwenke2014-06-251-0/+46
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Make cluster name optional for "create cluster"Martin Schwenke2014-06-251-4/+18
| | | | | | | | It can either be specified in the configuration file via the CLUSTER variable. If it isn't set there then if the configuration file name is of the form "foo.autocluster" then the cluster name is "foo". Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove remainder of unused --with-release codeMartin Schwenke2014-06-251-9/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Generalise variables used in main case statementMartin Schwenke2014-06-251-4/+4
| | | | | | | About to introduce "noun verb ..." and want to avoid $command being a noun. :-) Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove testproxy optionMartin Schwenke2014-06-251-6/+0
| | | | | | Use "autocluster -e test_proxy" instead. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Support RHEL 7 multipath configuration changesMartin Schwenke2014-06-252-2/+17
| | | | | | | getuid_callout and udev_dir are no longer supported so don't use them. If serial numbers work with the shared disks then it will just work. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add shared disk ID as serial number in shared disk XMLMartin Schwenke2014-06-252-3/+4
| | | | | | | | | | | Hedge bets by continuing to write the ID to the image file. While touching this code, add the cluster name to the temporary filename for the shared disk ID map. Setting $shared_disk_ids needs to move to shared_disk_setup() so $CLUSTER can be used. Also need to update this path in mknsd.sh. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix the value of NETWORK_PRIVATE_PREFIX when there are optionsMartin Schwenke2014-06-251-1/+2
| | | | | | | The current calculation is incorrect when the private network has options. This causes broken hosts and CTDB nodes files. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Suggest selinux magic as well as chattr after create baseMartin Schwenke2014-06-251-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add chrony.conf for RHEL 7.0Martin Schwenke2014-06-251-0/+41
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename configuration variable GATEWAY to KVMHOSTMartin Schwenke2014-06-257-8/+33
| | | | | | | | | | | | | 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>
* Define gateway for default route in $NETWORKSMartin Schwenke2014-06-253-4/+14
| | | | | | | | | | | | | | It now goes into one of the ifcfg-eth* files instead of /etc/sysconfig/network. NetworkManager in RHEL 7.0 seems to have a horrible bug. If GATEWAY is defined in /etc/sysconfig/network and if it brings up the "wrong" interface first then it adds a host route to the gateway on the "wrong" network. This means that outbound traffic is OK. However, for incoming traffic, ARP responses go out the "wrong" interface and are either filtered on the node or are ignored by the host machine. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add -n dry-run option to setup_networks.shMartin Schwenke2014-06-251-4/+13
| | | | | | This allows basic testing. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Make setup_networks.sh ignore unknown optionsMartin Schwenke2014-06-251-14/+18
| | | | | | | In preparation for adding more options. Unknown options are now ignored. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove unused virtual network configuration filesMartin Schwenke2014-06-256-34/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* grub: Don't use Red Hat graphical bootMartin Schwenke2014-06-251-1/+1
| | | | | | On RHEL7 most useful boot-time logging disappears. Signed-off-by: Martin Schwenke <martin@meltin.net>
* create_cluster: Avoid -e exit when cluster isn't in hosts fileMartin Schwenke2014-06-251-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove console=tty1 from node kernel command-lineMartin Schwenke2014-06-251-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add template for /etc/hostname to overwrite new RHEL7 fileMartin Schwenke2014-06-251-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add "diskimage put" support for source file from stdinMartin Schwenke2014-06-253-3/+18
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Handle grub2 configuration hacking in RHEL 7+Martin Schwenke2014-06-251-4/+11
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update kickstart done message to include "Power down."Martin Schwenke2014-06-251-1/+1
| | | | 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>
* Generate 70-persistent-net.rules when configuring node networkMartin Schwenke2014-06-251-3/+10
| | | | | | | | | Force this to avoid any potential generation of "well known" names. Simplify the ifcfg-* generation code here, since template subsitution is not necessary. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove INSTALLKEY configuration variableMartin Schwenke2014-06-253-19/+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-253-7/+45
| | | | | | | | | | | | | | 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>
* Initial attempts at various defaults for RHEL 7.0Martin Schwenke2014-06-171-3/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add RHEL 7.0 ISOMartin Schwenke2014-06-171-0/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move service enable/disable in kickstart to per-RHEL config fileMartin Schwenke2014-06-174-32/+76
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Clean up RHEL package list generationMartin Schwenke2014-06-171-6/+10
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename gpfs-nas-kickstart.cfg since it no longer references GPFSMartin Schwenke2014-06-172-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move GPFS path setting from to GPFS-specific codeMartin Schwenke2014-06-172-7/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update git URLMartin Schwenke2014-06-171-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add RHEL6.5 ISOMartin Schwenke2013-11-291-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* guestfish/guestmount: Set empty SYSTEM_DISK_MOUNTSautocluster-0.9Martin Schwenke2013-11-251-1/+1
| | | | | | | | | | At least some versions of guestfish are now using /dev/sd* instead of /dev/vd*, so don't set this explicitly. This and the previous change mean that SYSTEM_DISK_MOUNTS can still still be set if needed. Signed-off-by: Martin Schwenke <martin@meltin.net>
* guestfish/guestmount: If no SYSTEM_DISK_MOUNTS specified then pass -iMartin Schwenke2013-11-252-0/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Recovery lock directory should be created in cluster_configureMartin Schwenke2013-10-252-14/+10
| | | | | | | This hasn't really got anything to do with GPFS. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
* Fix CTDB configurationMartin Schwenke2013-10-254-69/+12
| | | | | | | Cut down CTDB configuration to bare minimum and move CTDB options from other sysconfig files (i.e. nfs, vsftp). Signed-off-by: Martin Schwenke <martin@meltin.net>