autocluster.git
11 years agoVersion is now 0.5! autocluster-0.5
Martin Schwenke [Tue, 22 May 2012 05:26:26 +0000 (15:26 +1000)]
Version is now 0.5!

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoUpdate example configuration file
Martin Schwenke [Tue, 22 May 2012 05:25:52 +0000 (15:25 +1000)]
Update example configuration file

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoUse WORKGROUP setting in setup_ad_server.sh
Martin Schwenke [Tue, 22 May 2012 05:21:24 +0000 (15:21 +1000)]
Use WORKGROUP setting in setup_ad_server.sh

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAutomatically find KVM executable and set KVM variable
Martin Schwenke [Tue, 22 May 2012 05:17:43 +0000 (15:17 +1000)]
Automatically find KVM executable and set KVM variable

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoDefault WEBPROXY setting is null
Martin Schwenke [Tue, 22 May 2012 05:06:06 +0000 (15:06 +1000)]
Default WEBPROXY setting is null

We always have an install server close by.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoChange default package lists to have no desktop/X.
Martin Schwenke [Tue, 22 May 2012 04:55:46 +0000 (14:55 +1000)]
Change default package lists to have no desktop/X.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAdd openssl-devel to RHEL6.packages
Martin Schwenke [Tue, 22 May 2012 04:53:42 +0000 (14:53 +1000)]
Add openssl-devel to RHEL6.packages

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoMake EXTRA_PACKAGES null by default
Martin Schwenke [Tue, 22 May 2012 04:53:37 +0000 (14:53 +1000)]
Make EXTRA_PACKAGES null by default

This shouldn't change anything since the packages mentioned in the old
default have been added to the package lists as appropriate.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoDefault RHEL version is now 6.2
Martin Schwenke [Tue, 22 May 2012 04:44:15 +0000 (14:44 +1000)]
Default RHEL version is now 6.2

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRemove example.sh and move config.sample to examples/ directory
Martin Schwenke [Tue, 22 May 2012 04:43:29 +0000 (14:43 +1000)]
Remove example.sh and move config.sample to examples/ directory

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoNo need to set defaults in setup_cluster.sh
Martin Schwenke [Tue, 22 May 2012 04:33:30 +0000 (14:33 +1000)]
No need to set defaults in setup_cluster.sh

These are always set in gpfs-nas.conf.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoUpdate README
Martin Schwenke [Tue, 22 May 2012 04:17:43 +0000 (14:17 +1000)]
Update README

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRemove --with_release and with_release()
Martin Schwenke [Tue, 22 May 2012 04:17:13 +0000 (14:17 +1000)]
Remove --with_release and with_release()

This is no longer of any value.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoChanged default NODES setting to "sofs_front:0-3 rhel_base:4"
Martin Schwenke [Tue, 22 May 2012 04:16:32 +0000 (14:16 +1000)]
Changed default NODES setting to "sofs_front:0-3 rhel_base:4"

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRemove CIFSNAME configuration variable.
Martin Schwenke [Tue, 22 May 2012 03:51:09 +0000 (13:51 +1000)]
Remove CIFSNAME configuration variable.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoDefault domain is now example.com
Martin Schwenke [Tue, 22 May 2012 03:50:29 +0000 (13:50 +1000)]
Default domain is now example.com

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAdd RHEL 5.8 ISO
Martin Schwenke [Tue, 22 May 2012 03:49:10 +0000 (13:49 +1000)]
Add RHEL 5.8 ISO

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRemove old SoFS-releated files
Martin Schwenke [Tue, 22 May 2012 03:36:12 +0000 (13:36 +1000)]
Remove old SoFS-releated files

kickstart-SoFS.cfg is superceded by gpfs-nas-kickstart.cfg, which is
now the default.

SoFS-postinstall.sh is superceded by gpfs-nas-postinstall.cfg.

The contents of releases/ and imacros/ are no longer of any value.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoMerge remote-tracking branch 'amitay/master'
Martin Schwenke [Tue, 22 May 2012 03:25:05 +0000 (13:25 +1000)]
Merge remote-tracking branch 'amitay/master'

11 years agoAdd script to setup Samba4 AD server
Amitay Isaacs [Tue, 15 May 2012 04:19:34 +0000 (14:19 +1000)]
Add script to setup Samba4 AD server

