summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-122-1/+12
| | | | | | | | 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>
* Make some configuration variables depend on KVMHOST @utoMartin Schwenke2014-08-121-6/+15
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* node_name_format_* functions should produce the node nameMartin Schwenke2014-07-287-19/+29
| | | | | | | | | No use having them print the format string. That actually makes it more restrictive. Instead, have the functions take cluster name and index as arguments - these can then be passed to printf in either order depending on the format string. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Always default _SHARED_DISK_TEMPLATE to ""Martin Schwenke2014-07-281-2/+1
| | | | 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>
* Update READMEMartin Schwenke2014-07-281-10/+12
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Default to virtio system disksMartin Schwenke2014-07-282-8/+20
| | | | | | The qcow2 + virtio + writeback problem seems to be fixed. 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>
* Fix broken hosts file updatingMartin Schwenke2014-07-241-1/+18
| | | | | | | Replace the hardcoded node name regexp with a generated one. Detailed comments are required to describe the construction of the new regexp. Signed-off-by: Martin Schwenke <martin@meltin.net>
* When exiting due to unknown node type, list valid node typesMartin Schwenke2014-07-031-2/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Use a single entry-point script for post-boot setupMartin Schwenke2014-07-026-75/+49
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename common_nodelist_hacking() to cluster_nodelist_hacking()Martin Schwenke2014-07-021-5/+2
| | | | | | ... and just call it once before doing any cluster operations. Signed-off-by: Martin Schwenke <martin@meltin.net>
* vircmd: loosen matching of nodes in cluster if no wildcard givenMartin Schwenke2014-07-021-9/+1
| | | | | | | As more node types appear this becomes unwieldy so don't be as paranoid. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add create_node_DEFAULT, no more hack_nodes_functionsMartin Schwenke2014-07-028-103/+69
| | | | | | | | | | | | | | | Reduce the amount of work needed to define how to create a new node type. * Each node type definition needs to define node_name_format_<TYPE>() * Node types that should be part of the CTDB cluster should define node_is_ctdb_node_<TYPE>() and have it echo 1 * Nodes need not define create_node_<TYPE>() if they don't do anything unusual. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove NUMNODES and WITH_TSM_NODE configuration variablesMartin Schwenke2014-07-024-88/+28
| | | | | | The backward compatibility hacking is horrible! Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rework cluster_setup() to use node types instead of $CLUSTER_TYPEMartin Schwenke2014-07-0214-116/+181
| | | | | | | | | | | | | | | | * 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>
* Rename cluster "configure" action to "setup"Martin Schwenke2014-07-021-22/+30
| | | | | | Rewrite cluster_setup() to factor out the common SSH bits. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Store shared disk IDs in a variable instead of a fileMartin Schwenke2014-07-022-23/+6
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_front" to "nas"Martin Schwenke2014-07-028-50/+50
| | | | | | Rename 50.sofs.defconf too. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_storage" to "storage_gpfs"Martin Schwenke2014-07-023-60/+59
| | | | | | | 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>
* Split hack_nodes_sofs()Martin Schwenke2014-07-021-32/+40
| | | | | | | ... into hack_nodes_sofs_front() and hack_nodes_sofs_storage(). This allows 50.sofs.defconf to be split Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move shared disk presence logic from nodes into shared disk codeMartin Schwenke2014-07-024-72/+119
| | | | | | | | | | | | | | | | | | | 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>
* Simplify shared disk logic for sofs_front and sofs_storage nodesMartin Schwenke2014-07-021-15/+10
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Limit functionality of rhel_base nodesMartin Schwenke2014-07-022-6/+6
| | | | | | They are not part of the CTDB cluster and do not have shared disks. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove unused has_public_addresses_* functionsMartin Schwenke2014-07-022-21/+0
| | | | | | They have been unused since public address generation was changed. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove some unused SOFS_* variablesMartin Schwenke2014-07-021-8/+0
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Update README to reflect latest development and testingMartin Schwenke2014-07-021-63/+72
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Replace external waitfor script with a functionMartin Schwenke2014-07-026-65/+28
| | | | 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>
* Add "autocluster cluster build" command shortcutMartin Schwenke2014-07-021-1/+6
| | | | 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-028-152/+158
| | | | | | | | | | | | | | | | * 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>
* Git should ignore autocluster RPM packagesMartin Schwenke2014-07-021-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Don't manually mess with ntpd, just enable it in kickstartMartin Schwenke2014-07-024-4/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rework package installation during post-boot configurationMartin Schwenke2014-07-026-26/+50
| | | | | | | | | | | | | | | | | | * 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-023-2/+2
| | | | | | It is now cluster-filesystem-agnostic. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variables CLUSTERFS_TYPE, CLUSTERFS_DEFAULT_MOUNTPOINTMartin Schwenke2014-07-027-16/+20
| | | | | | | | | | | * 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 comments in basic post-installMartin Schwenke2014-07-021-1/+6
| | | | 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-023-60/+1
| | | | | | 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>
* Simplify setting of KS_RHEL_PACKAGES and KS_RHEL_SERVICESMartin Schwenke2014-07-021-12/+2
| | | | | | The functions are unnecessary. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move kickstart options to new 02kickstart.defconfMartin Schwenke2014-07-022-51/+57
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename some kickstart variables to start with "KS_"Martin Schwenke2014-07-022-20/+20
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>