autocluster.git
3 years agoscripts: Add autocluster-test-ctdb script master autocluster-2.0
Martin Schwenke [Fri, 26 Jun 2020 11:48:40 +0000 (21:48 +1000)]
scripts: Add autocluster-test-ctdb script

samba_version.py by Amitay Isaacs <amitay@ozlabs.org>

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Install extra packages for CTDB testing
Martin Schwenke [Mon, 29 Jun 2020 10:38:29 +0000 (20:38 +1000)]
ansible/node: Install extra packages for CTDB testing

These could go into a "test" role but finer granularity might make
thing harder to understand.

CTDB really should complete the migration to ss.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Add extra build dependencies for GPFS kernel module
Martin Schwenke [Fri, 19 Jun 2020 04:18:04 +0000 (14:18 +1000)]
ansible/node: Add extra build dependencies for GPFS kernel module

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Add preliminary playbook to unpack binary tarball
Martin Schwenke [Tue, 30 Jun 2020 09:05:37 +0000 (19:05 +1000)]
ansible/node: Add preliminary playbook to unpack binary tarball

This is an optimisation that allows relevant nodes to have the binary
tarball unpacked and bootstrap script run in parallel.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Conditionally use tarball install in "nas" role
Martin Schwenke [Thu, 18 Jun 2020 04:34:25 +0000 (14:34 +1000)]
ansible/node: Conditionally use tarball install in "nas" role

This uses the ctdb_config_dir fact from the "ctdb" role.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Conditionally use tarball install in "ctdb" role
Martin Schwenke [Thu, 18 Jun 2020 04:30:23 +0000 (14:30 +1000)]
ansible/node: Conditionally use tarball install in "ctdb" role

This also sets up a ctdb_config_dir fact that can also be used in the
"nas" role.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Conditionally use tarball install in "ad" role
Martin Schwenke [Tue, 16 Jun 2020 03:52:27 +0000 (13:52 +1000)]
ansible/node: Conditionally use tarball install in "ad" role

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Add tbuild node type
Martin Schwenke [Mon, 25 May 2020 08:17:37 +0000 (18:17 +1000)]
autocluster: Add tbuild node type

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Add tbuild node type
Martin Schwenke [Mon, 25 May 2020 08:16:01 +0000 (18:16 +1000)]
ansible/node: Add tbuild node type

This node type downloads a tarball and builds clustered Samba.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Add tarball_common role
Martin Schwenke [Tue, 16 Jun 2020 09:09:34 +0000 (19:09 +1000)]
ansible/node: Add tarball_common role

Given a source tarball:

* build a binary tarball
* install binary tarball
* setup binary install for AD node
* setup binary install for NAS node

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoconfig: Add configuration variables for building from tarball(s)
Martin Schwenke [Mon, 25 May 2020 03:30:17 +0000 (13:30 +1000)]
config: Add configuration variables for building from tarball(s)

Tarballs should be on a (e.g. NFS) filesystem accessible by the node,
so that output files can be placed in directories alongside them.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Handle new style /etc/nfs.conf autocluster-1.8
Martin Schwenke [Sun, 12 Jul 2020 09:02:12 +0000 (19:02 +1000)]
ansible/node: Handle new style /etc/nfs.conf

This also depends on CTDB's statd-callout to be fixed to get
NFS_HOSTNAME using nfsconf.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Update modern rsyslog.conf for high resolution timestamp
Martin Schwenke [Sun, 12 Jul 2020 06:50:52 +0000 (16:50 +1000)]
ansible/node: Update modern rsyslog.conf for high resolution timestamp

Bizarrely, this setting can't be changed in an include file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agobuild: Fix Makefile
Amitay Isaacs [Thu, 2 Jul 2020 07:40:44 +0000 (17:40 +1000)]
build: Fix Makefile

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
3 years agobuild, doc: Add COPYING, clarify license autocluster-1.7
Martin Schwenke [Wed, 24 Jun 2020 23:49:21 +0000 (09:49 +1000)]
build, doc: Add COPYING, clarify license

Autocluster has always been GPL, with the Python script tagged as
GPLv3, but this makes it obvious and removes ambiguity.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Add copyright message to main script
Martin Schwenke [Wed, 24 Jun 2020 23:44:41 +0000 (09:44 +1000)]
autocluster: Add copyright message to main script

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Modernise NFS service management
Martin Schwenke [Tue, 23 Jun 2020 01:58:59 +0000 (11:58 +1000)]
ansible/node: Modernise NFS service management

