ha-manager.adoc: improve group configuration section
authorDietmar Maurer <dietmar@proxmox.com>
Sun, 20 Nov 2016 09:21:17 +0000 (10:21 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sun, 20 Nov 2016 09:21:17 +0000 (10:21 +0100)
gen-ha-groups-opts.pl [new file with mode: 0755]
ha-manager.adoc

diff --git a/gen-ha-groups-opts.pl b/gen-ha-groups-opts.pl
new file mode 100755 (executable)
index 0000000..bac77de
--- /dev/null
@@ -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);
index 2da00cf..a3355ec 100644 (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
 the same HA configuration.
 
+
+Resources
+~~~~~~~~~
+
 The resource configuration file `/etc/pve/ha/resources.cfg` stores
 the list of resources managed by `ha-manager`. A resource configuration
 inside that list look like this:
@@ -298,11 +302,22 @@ contain additional properties:
 include::ha-resources-opts.adoc[]
 
 
+Groups
+~~~~~~
+
 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
-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