It provisions Samba AD instance for DOMAIN, uses INTERNAL dns server.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
11 years agoExclude samba and ctdb packages from RHEL repo
Amitay Isaacs [Mon, 21 May 2012 03:02:34 +0000 (13:02 +1000)]
Exclude samba and ctdb packages from RHEL repo

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
12 years agoAdd create_cluster.sh example script
Martin Schwenke [Wed, 9 May 2012 04:21:17 +0000 (14:21 +1000)]
Add create_cluster.sh example script

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoUpdate public address generation function make_public_addresses()
Martin Schwenke [Wed, 9 May 2012 03:38:12 +0000 (13:38 +1000)]
Update public address generation function make_public_addresses()

* Don't generate public address config for eth0.
* Change notation used for arithmetic expansion - $[ ... ] form is
  deprecated.
* Delete make_public_addresses_old().

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoAdd openssl-devel to RHEL6-no-desktop.packages
Martin Schwenke [Tue, 8 May 2012 07:15:01 +0000 (17:15 +1000)]
Add openssl-devel to RHEL6-no-desktop.packages

GPFS needs it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoVersion 0.2
Martin Schwenke [Mon, 7 May 2012 07:14:54 +0000 (17:14 +1000)]
Version 0.2

There are enough recent improvements to warrant this...

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoNew option DISK_FOLLOW_SYMLINKS
Martin Schwenke [Mon, 7 May 2012 03:54:46 +0000 (13:54 +1000)]
New option DISK_FOLLOW_SYMLINKS

If DISK_FOLLOW_SYMLINKS=yes then for any disk image paths that are a
symlink, follow the symlink when creating the image.

This allows disk images to be reorganised, perhaps across several
disks, and replaced with symlinks.  On the next cluster creation the
symlinks will be respected and the layout of disk images will be
maintained.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoDevel additions to RHEL6 package lists
Martin Schwenke [Mon, 7 May 2012 01:43:32 +0000 (11:43 +1000)]
Devel additions to RHEL6 package lists

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoNFS client setup fixes
Martin Schwenke [Mon, 7 May 2012 01:24:37 +0000 (11:24 +1000)]
NFS client setup fixes

Install nfs-utils on RHEL6.

Enable nfslock in the basic postinstall - NFS client functionality is
used on client nodes and not just on cluster nodes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agotemplates - gpfs-nas-postinstall.sh should install nfs-utils
Martin Schwenke [Wed, 2 May 2012 06:45:09 +0000 (16:45 +1000)]
templates - gpfs-nas-postinstall.sh should install nfs-utils

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoFix 2 bugs in rhel_disk_prefix()
Martin Schwenke [Tue, 1 May 2012 00:32:32 +0000 (10:32 +1000)]
Fix 2 bugs in rhel_disk_prefix()

* Needs to work for "iscsi", since this is used for shared disks too.

* Error message referred to SYSTEM_DISK_TYPE rather than generic disk
  type passed in $1.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoChange default SHARED_DISK_TYPE=virtio
Martin Schwenke [Tue, 1 May 2012 00:32:03 +0000 (10:32 +1000)]
Change default SHARED_DISK_TYPE=virtio

SCSI not supported on RHEL, so change to a default that is supported.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoChange default SYSTEM_DISK_TYPE=ide
Martin Schwenke [Tue, 1 May 2012 00:30:29 +0000 (10:30 +1000)]
Change default SYSTEM_DISK_TYPE=ide

SCSI not supported on RHEL, so change to a default that is supported.

Remember that virtio system disks won't work with useful
caching... although I haven't test that lately.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoChange default NFS share specified by NFSSHARE and NFS_MOUNTPOINT to /home
Martin Schwenke [Tue, 1 May 2012 00:28:26 +0000 (10:28 +1000)]
Change default NFS share specified by NFSSHARE and NFS_MOUNTPOINT to /home

I never used the old default.  Sharing /home seems like a much better
idea since cluster nodes almost certainly don't need their own /home.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoAdded RHEL5-minimal.packages template to allow building minimal nodes
Martin Schwenke [Mon, 23 Apr 2012 23:50:21 +0000 (09:50 +1000)]
Added RHEL5-minimal.packages template to allow building minimal nodes

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoMerge remote-tracking branch 'amitay/master'
Martin Schwenke [Wed, 28 Mar 2012 05:02:36 +0000 (16:02 +1100)]
Merge remote-tracking branch 'amitay/master'

