ha-manager.adoc: improve group configuration section

This commit is contained in:
Dietmar Maurer 2016-11-20 10:21:17 +01:00
parent 8536358840
commit 206c2476bf
2 changed files with 34 additions and 1 deletions

18
gen-ha-groups-opts.pl Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/perl
use lib '.';
use strict;
use warnings;
use PVE::RESTHandler;
use Data::Dumper;
use PVE::HA::Groups;
my $private = PVE::HA::Groups::private();
my $properies = $private->{propertyList};
delete $properies->{type};
delete $properies->{group};
print PVE::RESTHandler::dump_properties($properies);

View File

@ -282,6 +282,10 @@ All HA configuration files are within `/etc/pve/ha/`, so they get
automatically distributed to the cluster nodes, and all nodes share automatically distributed to the cluster nodes, and all nodes share
the same HA configuration. the same HA configuration.
Resources
~~~~~~~~~
The resource configuration file `/etc/pve/ha/resources.cfg` stores The resource configuration file `/etc/pve/ha/resources.cfg` stores
the list of resources managed by `ha-manager`. A resource configuration the list of resources managed by `ha-manager`. A resource configuration
inside that list look like this: inside that list look like this:
@ -298,11 +302,22 @@ contain additional properties:
include::ha-resources-opts.adoc[] include::ha-resources-opts.adoc[]
Groups
~~~~~~
The HA group configuration file `/etc/pve/ha/groups.cfg` is used to The HA group configuration file `/etc/pve/ha/groups.cfg` is used to
define groups of cluster nodes. A resource can be restricted to run define groups of cluster nodes. A resource can be restricted to run
only on the members of such group. only on the members of such group. A group configuration look like
this:
----
group: <group>
nodes <node_list>
<property> <value>
...
----
include::ha-groups-opts.adoc[]
Node Power Status Node Power Status