summaryrefslogtreecommitdiffstats
path: root/config.d
Commit message (Collapse)AuthorAgeFilesLines
* Add IPv6 supportAmitay Isaacs2014-11-251-2/+5
| | | | | | New configuration variable NETWORK_STACK. Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* Remove netmask from network_mapMartin Schwenke2014-11-251-13/+2
| | | | | | | 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>
* Add RHEL 6.6 ISOMartin Schwenke2014-10-171-2/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variable AD_DNS_FORWARDERMartin Schwenke2014-08-121-0/+11
| | | | | | | | 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-286-7/+25
| | | | | | | | | 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>
* Default to virtio system disksMartin Schwenke2014-07-281-1/+1
| | | | | | The qcow2 + virtio + writeback problem seems to be fixed. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add create_node_DEFAULT, no more hack_nodes_functionsMartin Schwenke2014-07-027-93/+31
| | | | | | | | | | | | | | | 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-022-44/+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-025-3/+52
| | | | | | | | | | | | | | | | * 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>
* Store shared disk IDs in a variable instead of a fileMartin Schwenke2014-07-021-16/+4
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_front" to "nas"Martin Schwenke2014-07-023-34/+34
| | | | | | Rename 50.sofs.defconf too. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Rename node type "sofs_storage" to "storage_gpfs"Martin Schwenke2014-07-022-43/+42
| | | | | | | 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-023-71/+118
| | | | | | | | | | | | | | | | | | | 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>
* Rework package installation during post-boot configurationMartin Schwenke2014-07-021-0/+3
| | | | | | | | | | | | | | | | | | * 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-021-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-022-2/+6
| | | | | | | | | | | * 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>
* Remove SoFS GUI supportMartin Schwenke2014-07-021-57/+0
| | | | | | This hasn't been used in a long time. 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-021-13/+13
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove add_extra_package() and add_extra_chkconfig()Martin Schwenke2014-07-021-20/+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>
* Add "cluster configure" commandMartin Schwenke2014-07-021-0/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Support RHEL 7 multipath configuration changesMartin Schwenke2014-06-251-0/+16
| | | | | | | 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-2/+3
| | | | | | | | | | | 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>
* Rename configuration variable GATEWAY to KVMHOSTMartin Schwenke2014-06-252-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-3/+3
| | | | | | | | | | | | | | 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 "diskimage put" support for source file from stdinMartin Schwenke2014-06-253-3/+18
| | | | 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>
* Remove INSTALLKEY configuration variableMartin Schwenke2014-06-251-3/+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 needs different boot options to support kickstartMartin Schwenke2014-06-251-0/+42
| | | | | | | | | | | | | | 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-171-0/+11
| | | | 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-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>
* Shared disks need shareable attribute for correct sVirt selinux labelautocluster-0.8Amitay Isaacs2013-06-161-0/+1
|
* Fix setting of convenience variable NETWORKS_PUBLICMartin Schwenke2013-03-121-2/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix NETWORKS configuration to support non-standard interface namesMartin Schwenke2013-03-121-18/+5
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration variable NETWORKS - IPBASE, IPNET* no longer usedMartin Schwenke2013-03-052-12/+83
| | | | | | | | | 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>