nfs-server and rpc-statd are available on CentOS 7, and CTDB already
knows about these service names, so changing these is safe.

In CentOS >=8 the rpc-quota service is split from the quota
package (required by nfs-utils) into a new quota-rpc package.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Only retry "create" and "setup" steps during "build"
Martin Schwenke [Tue, 23 Jun 2020 01:23:16 +0000 (11:23 +1000)]
autocluster: Only retry "create" and "setup" steps during "build"

"create" and "setup" are used during development when the failures are
usually programming errors rather than intermittent errors, so don't
retry when those steps are run separately.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agobuild: Improve generation of version-dependant files
Martin Schwenke [Mon, 22 Jun 2020 23:33:27 +0000 (09:33 +1000)]
build: Improve generation of version-dependant files

There seems to be no sane way of getting this right without generating
a version file.

This still isn't quite right but it is better.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agodoc: Add a small development hint to README
Martin Schwenke [Fri, 19 Jun 2020 10:00:13 +0000 (20:00 +1000)]
doc: Add a small development hint to README

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Support authselect
Martin Schwenke [Mon, 22 Jun 2020 10:37:50 +0000 (20:37 +1000)]
ansible/node: Support authselect

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Restructure "nas" role
Martin Schwenke [Thu, 18 Jun 2020 04:17:11 +0000 (14:17 +1000)]
ansible/node: Restructure "nas" role

Give tasks clearer names and split out installation of Samba packages.
There's also some redundant indirection that will allow easy addition
of authselect in future.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Restructure "ctdb" role
Martin Schwenke [Thu, 18 Jun 2020 03:35:10 +0000 (13:35 +1000)]
ansible/node: Restructure "ctdb" role

Give tasks clearer names and split out installation of the CTDB
package and supporting package(s).

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agovagrant: Fix https_proxy autocluster-1.6
Martin Schwenke [Tue, 26 May 2020 01:44:49 +0000 (11:44 +1000)]
vagrant: Fix https_proxy

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agobuild: Be more aggressive about updating ChangeLog
Martin Schwenke [Tue, 26 May 2020 00:23:02 +0000 (10:23 +1000)]
build: Be more aggressive about updating ChangeLog

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Do not disable Network Manager
Martin Schwenke [Tue, 26 May 2020 03:22:56 +0000 (13:22 +1000)]
ansible/node: Do not disable Network Manager

On modern Red Hat distros all interfaces are configured via Network
Manager.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Use mount module to mount /home
Martin Schwenke [Tue, 26 May 2020 03:17:19 +0000 (13:17 +1000)]
ansible/node: Use mount module to mount /home

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Switch group names from <type>-nodes to <type>_nodes
Martin Schwenke [Thu, 21 May 2020 07:09:10 +0000 (17:09 +1000)]
ansible/node: Switch group names from <type>-nodes to <type>_nodes

