From: Dietmar Maurer Date: Sun, 20 Nov 2016 09:21:17 +0000 (+0100) Subject: ha-manager.adoc: improve group configuration section X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=206c2476bf17a5d30fe27d5dc102fedf567b3e52 ha-manager.adoc: improve group configuration section --- diff --git a/gen-ha-groups-opts.pl b/gen-ha-groups-opts.pl new file mode 100755 index 0000000..bac77de --- /dev/null +++ b/gen-ha-groups-opts.pl @@ -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); diff --git a/ha-manager.adoc b/ha-manager.adoc index 2da00cf..a3355ec 100644 --- a/ha-manager.adoc +++ b/ha-manager.adoc @@ -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: + nodes + + ... +---- +include::ha-groups-opts.adoc[] Node Power Status