projects
/
invirt/packages/invirt-cluster-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In invirt-cluster-config:
[invirt/packages/invirt-cluster-config.git]
/
cluster.conf.mako
diff --git
a/cluster.conf.mako
b/cluster.conf.mako
index
806e92d
..
e5b5c87
100644
(file)
--- a/
cluster.conf.mako
+++ b/
cluster.conf.mako
@@
-2,7
+2,7
@@
from invirt.config import structs as cfg
%>\
<?xml version="1.0"?>
from invirt.config import structs as cfg
%>\
<?xml version="1.0"?>
-<cluster name="invirt" config_version="1">
+<cluster name="invirt" config_version="2">
% if len(cfg.hosts) == 2:
<cman two_node="1" expected_votes="1" />
% else:
% if len(cfg.hosts) == 2:
<cman two_node="1" expected_votes="1" />
% else:
@@
-10,7
+10,16
@@
from invirt.config import structs as cfg
% endif
<clusternodes>
% for id, host in enumerate(cfg.hosts):
% endif
<clusternodes>
% for id, host in enumerate(cfg.hosts):
- <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}" />
+ <clusternode name="${host.hostname.split('.')[0]}-internal" nodeid="${id + 1}">
+ <fence>
+ <method name="single">
+ <device name="human" nodename="${host.hostname.split('.')[0]}-internal"/>
+ </method>
+ </fence>
+ </clusternode>
% endfor
</clusternodes>
% endfor
</clusternodes>
-</cluster>
\ No newline at end of file
+ <fencedevices>
+ <fencedevice name="human" agent="fence_manual"/>
+ </fencedevices>
+</cluster>