This warning:

  [DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to
  allow bad characters in group names by default, this will change, but still be
  user configurable on deprecation. This feature will be removed in version 2.10.
   Deprecation warnings can be disabled by setting deprecation_warnings=False in
  ansible.cfg.

According to

  https://github.com/ansible/ansible/issues/56930#issuecomment-498659628

'-' in a group name is invalid and '_' is valid.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Don't allow test join to wait for password
Martin Schwenke [Tue, 19 May 2020 04:20:01 +0000 (14:20 +1000)]
ansible/node: Don't allow test join to wait for password

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Handle both Python 2 and 3 versions of SELinux package
Martin Schwenke [Mon, 18 May 2020 05:18:35 +0000 (15:18 +1000)]
ansible/node: Handle both Python 2 and 3 versions of SELinux package

Have tried "neater" ways involving setting a fact such as rh7
containing a bool value to keep the logic compact.  However, figuring
out how to treat what ends up as a string "True" or "False" as a bool
seems insanely difficult.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Retry setup stage
Martin Schwenke [Thu, 21 May 2020 07:33:23 +0000 (17:33 +1000)]
autocluster: Retry setup stage

Ansible sometimes find that nodes are unreachable even though it is
possible to ssh to them manually.  Perhaps a retry will work.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Avoid an error if no are repositories defined
Martin Schwenke [Mon, 18 May 2020 03:21:36 +0000 (13:21 +1000)]
autocluster: Avoid an error if no are repositories defined

This allows standard distribution repositories to be used.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agovagrant: Set networks to be controlled by NetworkManager
Martin Schwenke [Mon, 18 May 2020 01:28:05 +0000 (11:28 +1000)]
vagrant: Set networks to be controlled by NetworkManager

CentOS >= 8 always controls networks using Network Manager, so setting
this to "off" causes Vagrant failure.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/host: Use newer Vagrant on CentOS 7
Martin Schwenke [Tue, 26 May 2020 03:29:27 +0000 (13:29 +1000)]
ansible/host: Use newer Vagrant on CentOS 7

Also update task names so they better reflect idempotence.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/host: Ensure libvirtd is installed and running on CentOS 7
Martin Schwenke [Tue, 26 May 2020 03:28:46 +0000 (13:28 +1000)]
ansible/host: Ensure libvirtd is installed and running on CentOS 7

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/host: Use Python3 on CentOS 7
Martin Schwenke [Fri, 15 May 2020 09:45:12 +0000 (19:45 +1000)]
ansible/host: Use Python3 on CentOS 7

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoautocluster: Use Python 3
Martin Schwenke [Tue, 12 May 2020 05:44:47 +0000 (15:44 +1000)]
autocluster: Use Python 3

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/host: Add fedora32 host setup script
Martin Schwenke [Tue, 12 May 2020 05:43:59 +0000 (15:43 +1000)]
ansible/host: Add fedora32 host setup script

This is a minimally changed copy of the centos7 script.  The only
change is to install the distro vagrant package.

Signed-off-by: Martin Schwenke <martin@meltin.net>
3 years agoansible/node: Install libunwind-devel on build nodes
Martin Schwenke [Wed, 4 Mar 2020 23:34:13 +0000 (10:34 +1100)]
ansible/node: Install libunwind-devel on build nodes

This provides better backtraces if ctdbd crashes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agobuild: Improve building of RPM autocluster-1.5
Martin Schwenke [Mon, 16 Dec 2019 06:18:51 +0000 (17:18 +1100)]
build: Improve building of RPM

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible: Default to not checking GPG signatures on distro YUM repos autocluster-1.4
Martin Schwenke [Mon, 16 Dec 2019 02:41:55 +0000 (13:41 +1100)]
ansible: Default to not checking GPG signatures on distro YUM repos

The official CentOS 7 boxes not not contain the necessary public keys
so, rather than forcing this to be overridden in configuration, just
default to 'no'.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible: build nodes must have gcc installed
Martin Schwenke [Mon, 9 Dec 2019 23:45:35 +0000 (10:45 +1100)]
ansible: build nodes must have gcc installed

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agovagrant: Use memory size setting
Martin Schwenke [Wed, 4 Dec 2019 23:52:13 +0000 (10:52 +1100)]
vagrant: Use memory size setting

This doesn't look to have been a vagrant-libvirt bug.  It looks to
have been the use of "mem" instead of "memory" as the configuration
key.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible: Ensure GPFS build prerequisites are installed
Martin Schwenke [Wed, 4 Dec 2019 05:00:14 +0000 (16:00 +1100)]
ansible: Ensure GPFS build prerequisites are installed

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoautocluster: Do not run destroy if generated config does not exist autocluster-1.3
Martin Schwenke [Tue, 8 Oct 2019 04:50:55 +0000 (15:50 +1100)]
autocluster: Do not run destroy if generated config does not exist

When build is run, skip destroy if the file doesn't exist.  This
avoids a failure on the initial run.

Error when destroy is run explicitly, since the error from Vagrant is
very vague.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoautocluster: Factor out construction of generated config file name
Martin Schwenke [Tue, 8 Oct 2019 04:48:45 +0000 (15:48 +1100)]
autocluster: Factor out construction of generated config file name

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoautocluster: Fix typo in usage message
Martin Schwenke [Tue, 8 Oct 2019 04:47:24 +0000 (15:47 +1100)]
autocluster: Fix typo in usage message

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoautocluster: Run ssh setup during host setup
Martin Schwenke [Tue, 8 Oct 2019 04:46:16 +0000 (15:46 +1100)]
autocluster: Run ssh setup during host setup

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Ensure ~/.ssh/config exists
Martin Schwenke [Tue, 8 Oct 2019 05:15:07 +0000 (16:15 +1100)]
ansible/host: Ensure ~/.ssh/config exists

Before attempting to modify it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Single-quote regexp string
Martin Schwenke [Tue, 8 Oct 2019 05:10:58 +0000 (16:10 +1100)]
ansible/host: Single-quote regexp string

Otherwise the backslashes are not literal, but attempt to escape the
next character.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Reload NFS exports after updating
Martin Schwenke [Tue, 8 Oct 2019 05:38:32 +0000 (16:38 +1100)]
ansible/host: Reload NFS exports after updating

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Fix missing directories and dependencies
Martin Schwenke [Tue, 8 Oct 2019 04:45:05 +0000 (15:45 +1100)]
ansible/host: Fix missing directories and dependencies

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Fix indentation
Martin Schwenke [Tue, 8 Oct 2019 04:44:34 +0000 (15:44 +1100)]
ansible/host: Fix indentation

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible/host: Update to latest upstream Vagrant version
Martin Schwenke [Tue, 8 Oct 2019 01:30:55 +0000 (12:30 +1100)]
ansible/host: Update to latest upstream Vagrant version

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agovagrant: Change addition of default route to use "ip route" command
Martin Schwenke [Sat, 21 Sep 2019 01:30:40 +0000 (11:30 +1000)]
vagrant: Change addition of default route to use "ip route" command

Old "route" command is not always installed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible: Require zlib-devel on build nodes autocluster-1.2
Martin Schwenke [Sat, 17 Aug 2019 07:15:44 +0000 (17:15 +1000)]
ansible: Require zlib-devel on build nodes

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoansible: Configure CTDB to debug hung scripts
Martin Schwenke [Tue, 7 May 2019 04:48:49 +0000 (14:48 +1000)]
ansible: Configure CTDB to debug hung scripts

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoChange fixed NFS RPC ports to be outside the local port range autocluster-1.1
Martin Schwenke [Thu, 4 Apr 2019 04:24:04 +0000 (15:24 +1100)]
Change fixed NFS RPC ports to be outside the local port range

Seeing some instances where nfsd can't start because its port is in
use.

On Linux the default local port range is 32768-60999, so the ports
used for NFS should be outside this range.  The configured range can
be checked via:

  $ sysctl net.ipv4.ip_local_port_range
  net.ipv4.ip_local_port_range = 32768 60999

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoLeave EPEL package installed
Martin Schwenke [Fri, 29 Mar 2019 04:39:05 +0000 (15:39 +1100)]
Leave EPEL package installed

If we want to use a local EPEL mirror then the GPG key should be
installed.  If using custom distro repos then the external EPEL repo
file will be removed anyway, so won't slow things down.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoUpdate TODO autocluster-1.0
Martin Schwenke [Thu, 7 Feb 2019 01:23:28 +0000 (12:23 +1100)]
Update TODO

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoUpdate README
Martin Schwenke [Thu, 21 Feb 2019 06:23:19 +0000 (17:23 +1100)]
Update README

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd host setup command
Martin Schwenke [Thu, 28 Feb 2019 01:29:20 +0000 (12:29 +1100)]
Add host setup command

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoRemove bash autocluster script and supporting files
Martin Schwenke [Tue, 2 Oct 2018 05:39:04 +0000 (15:39 +1000)]
Remove bash autocluster script and supporting files

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoRewrite autocluster in Python
Martin Schwenke [Wed, 27 Feb 2019 04:11:58 +0000 (15:11 +1100)]
Rewrite autocluster in Python

Reads a YAML configuration, with defaults in defaults.yml.  This
replaces the bash version.

Currently does the following actions for cluster <cluster>: defaults,
dump, status, generate, destroy, create, ssh_config, setup, build.

update_hosts is replaced by ssh_update.  If necessary, hosts file can
be updated by hand using hosts file in state directory.

Update build/packaging and example configuration file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd Ansible playbook for node configuration
Martin Schwenke [Wed, 6 Feb 2019 03:53:10 +0000 (14:53 +1100)]
Add Ansible playbook for node configuration

This will replace all of the existing node provisioning/configuration.
CentOS 7 nodes are currently supported.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd a Vagrantfile and supporting scripts
Martin Schwenke [Wed, 6 Feb 2019 06:43:50 +0000 (17:43 +1100)]
Add a Vagrantfile and supporting scripts

Generates libvirt nodes according to configuration.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd Ansible playbooks for host machine setup
Martin Schwenke [Thu, 14 Feb 2019 04:04:58 +0000 (15:04 +1100)]
Add Ansible playbooks for host machine setup

This is currently host setup on CentOS 7 and setting up an
autocluster-specific SSH key on the host.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd RHEL 6.10, 7.2, 7.3, 7.4, 7.5 ISO details
Martin Schwenke [Tue, 26 Jun 2018 04:16:35 +0000 (14:16 +1000)]
Add RHEL 6.10, 7.2, 7.3, 7.4, 7.5 ISO details

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoDo not install popt-devel
Amitay Isaacs [Wed, 9 May 2018 09:42:42 +0000 (19:42 +1000)]
Do not install popt-devel

Build against in-tree popt as the version of popt on RHEL is older than
required.

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
6 years agocluster_configure: Updates for new style CTDB configuration
Martin Schwenke [Mon, 23 Apr 2018 04:31:49 +0000 (14:31 +1000)]
cluster_configure: Updates for new style CTDB configuration

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>
6 years agoAdd RHEL 6.9 ISO
Martin Schwenke [Thu, 23 Mar 2017 19:34:53 +0000 (06:34 +1100)]
Add RHEL 6.9 ISO

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoGPFS setup: Improve check to see if filesystem is mounted
Martin Schwenke [Fri, 3 Mar 2017 04:21:15 +0000 (15:21 +1100)]
GPFS setup: Improve check to see if filesystem is mounted

Signed-off-by: Martin Schwenke <martin@meltin.net>
7 years agoTry 5 times to join AD domain before failing
Amitay Isaacs [Thu, 10 Nov 2016 02:48:52 +0000 (13:48 +1100)]
Try 5 times to join AD domain before failing

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
7 years agoFail if any of the cluster setup tasks fail
Amitay Isaacs [Mon, 17 Oct 2016 07:36:33 +0000 (18:36 +1100)]
Fail if any of the cluster setup tasks fail

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
7 years agoRun net ads join under a timeout and exit if join fails
Amitay Isaacs [Mon, 17 Oct 2016 06:18:33 +0000 (17:18 +1100)]
Run net ads join under a timeout and exit if join fails

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
7 years agoAdd RHEL 6.8 ISO details
Martin Schwenke [Tue, 11 Oct 2016 21:21:36 +0000 (08:21 +1100)]
Add RHEL 6.8 ISO details

Signed-off-by: Martin Schwenke <martin@meltin.net>
7 years agoRun top-level ssh with -n
Martin Schwenke [Mon, 10 Oct 2016 04:35:33 +0000 (15:35 +1100)]
Run top-level ssh with -n

This stop it eating standard input.

Signed-off-by: Martin Schwenke <martin@meltin.net>
7 years agoUndefine domains with --managed-save option
Martin Schwenke [Tue, 24 May 2016 03:46:16 +0000 (13:46 +1000)]
Undefine domains with --managed-save option

Just in case previous version was automatically saved.

Signed-off-by: Martin Schwenke <martin@meltin.net>
8 years agoAdd RHEL 6.7 ISO details
Martin Schwenke [Wed, 19 Aug 2015 05:09:49 +0000 (15:09 +1000)]
Add RHEL 6.7 ISO details

Signed-off-by: Martin Schwenke <martin@meltin.net>
8 years agoad: Samba AD now starts winbindd
Amitay Isaacs [Mon, 27 Jul 2015 08:48:47 +0000 (18:48 +1000)]
ad: Samba AD now starts winbindd

8 years agoSplit GPFS configuration commands
Amitay Isaacs [Thu, 2 Jul 2015 08:33:19 +0000 (18:33 +1000)]
Split GPFS configuration commands

In GPFS 4.1, cipherList cannot be changed with other params

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
8 years agobuild: Include more samba development packages
Amitay Isaacs [Sat, 9 May 2015 13:52:24 +0000 (23:52 +1000)]
build: Include more samba development packages

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
8 years agoUpdate the samba packages for NAS
Amitay Isaacs [Tue, 12 May 2015 11:48:37 +0000 (21:48 +1000)]
Update the samba packages for NAS

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoKickstart: Drop 2nd network interface configuration
Martin Schwenke [Wed, 1 Apr 2015 04:48:29 +0000 (15:48 +1100)]
Kickstart: Drop 2nd network interface configuration

It isn't used and causes problems with RHEL 7.1.

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agoAdd RHEL 7.1 ISO details
Martin Schwenke [Wed, 1 Apr 2015 04:22:03 +0000 (15:22 +1100)]
Add RHEL 7.1 ISO details

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agoRemove internal use of vircmd
Martin Schwenke [Mon, 16 Mar 2015 04:21:19 +0000 (15:21 +1100)]
Remove internal use of vircmd

It is too easy to clobber/interact with domains that are no specified
in the cluster configuration.

Replace use of vircmd with new function virsh_cluster().  The only
possible loss here is that unmatched nodes may not be destroyed, so
duplicate IP addresses might occur when cluster configuration changes.
To try to avoid this a warning is printed by virsh_cluster() when
domains that are not part of the cluster are found to match
CLUSTER/CLUSTER_PATTERN.

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agoInstead of test user add user1,user2 and groups group1,group2
Amitay Isaacs [Tue, 17 Feb 2015 00:49:35 +0000 (11:49 +1100)]
Instead of test user add user1,user2 and groups group1,group2

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoSeparate build and cluster_build nodes.
Amitay Isaacs [Fri, 12 Dec 2014 03:05:30 +0000 (14:05 +1100)]
Separate build and cluster_build nodes.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoCreate multiple public_addresses files autocluster-0.10
Amitay Isaacs [Thu, 20 Nov 2014 03:24:24 +0000 (14:24 +1100)]
Create multiple public_addresses files

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agocluster_configure: Remove files for "None" template substitutions
Martin Schwenke [Tue, 25 Nov 2014 00:26:32 +0000 (11:26 +1100)]
cluster_configure: Remove files for "None" template substitutions

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>
9 years agoCreate IPv4 and IPv6 nodes files
Amitay Isaacs [Mon, 24 Nov 2014 08:39:04 +0000 (19:39 +1100)]
Create IPv4 and IPv6 nodes files

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoAdd IPv6 support
Amitay Isaacs [Thu, 20 Nov 2014 03:16:15 +0000 (14:16 +1100)]
Add IPv6 support

New configuration variable NETWORK_STACK.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoDo not fail in install_build task
Amitay Isaacs [Thu, 13 Nov 2014 00:19:06 +0000 (11:19 +1100)]
Do not fail in install_build task

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoShift argument after processing it
Amitay Isaacs [Thu, 20 Nov 2014 04:57:54 +0000 (15:57 +1100)]
Shift argument after processing it

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoDo not disable IPv6 stack
Amitay Isaacs [Mon, 24 Nov 2014 04:04:54 +0000 (15:04 +1100)]
Do not disable IPv6 stack

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
9 years agoRemove netmask from network_map
Martin Schwenke [Mon, 24 Nov 2014 10:01:37 +0000 (21:01 +1100)]
Remove netmask from network_map

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>
9 years agoNew function ipv4_prefix_to_netmask()
Martin Schwenke [Mon, 24 Nov 2014 09:49:46 +0000 (20:49 +1100)]
New function ipv4_prefix_to_netmask()

Allows calculation of netmask from prefix.

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agobase_create: Set IPNUM=$FIRSTIP
Martin Schwenke [Mon, 24 Nov 2014 09:47:12 +0000 (20:47 +1100)]
base_create: Set IPNUM=$FIRSTIP

This allows removal of a kludge in guess_install_network().

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agoAdd RHEL 6.6 ISO
Martin Schwenke [Fri, 17 Oct 2014 01:33:37 +0000 (12:33 +1100)]
Add RHEL 6.6 ISO

Signed-off-by: Martin Schwenke <martin@meltin.net>
9 years agoSet new CTDB configuration variable CTDB_LOGGING="syslog"
Martin Schwenke [Tue, 12 Aug 2014 04:32:45 +0000 (14:32 +1000)]
Set new CTDB configuration variable CTDB_LOGGING="syslog"

Leave CTDB_SYSLOG="yes" for backward compatiblity.

Signed-off-by: Martin Schwenke <martin@meltin.net>