12 years agoAdd support for SYSTEM_DISK_FORMAT="mmclone"
Martin Schwenke [Wed, 28 Mar 2012 05:01:21 +0000 (16:01 +1100)]
Add support for SYSTEM_DISK_FORMAT="mmclone"

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoAdd AUTH_METHOD config variable for authentication
Amitay Isaacs [Mon, 5 Mar 2012 04:20:32 +0000 (15:20 +1100)]
Add AUTH_METHOD config variable for authentication

possible values are files (default), winbind

12 years agoAdd ctdb plugin for creating /etc/ctdb/public_addresses
Amitay Isaacs [Mon, 5 Mar 2012 04:12:21 +0000 (15:12 +1100)]
Add ctdb plugin for creating /etc/ctdb/public_addresses

12 years agoChange public addresses output format from make_public_addresses()
Amitay Isaacs [Mon, 5 Mar 2012 02:19:04 +0000 (13:19 +1100)]
Change public addresses output format from make_public_addresses()

@@@PUBLIC_ADDRESSES@@@ will be replaced with

firstip,num_ips,iface firstip,num_ips,iface ...

12 years agoRemove unused script and config file
Amitay Isaacs [Mon, 5 Mar 2012 01:03:20 +0000 (12:03 +1100)]
Remove unused script and config file

12 years agoUpdate /etc/krb5.conf using configured domain
Amitay Isaacs [Thu, 16 Feb 2012 09:25:34 +0000 (20:25 +1100)]
Update /etc/krb5.conf using configured domain

12 years agoAdd packages for basic kerberos tools
Amitay Isaacs [Thu, 16 Feb 2012 06:08:06 +0000 (17:08 +1100)]
Add packages for basic kerberos tools

12 years agoUse workgroup rather than cluster name as samba workgroup
Amitay Isaacs [Thu, 16 Feb 2012 05:53:08 +0000 (16:53 +1100)]
Use workgroup rather than cluster name as samba workgroup

12 years agouuid support required for building samba4
Amitay Isaacs [Thu, 16 Feb 2012 05:45:30 +0000 (16:45 +1100)]
uuid support required for building samba4

12 years agoAllow umount as well as unmount.
Martin Schwenke [Fri, 2 Mar 2012 05:13:43 +0000 (16:13 +1100)]
Allow umount as well as unmount.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoFix a really stupid typo in the loopback mount code.
Martin Schwenke [Fri, 2 Mar 2012 05:09:43 +0000 (16:09 +1100)]
Fix a really stupid typo in the loopback mount code.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoNew SYSTEM_DISK_ACCESS_METHOD "guestmount" - now the default if installed
Martin Schwenke [Fri, 2 Mar 2012 05:07:58 +0000 (16:07 +1100)]
New SYSTEM_DISK_ACCESS_METHOD "guestmount" - now the default if installed

This uses the libguestfs-mount fuse magic on Red Hat.  The real
advantage over guestfish is that "autocluster mount" gives you a real
mountpoint where you can browse the filesystem.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoautocluster script should find $installdir even if script is a symlink
Martin Schwenke [Thu, 9 Feb 2012 03:37:43 +0000 (14:37 +1100)]
autocluster script should  find $installdir even if script is a symlink

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoFix typo in some error messages
Martin Schwenke [Thu, 9 Feb 2012 03:19:41 +0000 (14:19 +1100)]
Fix typo in some error messages

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoMerge remote-tracking branch 'amitay/master'
Martin Schwenke [Thu, 9 Feb 2012 03:15:55 +0000 (14:15 +1100)]
Merge remote-tracking branch 'amitay/master'

12 years agoConfigure YUM plugins off in basic postinstall
Martin Schwenke [Thu, 9 Feb 2012 03:13:36 +0000 (14:13 +1100)]
Configure YUM plugins off in basic postinstall

The fastest mirror plugin (used by CentOS and Fedora) is particularly
annoying because we don't tend to even use the standard mirrors.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoRemove auth_type from templates
Amitay Isaacs [Tue, 7 Feb 2012 04:04:45 +0000 (15:04 +1100)]
Remove auth_type from templates

12 years agoAdded packages required for gpfs rpms
Amitay Isaacs [Mon, 6 Feb 2012 04:42:13 +0000 (15:42 +1100)]
Added packages required for gpfs rpms

