Skip to content

Commit

Permalink
Replace commands with stubs that call crmsh
Browse files Browse the repository at this point in the history
  • Loading branch information
krig committed Dec 16, 2016
1 parent 3791eee commit 6b06de6
Show file tree
Hide file tree
Showing 13 changed files with 156 additions and 1,858 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ deploy:
echo "Run make TO=target-hostname deploy"; \
else \
scp scripts/ha-cluster-functions $(TO):/usr/lib/; \
scp scripts/ha-cluster-{init,join,remove} $(TO):/usr/sbin/; \
scp scripts/ha-cluster-{init,join,remove,geo-init,geo-join,geo-init-arbitrator} $(TO):/usr/sbin/; \
fi

13 changes: 13 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
HA Cluster Bootstrap
====================

NOTE: The actual implementation of these tools has moved to crmsh:

https://github.com/ClusterLabs/crmsh

Tools to bootstrap a Pacemaker High Availability cluster in a hurry.

* ha-cluster-init
Expand All @@ -12,6 +16,15 @@ Tools to bootstrap a Pacemaker High Availability cluster in a hurry.
* ha-cluster-remove
Removes a node from the cluster.

* ha-cluster-geo-init
Configure cluster as the initial cluster in a geo configuration.

* ha-cluster-geo-join
Add cluster to a geo configuration.

* ha-cluster-geo-init-arbitrator
Configure node as geo arbitrator.

NOTE: This tool is most likely to work best on a SUSE-based
distribution (SLE or openSUSE). Patches to make it cross-
platform compatible are welcomed.
56 changes: 0 additions & 56 deletions doc/TODO

This file was deleted.

31 changes: 27 additions & 4 deletions man/ha-cluster-init.8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH HA-CLUSTER-INIT 8 "2011-05-24"
.SH NAME
ha-cluster-init \- Initialize the first node in a new HA cluster.
ha-cluster-init \- Initialize a new HA cluster.
.SH SYNOPSIS
.B ha-cluster-init
[\fB-hqy\fR]
Expand All @@ -12,9 +12,9 @@ ha-cluster-init \- Initialize the first node in a new HA cluster.
[\fIstage\fR]
.SH DESCRIPTION
.B ha-cluster-init
automates initial configuration of the first node in a SUSE
Linux Enterprise High Availability cluster. If invoked
with no arguments, it will:
Automates initial configuration of a SUSE Linux Enterprise
High Availability cluster.
If invoked with no arguments, it will:
.IP 1.
Generate SSH keys for passwordless SSH between cluster nodes.
.IP 2.
Expand Down Expand Up @@ -54,6 +54,27 @@ Default to IP address on
.I interface
instead of eth0 when configuring Corosync.
.TP
.BI "-n " name
Set the name of the configured cluster. Defaults to
.I hacluster
.
.TP
.BI "-N " nodes
Space-separated list of nodes to add to the created
cluster. May include the local host, which will
always be configured as the initial cluster node.
.TP
.BI "-w " watchdog
Use the given watchdog device.
.TP
.B -u
Configure corosync to communicate over unicast (UDP),
and not multicast. Default is multicast unless an
environment where multicast cannot be used is detected.
.TP
.BI "-A " IP
Configure a virtual IP address as a cluster resource.
.TP
.BI "-s " device
Use
.I device
Expand Down Expand Up @@ -129,9 +150,11 @@ SBD fencing configuration.
A complete log of all actions is written to
.I /var/log/ha-cluster-bootstrap.log
.SH "SEE ALSO"
.BR crm (8),
.BR csync2 (1),
.BR corosync (8),
.BR ha-cluster-join (8),
.BR ha-cluster-remove (8)
.SH AUTHOR
Tim Serong <[email protected]>
Kristoffer Gronlund <[email protected]>
5 changes: 5 additions & 0 deletions man/ha-cluster-join.8
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Default to IP address on
.I interface
instead of eth0.
.TP
.BI "-w " watchdog
Use the given watchdog device.
.TP
.I stage
Invoke only one stage of the cluster join. The stage can be
any one of
Expand Down Expand Up @@ -85,9 +88,11 @@ SBD fencing configuration.
A complete log of all actions is written to
.I /var/log/ha-cluster-bootstrap.log
.SH "SEE ALSO"
.BR crm (8),
.BR csync2 (1),
.BR corosync (8),
.BR ha-cluster-init (8),
.BR ha-cluster-remove (8)
.SH AUTHOR
Tim Serong <[email protected]>
Kristoffer Gronlund <[email protected]>
15 changes: 9 additions & 6 deletions man/ha-cluster-remove.8
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ ha-cluster-remove \- remove a node from an existing HA cluster.
[\fB-c\fR \fIhost\fR]
.SH DESCRIPTION
.B ha-cluster-remove
removing the specified node from a SUSE Linux Enterprise High
Availability cluster. It is can not be invoked without
arguments.
Remove the specified node from a SUSE Linux Enterprise High
Availability cluster. The node name is a required argument.
.SH OPTIONS
.TP
.B -h
Expand All @@ -22,10 +21,12 @@ Be quiet (don't describe what's happening, just do it).
Answer "yes" to all prompts (use with caution).
.TP
.BI "-c " host
Specify IP address or hostname of removing cluster node.
Specify IP address or hostname of cluster node which will
be removed from the cluster.
.SH FILE
In addition to remove the node clearly from cluster, the following files
are deleted from the node by \fBha-cluster-remove\fR:
In addition to removing the node from the cluster
configuration, the following files are deleted from
the node by \fBha-cluster-remove\fR:
.PP
.BI /etc/csync2/csync2.cfg
.BI /etc/csync2/key_hagroup
Expand All @@ -45,9 +46,11 @@ SBD fencing configuration.
A complete log of all actions is written to
.I /var/log/ha-cluster-bootstrap.log
.SH "SEE ALSO"
.BR crm (8),
.BR csync2 (1),
.BR corosync (8),
.BR ha-cluster-init (8),
.BR ha-cluster-join (8)
.SH AUTHOR
Xia Li <[email protected]>
Kristoffer Gronlund <[email protected]>
Loading

0 comments on commit 6b06de6

Please sign in to comment.