summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Remove bash autocluster script and supporting filesMartin Schwenke2019-03-2579-2681/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Do not install popt-develAmitay Isaacs2018-05-091-1/+1
| | | | | | | Build against in-tree popt as the version of popt on RHEL is older than required. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* cluster_configure: Updates for new style CTDB configurationMartin Schwenke2018-04-248-0/+49
| | | | | | | | This is an intermediate change for CTDB 4.9.0pre versions that use the new configuration file but still required the CTDB_MANAGED_* variables. Signed-off-by: Martin Schwenke <martin@meltin.net>
* GPFS setup: Improve check to see if filesystem is mountedMartin Schwenke2018-04-231-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Try 5 times to join AD domain before failingAmitay Isaacs2016-11-101-2/+9
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Run net ads join under a timeout and exit if join failsAmitay Isaacs2016-10-181-1/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* ad: Samba AD now starts winbinddAmitay Isaacs2015-08-191-1/+1
|
* Split GPFS configuration commandsAmitay Isaacs2015-08-191-1/+2
| | | | | | In GPFS 4.1, cipherList cannot be changed with other params Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* build: Include more samba development packagesAmitay Isaacs2015-08-191-1/+3
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Update the samba packages for NASAmitay Isaacs2015-08-191-1/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Instead of test user add user1,user2 and groups group1,group2Amitay Isaacs2015-03-161-2/+8
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Create multiple public_addresses filesautocluster-0.10Amitay Isaacs2014-11-256-5/+24
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* cluster_configure: Remove files for "None" template substitutionsMartin Schwenke2014-11-251-15/+49
| | | | | | | This is a hack that assume any substitution that returns None must cause the template containing it to produce no output file at all. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Do not fail in install_build taskAmitay Isaacs2014-11-251-1/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Set new CTDB configuration variable CTDB_LOGGING="syslog"Martin Schwenke2014-08-121-1/+2
| | | | | | Leave CTDB_SYSLOG="yes" for backward compatiblity. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Switch on rsyslog UDP listener on 127.0.0.1:514Martin Schwenke2014-08-121-0/+6
| | | | | | So that it can be used by CTDB's new direct-UDP logging. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Make cluster_setup.sh use generated configuration fileMartin Schwenke2014-08-126-21/+29
| | | | | | | | | | | | An early step in making cluster_setup.sh independent of autocluster. * autocluster generates cluster_setup.config during base setup * cluster_setup.sh sources this configuration file * cluster_setup.sh sources the per-task scripts * cluster_setup.sh now exits on first error * Replace @@ templates in scripts with variable references Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add #config header to setup scripts listing required configuration variablesMartin Schwenke2014-08-126-0/+14
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move cluster_setup.sh task scriptlets to tasks subdirectoryMartin Schwenke2014-08-1211-6/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variable AD_DNS_FORWARDERMartin Schwenke2014-08-121-1/+1
| | | | | | | | When creating a cluster with an addition AD server node, the DNS forwarder on the AD node needs to be different to the DNS server for the cluster nodes. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove "private dir" from smb.conf templateMartin Schwenke2014-07-281-1/+0
| | | | | | This hasn't been used for a long time Signed-off-by: Martin Schwenke <martin@meltin.net>
* NAS packages: Attempt to install samba-winbind packagesMartin Schwenke2014-07-281-1/+3
| | | | | | | | | Some Samba packaging schemes have the winbind pieces in different packages, so try to install those too. There's no check for failures, so this is harmless (apart from warning messages) when the packages don't exist. Signed-off-by: Martin Schwenke <martin@meltin.net>
* rsyslog: Turn off rate limitingMartin Schwenke2014-07-281-0/+5
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Use a single entry-point script for post-boot setupMartin Schwenke2014-07-025-74/+48
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rework cluster_setup() to use node types instead of $CLUSTER_TYPEMartin Schwenke2014-07-028-83/+78
| | | | | | | | | | | | | | | | * Remove configuration variable CLUSTER_TYPE * Add "build" node type * Rename setup scripts for "ad" and "build" node type * Separate out some setup_node_nas.sh from setup_cluster_nas.sh * Make install_packages.sh and cluster_setup.sh more verbose * Separate out clusterfs_setup.sh Signed-off-by: Martin Schwenke <martin@meltin.net>
* No need to chkconfig ctdb - it is enabled by defaultMartin Schwenke2014-07-021-3/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Store shared disk IDs in a variable instead of a fileMartin Schwenke2014-07-021-7/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_front" to "nas"Martin Schwenke2014-07-023-12/+11
| | | | | | Rename 50.sofs.defconf too. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_storage" to "storage_gpfs"Martin Schwenke2014-07-021-17/+17
| | | | | | | Move the code to new a new file and globally rename variable NSD_SERVERS to NODES_STORAGE_GPFS. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Replace external waitfor script with a functionMartin Schwenke2014-07-021-30/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add gpfs.gskit packageMartin Schwenke2014-07-021-1/+1
| | | | | | Failure here doesn't matter, so add it unconditionally. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Clean up GPFS setup scriptMartin Schwenke2014-07-023-182/+175
| | | | | | | | | | | | | | | | Remove the mknsd.sh and nsd_server_common.bash scripts, merging their functionaility into the main script. Separate the logic into functions, and default to calling each function in turn. Arguments can be passed to potentially run only some functions but this is probably pointless. Clean up a lot of contorted logic for building the GPFS nodes file and deciding on primary/secondary nodes. Create all files in the same directory as the scripts (instead of /tmp) since they should be available for post-mortem anyway. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Cleanup post-boot cluster configurationMartin Schwenke2014-07-027-140/+153
| | | | | | | | | | | | | | | | * Single entry point is now setup_cluster.sh. * Rename old setup_cluster.sh to setup_cluster_nas.sh. * Split setup_ad_server.sh into install_ad_server.sh and setup_cluster_ad_server.sh. * Split setup_build.sh into install_build.sh and setup_cluster_build.sh. * Rename setup_gpfs.sh to setup_clusterfs_gpfs.sh. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move wait_until_healthy() into setup_cluster.shMartin Schwenke2014-07-022-36/+20
| | | | | | ... and remove functions file. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Don't manually mess with ntpd, just enable it in kickstartMartin Schwenke2014-07-021-4/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rework package installation during post-boot configurationMartin Schwenke2014-07-024-25/+46
| | | | | | | | | | | | | | | | | | * New script install_packages.sh is the single entry-point for installing packages outside kickstart. * New configuration variable CONFIG_EXTRA_PACKAGES has space-separated list of extra packages to install. This can help if dependencies are broken. * Rename install_gpfs_nas.sh to just install_nas.sh, now just installs packages (e.g. samba, ctdb, rssh) to support protocols. * Rename install_gpfs.sh to install_clusterfs_gpfs.sh to provide a hook to support installation of alternate cluster filesystem packages. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename gpfs-nas.conf to nas.confMartin Schwenke2014-07-022-1/+1
| | | | | | It is now cluster-filesystem-agnostic. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variables CLUSTERFS_TYPE, CLUSTERFS_DEFAULT_MOUNTPOINTMartin Schwenke2014-07-025-14/+14
| | | | | | | | | | | * CLUSTERFS_DEFAULT_MOUNTPOINT replaces GPFS_DEFAULT_MOUNTPOINT * Tweak various scripts and configuration files to allow cluster filesystem type to be configured * Also tweak chroot-related options to not have GPFS-specific values Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update cluster_configure READMEMartin Schwenke2014-07-021-2/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove SoFS GUI supportMartin Schwenke2014-07-021-2/+0
| | | | | | This hasn't been used in a long time. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove "sofs" command on nodesMartin Schwenke2014-07-021-613/+0
| | | | | | "onnode -P" implements the only useful feature. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Support RHEL 7 multipath configuration changesMartin Schwenke2014-06-251-2/+1
| | | | | | | 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-251-1/+1
| | | | | | | | | | | 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>
* 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-253-3/+3
| | | | | | | | | | | | | 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-251-1/+0
| | | | | | | | | | | | | | 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 template for /etc/hostname to overwrite new RHEL7 fileMartin Schwenke2014-06-251-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move GPFS path setting from to GPFS-specific codeMartin Schwenke2014-06-171-0/+6
| | | | 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>