12 years agoAdd package required for building samba rpms
Amitay Isaacs [Mon, 6 Feb 2012 03:06:18 +0000 (14:06 +1100)]
Add package required for building samba rpms

12 years agoFix NFS mount line in /etc/fstab
Amitay Isaacs [Wed, 1 Feb 2012 03:41:49 +0000 (14:41 +1100)]
Fix NFS mount line in /etc/fstab

12 years agoAdd hooks to remove files and remove 70-persistent-net.rules
Amitay Isaacs [Wed, 1 Feb 2012 03:33:25 +0000 (14:33 +1100)]
Add hooks to remove files and remove 70-persistent-net.rules

This file might exist if the base has been booted and the cluster
created afterwards.

12 years agoStore guestfish PID for unmounting guestfish sessions
Amitay Isaacs [Wed, 1 Feb 2012 01:42:11 +0000 (12:42 +1100)]
Store guestfish PID for unmounting guestfish sessions

12 years agoCalculate SHARED_DISK_PREFIX automatically
Amitay Isaacs [Wed, 1 Feb 2012 01:15:42 +0000 (12:15 +1100)]
Calculate SHARED_DISK_PREFIX automatically

12 years agoFix disk naming for mix ide/scsi system/shared disks
Amitay Isaacs [Wed, 1 Feb 2012 00:48:55 +0000 (11:48 +1100)]
Fix disk naming for mix ide/scsi system/shared disks

12 years agoSpecify netmask (/24) when configuring interface
Amitay Isaacs [Mon, 30 Jan 2012 05:29:07 +0000 (16:29 +1100)]
Specify netmask (/24) when configuring interface

12 years agoAdd missing type option for qemu driver
Amitay Isaacs [Mon, 30 Jan 2012 05:26:53 +0000 (16:26 +1100)]
Add missing type option for qemu driver

12 years agoUpdate autocluster git repo url
Amitay Isaacs [Mon, 30 Jan 2012 05:25:58 +0000 (16:25 +1100)]
Update autocluster git repo url

12 years agoAdded RHEL6.2 ISO details.
Martin Schwenke [Tue, 6 Dec 2011 23:43:15 +0000 (10:43 +1100)]
Added RHEL6.2 ISO details.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoMake setup_cluster.sh extract $auth_type from config file
Martin Schwenke [Tue, 25 Oct 2011 06:08:02 +0000 (17:08 +1100)]
Make setup_cluster.sh extract $auth_type from config file

Edit the config file if you want to change the authentication type to
"winbind".

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - unify templates directories for file and winbind
Martin Schwenke [Tue, 25 Oct 2011 05:52:57 +0000 (16:52 +1100)]
cluster_configure - unify templates directories for file and winbind

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - template substitutions depending on auth_type
Martin Schwenke [Tue, 25 Oct 2011 05:10:24 +0000 (16:10 +1100)]
cluster_configure - template substitutions depending on auth_type

These are horrible but can probably be made a bit cleaner later on.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agogpfs-nas.conf - define auth_method
Martin Schwenke [Tue, 25 Oct 2011 05:09:15 +0000 (16:09 +1100)]
gpfs-nas.conf - define auth_method

Need to get rid of multiple template directories.  They are a
maintenance nightmare.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - need to escape '|' in regular expression
Martin Schwenke [Tue, 25 Oct 2011 05:08:46 +0000 (16:08 +1100)]
cluster_configure - need to escape '|' in regular expression

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agosetup_cluster.sh - fix a typo where "all" is missing in an onnode command
Martin Schwenke [Tue, 25 Oct 2011 03:01:15 +0000 (14:01 +1100)]
setup_cluster.sh - fix a typo where "all" is missing in an onnode command

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - fix FTP_EXPORTS setting
Martin Schwenke [Tue, 25 Oct 2011 03:00:51 +0000 (14:00 +1100)]
cluster_configure - fix FTP_EXPORTS setting

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - fix GPFS_SHARES setting
Martin Schwenke [Tue, 25 Oct 2011 03:00:23 +0000 (14:00 +1100)]
cluster_configure - fix GPFS_SHARES setting

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agocluster_configure - also go GPFS share setup for winbind
Martin Schwenke [Tue, 25 Oct 2011 02:59:32 +0000 (13:59 +1100)]
cluster_configure - also go GPFS share setup for winbind

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agogpfs-nas-postinstall.sh - add install of rssh
Martin Schwenke [Mon, 24 Oct 2011 05:54:21 +0000 (16:54 +1100)]
gpfs-nas-postinstall.sh - add install of rssh

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agosetup_gpfs.sh - fix recovery lock setting for /etc/sysconfig/ctdb
Martin Schwenke [Mon, 24 Oct 2011 05:44:43 +0000 (16:44 +1100)]
setup_gpfs.sh - fix recovery lock setting for /etc/sysconfig/ctdb

Clearly nobody uses this, since it was broken in
94288bb324b1362a9994965e458addcd3b1e8f20 18 months ago.  :-(

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agomknsd.sh - update to use shared_disk_ids file and to work with modern GPFS.
Martin Schwenke [Thu, 20 Oct 2011 05:49:44 +0000 (16:49 +1100)]
mknsd.sh - update to use shared_disk_ids file and to work with modern GPFS.

Old code is left for potential backward compatibility.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoShared disks: put IDs into a file on each node.
Martin Schwenke [Thu, 20 Oct 2011 03:54:53 +0000 (14:54 +1100)]
Shared disks: put IDs into a file on each node.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoRationalise list of packages in gpfs-nas-postinstall.sh.
Martin Schwenke [Thu, 20 Oct 2011 03:03:49 +0000 (14:03 +1100)]
Rationalise list of packages in gpfs-nas-postinstall.sh.

Some packages no longer exist in modern clustered Samba.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoNew configuration variable SHARED_DISK_ID_GEN for configurable shared disk IDs
Martin Schwenke [Tue, 13 Sep 2011 01:08:26 +0000 (11:08 +1000)]
New configuration variable SHARED_DISK_ID_GEN for configurable shared disk IDs

The function or command specified should take 1 argument (disk
index/number) and print to stdout a unique identifier for that disk,
followed by a newline.  Sensible implementations will probably just
use echo.  :-)

The default implementation is via new function
shared_disk_id_default(), which ignores the disk number and generates
the ID using uuidgen, as per the previous hardcoded method.

scsi_id_autocluster.sh is modified to retrieve disk IDs up to 64 64
characters and is truncates at the first newline.  Therefore, in
general, the length of IDs is now governed by the generation function
rather than this script.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agovircmd - add -w/--wait argument with optional timeout.
Martin Schwenke [Wed, 31 Aug 2011 03:32:19 +0000 (13:32 +1000)]
vircmd - add -w/--wait argument with optional timeout.

This is only defined for start and shutdown.  The latter is possibly
the most meaningful one...

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoAdd RHEL 5.7 ISO details.
Martin Schwenke [Tue, 23 Aug 2011 05:50:04 +0000 (15:50 +1000)]
Add RHEL 5.7 ISO details.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoAdd RHEL 6.1 ISO details.
Martin Schwenke [Wed, 22 Jun 2011 07:03:53 +0000 (17:03 +1000)]
Add RHEL 6.1 ISO details.

Signed-off-by: Martin Schwenke <martin@meltin.net>
12 years agoFix subsitute_vars() so it doesn't corrupt binary files.
Martin Schwenke [Fri, 27 May 2011 06:37:00 +0000 (16:37 +1000)]
Fix subsitute_vars() so it doesn't corrupt binary files.

Treating the file contents as a string in bash will almost always
corrupt binary files - at least any containing a NUL character.

This changes the code to use a temporary file rather than a string, so
none of this silliness occurs.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoMakefile generates ChangeLog for dist and spec file installs it as doc.
Martin Schwenke [Tue, 3 May 2011 11:21:11 +0000 (21:21 +1000)]
Makefile generates ChangeLog for dist and spec file installs it as doc.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoMove variables QEMU_NBD and NBD_DEVICE to loopback implementation.
Martin Schwenke [Tue, 3 May 2011 03:43:15 +0000 (13:43 +1000)]
Move variables QEMU_NBD and NBD_DEVICE to loopback implementation.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoAutomatically set default for SYSTEM_DISK_ACCESS_METHOD.
Martin Schwenke [Tue, 3 May 2011 03:18:55 +0000 (13:18 +1000)]
Automatically set default for SYSTEM_DISK_ACCESS_METHOD.

If using qcow2 system disks then prefer guestfish if it is installed,
or use loopback/NBD if requirement utilities are installed.

If not using qcow2 then default to loopback since this will be most
efficient.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoAdd sanity check to ensure guestfish is installed if it's use is selected.
Martin Schwenke [Tue, 3 May 2011 03:18:25 +0000 (13:18 +1000)]
Add sanity check to ensure guestfish is installed if it's use is selected.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoMove sanity check for qcow2 images requiring NBD out of main script.
Martin Schwenke [Tue, 3 May 2011 03:17:50 +0000 (13:17 +1000)]
Move sanity check for qcow2 images requiring NBD out of main script.

This is now a condition that only applies for if
$SYSTEM_DISK_ACCESS_METHOD is "loopback", so move the check to
05diskimage_guestfish.defconf, check the loopback condition and use
post_config_hooks to invoke the check.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoFix a problem with diskimage_* in the guestfish implementation.
Martin Schwenke [Mon, 2 May 2011 06:27:21 +0000 (16:27 +1000)]
Fix a problem with diskimage_* in the guestfish implementation.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoCall "diskimage f args ..." rather than "diskimage_f args ...".
Martin Schwenke [Mon, 2 May 2011 06:18:22 +0000 (16:18 +1000)]
Call "diskimage f args ..." rather than "diskimage_f args ...".

This means that no changes are needed in the main autocluster script
if new functions are added.

Unfortunately, this is an API change, so any add-ons to autocluster
that use the previous mechanism will need to be updated.  This is
pretty easy - just do this to your external file:

  1,$s/diskimage_/diskimage /g

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agocopy_base_dir_substitute_templates() should ignore .svn/ subdirectories.
Martin Schwenke [Thu, 28 Apr 2011 20:38:07 +0000 (06:38 +1000)]
copy_base_dir_substitute_templates() should ignore .svn/ subdirectories.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoAdd diskimage_mv().
Martin Schwenke [Tue, 8 Mar 2011 23:39:49 +0000 (10:39 +1100)]
Add diskimage_mv().

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoLog files being installed from base/ .
Martin Schwenke [Wed, 2 Mar 2011 23:27:41 +0000 (10:27 +1100)]
Log files being installed from base/ .

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoRename config.d/05_* without that underscore.
Martin Schwenke [Tue, 15 Feb 2011 04:17:52 +0000 (15:17 +1100)]
Rename config.d/05_* without that underscore.

For consistency with other files in config.d/.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoMerge branch 'guestfish'
Martin Schwenke [Tue, 15 Feb 2011 04:15:29 +0000 (15:15 +1100)]
Merge branch 'guestfish'

13 years agoUpdate README for guestfish support.
Martin Schwenke [Tue, 15 Feb 2011 04:15:03 +0000 (15:15 +1100)]
Update README for guestfish support.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoStop copy_base_dir_substitute_templates() chmod-ing existing directories.
Martin Schwenke [Mon, 14 Feb 2011 03:54:28 +0000 (14:54 +1100)]
Stop copy_base_dir_substitute_templates() chmod-ing existing directories.

This make break something out there but it is a sensible change.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoDon't use guestfish is-dir directly, use diskimage_is_directory() instead.
Martin Schwenke [Mon, 14 Feb 2011 03:52:17 +0000 (14:52 +1100)]
Don't use guestfish is-dir directly, use diskimage_is_directory() instead.

guestfish is-dir doesn't use exit values to indicate status, and we
already handle that in diskimage_is_directory().

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoTry to make diskimage_is_{file,directory}_guestfish work.
Martin Schwenke [Fri, 11 Feb 2011 05:31:58 +0000 (16:31 +1100)]
Try to make diskimage_is_{file,directory}_guestfish work.

The return code seems bogus in the RHEL6.0 version.  They seem to
print either "true" or "false".

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoUndo __ super-locationisation of variables in call_func().
Martin Schwenke [Fri, 11 Feb 2011 02:47:42 +0000 (13:47 +1100)]
Undo __ super-locationisation of variables in call_func().

There is code that references $type.

Signed-off-by: Martin Schwenke <martin@meltin.net>
13 years agoImplement diskimage_is-file() for loopback and guestfish.
Martin Schwenke [Fri, 11 Feb 2011 02:27:41 +0000 (13:27 +1100)]
Implement diskimage_is-file() for loopback and guestfish.

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