forked from linux-system-roles/ha_cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.README.html
2782 lines (2769 loc) · 326 KB
/
.README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!--
==============================================================================
"GitHub HTML5 Pandoc Template" v2.2 — by Tristano Ajmone
==============================================================================
Copyright © Tristano Ajmone, 2017-2020, MIT License (MIT). Project's home:
- https://github.com/tajmone/pandoc-goodies
The CSS in this template reuses source code taken from the following projects:
- GitHub Markdown CSS: Copyright © Sindre Sorhus, MIT License (MIT):
https://github.com/sindresorhus/github-markdown-css
- Primer CSS: Copyright © 2016-2017 GitHub Inc., MIT License (MIT):
http://primercss.io/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The MIT License
Copyright (c) Tristano Ajmone, 2017-2020 (github.com/tajmone/pandoc-goodies)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) 2017 GitHub Inc.
"GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020,
released under the MIT License (MIT); it contains readaptations of substantial
portions of the following third party softwares:
(1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
(2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
==============================================================================-->
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>ha_cluster</title>
<style type="text/css">
@charset "UTF-8";.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#24292e;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word;box-sizing:border-box;min-width:200px;margin:0 auto;padding:45px}.markdown-body a{color:#0366d6;background-color:transparent;text-decoration:none;-webkit-text-decoration-skip:objects}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body a:hover{text-decoration:underline}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body strong{font-weight:600}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1{font-size:2em;margin:.67em 0;padding-bottom:.3em;border-bottom:1px solid #eaecef}.markdown-body h2{padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid #eaecef}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{font-size:.85em;color:#6a737d}.markdown-body img{border-style:none}.markdown-body svg:not(:root){overflow:hidden}.markdown-body hr{box-sizing:content-box;height:.25em;margin:24px 0;padding:0;overflow:hidden;background-color:#e1e4e8;border:0}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body input{margin:0;overflow:visible;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=checkbox]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dd{margin-left:0}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace}.markdown-body pre{font:12px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;word-wrap:normal}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body table{display:block;width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;box-sizing:content-box;background-color:#fff}.markdown-body code{padding:.2em 0;margin:0;font-size:85%;background-color:rgba(27,31,35,.05);border-radius:3px}.markdown-body code::after,.markdown-body code::before{letter-spacing:-.2em;content:" "}.markdown-body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:0 0;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px}.markdown-body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body pre code::after,.markdown-body pre code::before{content:normal}.markdown-body .full-commit .btn-outline:not(:disabled):hover{color:#005cc5;border-color:#005cc5}.markdown-body kbd{box-shadow:inset 0 -1px 0 #959da5;display:inline-block;padding:3px 5px;font:11px/10px SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;color:#444d56;vertical-align:middle;background-color:#fcfcfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:3px;box-shadow:inset 0 -1px 0 #959da5}.markdown-body :checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.Alert,.Error,.Note,.Success,.Warning{padding:11px;margin-bottom:24px;border-style:solid;border-width:1px;border-radius:4px}.Alert p,.Error p,.Note p,.Success p,.Warning p{margin-top:0}.Alert p:last-child,.Error p:last-child,.Note p:last-child,.Success p:last-child,.Warning p:last-child{margin-bottom:0}.Alert{color:#246;background-color:#e2eef9;border-color:#bac6d3}.Warning{color:#4c4a42;background-color:#fff9ea;border-color:#dfd8c2}.Error{color:#911;background-color:#fcdede;border-color:#d2b2b2}.Success{color:#22662c;background-color:#e2f9e5;border-color:#bad3be}.Note{color:#2f363d;background-color:#f6f8fa;border-color:#d5d8da}.Alert h1,.Alert h2,.Alert h3,.Alert h4,.Alert h5,.Alert h6{color:#246;margin-bottom:0}.Warning h1,.Warning h2,.Warning h3,.Warning h4,.Warning h5,.Warning h6{color:#4c4a42;margin-bottom:0}.Error h1,.Error h2,.Error h3,.Error h4,.Error h5,.Error h6{color:#911;margin-bottom:0}.Success h1,.Success h2,.Success h3,.Success h4,.Success h5,.Success h6{color:#22662c;margin-bottom:0}.Note h1,.Note h2,.Note h3,.Note h4,.Note h5,.Note h6{color:#2f363d;margin-bottom:0}.Alert h1:first-child,.Alert h2:first-child,.Alert h3:first-child,.Alert h4:first-child,.Alert h5:first-child,.Alert h6:first-child,.Error h1:first-child,.Error h2:first-child,.Error h3:first-child,.Error h4:first-child,.Error h5:first-child,.Error h6:first-child,.Note h1:first-child,.Note h2:first-child,.Note h3:first-child,.Note h4:first-child,.Note h5:first-child,.Note h6:first-child,.Success h1:first-child,.Success h2:first-child,.Success h3:first-child,.Success h4:first-child,.Success h5:first-child,.Success h6:first-child,.Warning h1:first-child,.Warning h2:first-child,.Warning h3:first-child,.Warning h4:first-child,.Warning h5:first-child,.Warning h6:first-child{margin-top:0}h1.title,p.subtitle{text-align:center}h1.title.followed-by-subtitle{margin-bottom:0}p.subtitle{font-size:1.5em;font-weight:600;line-height:1.25;margin-top:0;margin-bottom:16px;padding-bottom:.3em}div.line-block{white-space:pre-line}
</style>
<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<article class="markdown-body">
<header>
<h1 class="title">ha_cluster</h1>
</header>
<hr>
<nav id="TOC">
<h1 class="toc-title">Contents</h1>
<ul>
<li><a href="#limitations" id="toc-limitations">Limitations</a></li>
<li><a href="#requirements" id="toc-requirements">Requirements</a>
<ul>
<li><a href="#collection-requirements"
id="toc-collection-requirements">Collection requirements</a></li>
</ul></li>
<li><a href="#role-variables" id="toc-role-variables">Role Variables</a>
<ul>
<li><a href="#defined-in-defaultsmainyml"
id="toc-defined-in-defaultsmainyml">Defined in
<code>defaults/main.yml</code></a>
<ul>
<li><a href="#ha_cluster_export_configuration"
id="toc-ha_cluster_export_configuration"><code>ha_cluster_export_configuration</code></a></li>
<li><a href="#ha_cluster_enable_repos"
id="toc-ha_cluster_enable_repos"><code>ha_cluster_enable_repos</code></a></li>
<li><a href="#ha_cluster_enable_repos_resilient_storage"
id="toc-ha_cluster_enable_repos_resilient_storage"><code>ha_cluster_enable_repos_resilient_storage</code></a></li>
<li><a href="#ha_cluster_manage_firewall"
id="toc-ha_cluster_manage_firewall"><code>ha_cluster_manage_firewall</code></a></li>
<li><a href="#ha_cluster_manage_selinux"
id="toc-ha_cluster_manage_selinux"><code>ha_cluster_manage_selinux</code></a></li>
<li><a href="#ha_cluster_cluster_present"
id="toc-ha_cluster_cluster_present"><code>ha_cluster_cluster_present</code></a></li>
<li><a href="#ha_cluster_start_on_boot"
id="toc-ha_cluster_start_on_boot"><code>ha_cluster_start_on_boot</code></a></li>
<li><a href="#ha_cluster_install_cloud_agents"
id="toc-ha_cluster_install_cloud_agents"><code>ha_cluster_install_cloud_agents</code></a></li>
<li><a href="#ha_cluster_fence_agent_packages"
id="toc-ha_cluster_fence_agent_packages"><code>ha_cluster_fence_agent_packages</code></a></li>
<li><a href="#ha_cluster_extra_packages"
id="toc-ha_cluster_extra_packages"><code>ha_cluster_extra_packages</code></a></li>
<li><a href="#ha_cluster_use_latest_packages"
id="toc-ha_cluster_use_latest_packages"><code>ha_cluster_use_latest_packages</code></a></li>
<li><a href="#ha_cluster_hacluster_password"
id="toc-ha_cluster_hacluster_password"><code>ha_cluster_hacluster_password</code></a></li>
<li><a href="#ha_cluster_hacluster_qdevice_password"
id="toc-ha_cluster_hacluster_qdevice_password"><code>ha_cluster_hacluster_qdevice_password</code></a></li>
<li><a href="#ha_cluster_corosync_key_src"
id="toc-ha_cluster_corosync_key_src"><code>ha_cluster_corosync_key_src</code></a></li>
<li><a href="#ha_cluster_pacemaker_key_src"
id="toc-ha_cluster_pacemaker_key_src"><code>ha_cluster_pacemaker_key_src</code></a></li>
<li><a href="#ha_cluster_fence_virt_key_src"
id="toc-ha_cluster_fence_virt_key_src"><code>ha_cluster_fence_virt_key_src</code></a></li>
<li><a
href="#ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"
id="toc-ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"><code>ha_cluster_pcsd_public_key_src</code>,
<code>ha_cluster_pcsd_private_key_src</code></a></li>
<li><a href="#ha_cluster_pcsd_certificates"
id="toc-ha_cluster_pcsd_certificates"><code>ha_cluster_pcsd_certificates</code></a></li>
<li><a href="#ha_cluster_regenerate_keys"
id="toc-ha_cluster_regenerate_keys"><code>ha_cluster_regenerate_keys</code></a></li>
<li><a href="#ha_cluster_pcs_permission_list"
id="toc-ha_cluster_pcs_permission_list"><code>ha_cluster_pcs_permission_list</code></a></li>
<li><a href="#ha_cluster_cluster_name"
id="toc-ha_cluster_cluster_name"><code>ha_cluster_cluster_name</code></a></li>
<li><a href="#ha_cluster_transport"
id="toc-ha_cluster_transport"><code>ha_cluster_transport</code></a></li>
<li><a href="#ha_cluster_totem"
id="toc-ha_cluster_totem"><code>ha_cluster_totem</code></a></li>
<li><a href="#ha_cluster_quorum"
id="toc-ha_cluster_quorum"><code>ha_cluster_quorum</code></a></li>
<li><a href="#ha_cluster_sbd_enabled"
id="toc-ha_cluster_sbd_enabled"><code>ha_cluster_sbd_enabled</code></a></li>
<li><a href="#ha_cluster_sbd_options"
id="toc-ha_cluster_sbd_options"><code>ha_cluster_sbd_options</code></a></li>
<li><a href="#ha_cluster_node_options"
id="toc-ha_cluster_node_options"><code>ha_cluster_node_options</code></a></li>
<li><a href="#ha_cluster_cluster_properties"
id="toc-ha_cluster_cluster_properties"><code>ha_cluster_cluster_properties</code></a></li>
<li><a href="#ha_cluster_resource_primitives"
id="toc-ha_cluster_resource_primitives"><code>ha_cluster_resource_primitives</code></a></li>
<li><a href="#ha_cluster_resource_groups"
id="toc-ha_cluster_resource_groups"><code>ha_cluster_resource_groups</code></a></li>
<li><a href="#ha_cluster_resource_clones"
id="toc-ha_cluster_resource_clones"><code>ha_cluster_resource_clones</code></a></li>
<li><a href="#ha_cluster_resource_bundles"
id="toc-ha_cluster_resource_bundles"><code>ha_cluster_resource_bundles</code></a></li>
<li><a href="#ha_cluster_resource_defaults"
id="toc-ha_cluster_resource_defaults"><code>ha_cluster_resource_defaults</code></a></li>
<li><a href="#ha_cluster_resource_operation_defaults"
id="toc-ha_cluster_resource_operation_defaults"><code>ha_cluster_resource_operation_defaults</code></a></li>
<li><a href="#ha_cluster_stonith_levels"
id="toc-ha_cluster_stonith_levels"><code>ha_cluster_stonith_levels</code></a></li>
<li><a href="#ha_cluster_constraints_location"
id="toc-ha_cluster_constraints_location"><code>ha_cluster_constraints_location</code></a></li>
<li><a href="#ha_cluster_constraints_colocation"
id="toc-ha_cluster_constraints_colocation"><code>ha_cluster_constraints_colocation</code></a></li>
<li><a href="#ha_cluster_constraints_order"
id="toc-ha_cluster_constraints_order"><code>ha_cluster_constraints_order</code></a></li>
<li><a href="#ha_cluster_constraints_ticket"
id="toc-ha_cluster_constraints_ticket"><code>ha_cluster_constraints_ticket</code></a></li>
<li><a href="#ha_cluster_acls"
id="toc-ha_cluster_acls"><code>ha_cluster_acls</code></a></li>
<li><a href="#ha_cluster_alerts"
id="toc-ha_cluster_alerts"><code>ha_cluster_alerts</code></a></li>
<li><a href="#ha_cluster_qnetd"
id="toc-ha_cluster_qnetd"><code>ha_cluster_qnetd</code></a></li>
</ul></li>
<li><a href="#inventory" id="toc-inventory">Inventory</a>
<ul>
<li><a href="#nodes-names-and-addresses"
id="toc-nodes-names-and-addresses">Nodes' names and addresses</a></li>
<li><a href="#sbd-watchdog-and-devices"
id="toc-sbd-watchdog-and-devices">SBD watchdog and devices</a></li>
</ul></li>
</ul></li>
<li><a href="#variables-exported-by-the-role"
id="toc-variables-exported-by-the-role">Variables Exported by the
Role</a></li>
<li><a href="#example-playbooks" id="toc-example-playbooks">Example
Playbooks</a>
<ul>
<li><a href="#configuring-firewall-and-selinux-using-each-role"
id="toc-configuring-firewall-and-selinux-using-each-role">Configuring
firewall and selinux using each role</a></li>
<li><a
href="#creating-pcsd-tls-cert-and-key-files-using-the-certificate-role"
id="toc-creating-pcsd-tls-cert-and-key-files-using-the-certificate-role">Creating
pcsd TLS cert and key files using the <code>certificate</code>
role</a></li>
<li><a href="#creating-a-cluster-running-no-resources"
id="toc-creating-a-cluster-running-no-resources">Creating a cluster
running no resources</a></li>
<li><a href="#advanced-corosync-configuration"
id="toc-advanced-corosync-configuration">Advanced Corosync
configuration</a></li>
<li><a href="#configuring-cluster-to-use-sbd"
id="toc-configuring-cluster-to-use-sbd">Configuring cluster to use
SBD</a>
<ul>
<li><a href="#using-ha_cluster_node_options-variable"
id="toc-using-ha_cluster_node_options-variable">Using
<code>ha_cluster_node_options</code> variable</a></li>
<li><a href="#using-ha_cluster-variable"
id="toc-using-ha_cluster-variable">Using <code>ha_cluster</code>
variable</a></li>
</ul></li>
<li><a href="#configuring-cluster-properties"
id="toc-configuring-cluster-properties">Configuring cluster
properties</a></li>
<li><a href="#creating-a-cluster-with-fencing-and-several-resources"
id="toc-creating-a-cluster-with-fencing-and-several-resources">Creating
a cluster with fencing and several resources</a></li>
<li><a href="#configuring-resource-and-resource-operation-defaults"
id="toc-configuring-resource-and-resource-operation-defaults">Configuring
resource and resource operation defaults</a></li>
<li><a href="#configuring-stonith-levels"
id="toc-configuring-stonith-levels">Configuring stonith levels</a></li>
<li><a href="#creating-a-cluster-with-resource-constraints"
id="toc-creating-a-cluster-with-resource-constraints">Creating a cluster
with resource constraints</a></li>
<li><a href="#configuring-a-cluster-using-a-quorum-device"
id="toc-configuring-a-cluster-using-a-quorum-device">Configuring a
cluster using a quorum device</a>
<ul>
<li><a href="#configuring-a-quorum-device"
id="toc-configuring-a-quorum-device">Configuring a quorum
device</a></li>
<li><a href="#configuring-a-cluster-to-use-a-quorum-device"
id="toc-configuring-a-cluster-to-use-a-quorum-device">Configuring a
cluster to use a quorum device</a></li>
</ul></li>
<li><a href="#configuring-node-attributes"
id="toc-configuring-node-attributes">Configuring node
attributes</a></li>
<li><a href="#configuring-acls" id="toc-configuring-acls">Configuring
ACLs</a></li>
<li><a href="#configuring-utilization"
id="toc-configuring-utilization">Configuring utilization</a></li>
<li><a href="#configuring-alerts"
id="toc-configuring-alerts">Configuring Alerts</a></li>
<li><a href="#purging-all-cluster-configuration"
id="toc-purging-all-cluster-configuration">Purging all cluster
configuration</a></li>
</ul></li>
<li><a href="#rpm-ostree" id="toc-rpm-ostree">rpm-ostree</a></li>
<li><a href="#license" id="toc-license">License</a></li>
<li><a href="#author-information" id="toc-author-information">Author
Information</a></li>
</ul>
</nav>
<hr>
<p>An Ansible role for managing High Availability Clustering.</p>
<h1 id="limitations">Limitations</h1>
<ul>
<li>Compatible OS
<ul>
<li>RHEL 8.3+, Fedora 31+</li>
<li>SUSE Linux Enterprise Server 15 with HA extension</li>
<li>SUSE Linux Enterprise Server for SAP Applications 15</li>
</ul></li>
<li>Systems running RHEL are expected to be registered and have
High-Availability repositories accessible, and ResilientStorage
repositories accessible if using
<code>ha_cluster_enable_repos_resilient_storage</code></li>
<li>The role replaces the configuration of HA Cluster on specified
nodes. Any settings not specified in the role variables will be
lost.</li>
<li>The role is capable of configuring:
<ul>
<li>single-link or multi-link cluster</li>
<li>Corosync transport options including compression and encryption</li>
<li>Corosync totem options</li>
<li>Corosync quorum options</li>
<li>Corosync quorum device (both qnetd and qdevice)</li>
<li>SBD</li>
<li>Pacemaker cluster properties</li>
<li>stonith and resources</li>
<li>resource defaults and resource operation defaults</li>
<li>stonith levels, also known as fencing topology</li>
<li>resource constraints</li>
<li>Pacemaker node attributes</li>
<li>Pacemaker Access Control Lists (ACLs)</li>
<li>node and resource utilization</li>
<li>Pacemaker Alerts</li>
</ul></li>
<li>The role is capable of exporting existing cluster configuration:
<ul>
<li>single-link or multi-link cluster</li>
<li>Corosync transport options including compression and encryption</li>
<li>Corosync totem options</li>
<li>Corosync quorum options</li>
</ul></li>
</ul>
<h1 id="requirements">Requirements</h1>
<p>See below</p>
<h2 id="collection-requirements">Collection requirements</h2>
<p>The role requires the <code>firewall</code> role and the
<code>selinux</code> role from the
<code>fedora.linux_system_roles</code> collection, if
<code>ha_cluster_manage_firewall</code> and
<code>ha_cluster_manage_selinux</code> is set to true, respectively.
Please see also <a
href="#ha_cluster_manage_firewall"><code>ha_cluster_manage_firewall</code></a>
and <a
href="#ha_cluster_manage_selinux"><code>ha_cluster_manage_selinux</code></a>.</p>
<p>If the <code>ha_cluster</code> is a role from the
<code>fedora.linux_system_roles</code> collection or from the Fedora RPM
package, the requirement is already satisfied.</p>
<p>If you need to manage <code>rpm-ostree</code> systems, you will need
to install additional collections. Please run the following command line
to install the collections.</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">ansible-galaxy</span> collection install <span class="at">-r</span> meta/collection-requirements.yml</span></code></pre></div>
<h1 id="role-variables">Role Variables</h1>
<h2 id="defined-in-defaultsmainyml">Defined in
<code>defaults/main.yml</code></h2>
<h3
id="ha_cluster_export_configuration"><code>ha_cluster_export_configuration</code></h3>
<p>boolean, default: <code>false</code></p>
<p>Export existing cluster configuration. See <a
href="#variables-exported-by-the-role">Variables Exported by the
Role</a> for details.</p>
<h3
id="ha_cluster_enable_repos"><code>ha_cluster_enable_repos</code></h3>
<p>boolean, default: <code>true</code></p>
<p>RHEL and CentOS only, enable repositories containing needed
packages</p>
<h3
id="ha_cluster_enable_repos_resilient_storage"><code>ha_cluster_enable_repos_resilient_storage</code></h3>
<p>boolean, default: <code>false</code></p>
<p>RHEL and CentOS only, enable repositories containing resilient
storage packages, such as dlm or gfs2. For this option to take effect,
<code>ha_cluster_enable_repos</code> must be set to
<code>true</code>.</p>
<h3
id="ha_cluster_manage_firewall"><code>ha_cluster_manage_firewall</code></h3>
<p>boolean, default: false</p>
<p>Manage the <code>firewall high-availability service</code> as well as
the <code>fence-virt port</code>. When
<code>ha_cluster_manage_firewall</code> is <code>true</code>, the
<code>firewall high-availability service</code> and
<code>fence-virt port</code> are enabled. When
<code>ha_cluster_manage_firewall</code> is <code>false</code>, the
<code>ha_cluster role</code> does not manage the firewall.</p>
<p>NOTE: <code>ha_cluster_manage_firewall</code> is limited to
<em>adding</em> ports. It cannot be used for <em>removing</em> ports. If
you want to remove ports, you will need to use the firewall system role
directly.</p>
<p>NOTE: The version of the <code>ha_cluster</code> role is 1.7.5 or
older, the firewall was configured by default if the firewalld was
available when the <code>ha_cluster</code> role was executed. In the
newer version, it does not happen unless
<code>ha_cluster_manage_firewall</code> is set to <code>true</code>.</p>
<h3
id="ha_cluster_manage_selinux"><code>ha_cluster_manage_selinux</code></h3>
<p>boolean, default: false</p>
<p>Manage the ports belonging to the
<code>firewall high-availability service</code> using the selinux role.
When <code>ha_cluster_manage_selinux</code> is <code>true</code>, the
ports belonging to the <code>firewall high-availability service</code>
are associated with the selinux port type <code>cluster_port_t</code>.
When <code>ha_cluster_manage_selinux</code> is <code>false</code>, the
<code>ha_cluster role</code> does not manage the selinux.</p>
<p>NOTE: The firewall configuration is prerequisite for managing
selinux. If the firewall is not installed, managing selinux policy is
skipped.</p>
<p>NOTE: <code>ha_cluster_manage_selinux</code> is limited to
<em>adding</em> policy. It cannot be used for <em>removing</em> policy.
If you want to remove policy, you will need to use the selinux system
role directly.</p>
<h3
id="ha_cluster_cluster_present"><code>ha_cluster_cluster_present</code></h3>
<p>boolean, default: <code>true</code></p>
<p>If set to <code>true</code>, HA cluster will be configured on the
hosts according to other variables. If set to <code>false</code>, all HA
Cluster configuration will be purged from target hosts. If set to
<code>null</code>, HA cluster configuration will not be changed.</p>
<h3
id="ha_cluster_start_on_boot"><code>ha_cluster_start_on_boot</code></h3>
<p>boolean, default: <code>true</code></p>
<p>If set to <code>true</code>, cluster services will be configured to
start on boot. If set to <code>false</code>, cluster services will be
configured not to start on boot.</p>
<h3
id="ha_cluster_install_cloud_agents"><code>ha_cluster_install_cloud_agents</code></h3>
<p>boolean, default: <code>false</code></p>
<p>The role automatically installs needed HA Cluster packages. However,
resource and fence agents for cloud environments are not installed by
default on RHEL. If you need those to be installed, set this variable to
<code>true</code>. Alternatively, you can specify those packages in <a
href="#ha_cluster_fence_agent_packages"><code>ha_cluster_fence_agent_packages</code></a>
and <a
href="#ha_cluster_extra_packages"><code>ha_cluster_extra_packages</code></a>
variables.</p>
<h3
id="ha_cluster_fence_agent_packages"><code>ha_cluster_fence_agent_packages</code></h3>
<p>list of fence agent packages to install, default: fence-agents-all,
fence-virt</p>
<h3
id="ha_cluster_extra_packages"><code>ha_cluster_extra_packages</code></h3>
<p>list of additional packages to be installed, default: no packages</p>
<p>This variable can be used to install additional packages not
installed automatically by the role, for example custom resource
agents.</p>
<p>It is possible to specify fence agents here as well. However, <a
href="#ha_cluster_fence_agent_packages"><code>ha_cluster_fence_agent_packages</code></a>
is preferred for that, so that its default value is overridden.</p>
<h3
id="ha_cluster_use_latest_packages"><code>ha_cluster_use_latest_packages</code></h3>
<p>boolean, default: <code>false</code></p>
<p>If set to <code>true</code>, all packages will be installed with
latest version. If set to <code>false</code>, existing packages will not
be updated.</p>
<h3
id="ha_cluster_hacluster_password"><code>ha_cluster_hacluster_password</code></h3>
<p>string, no default - must be specified</p>
<p>Password of the <code>hacluster</code> user. This user has full
access to a cluster. It is recommended to vault encrypt the value, see
<a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<h3
id="ha_cluster_hacluster_qdevice_password"><code>ha_cluster_hacluster_qdevice_password</code></h3>
<p>string, no default - optional</p>
<p>Needed only if a <code>ha_cluster_quorum</code> is configured to use
a qdevice of type <code>net</code> AND password of the
<code>hacluster</code> user on the qdevice is different from
<code>ha_cluster_hacluster_password</code>. This user has full access to
a cluster. It is recommended to vault encrypt the value, see <a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<h3
id="ha_cluster_corosync_key_src"><code>ha_cluster_corosync_key_src</code></h3>
<p>path to Corosync authkey file, default: <code>null</code></p>
<p>Authentication and encryption key for Corosync communication. It is
highly recommended to have a unique value for each cluster. The key
should be 256 bytes of random data.</p>
<p>If value is provided, it is recommended to vault encrypt it. See <a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<p>If no key is specified, a key already present on the nodes will be
used. If nodes don't have the same key, a key from one node will be
distributed to other nodes so that all nodes have the same key. If no
node has a key, a new key will be generated and distributed to the
nodes.</p>
<p>If this variable is set, <code>ha_cluster_regenerate_keys</code> is
ignored for this key.</p>
<h3
id="ha_cluster_pacemaker_key_src"><code>ha_cluster_pacemaker_key_src</code></h3>
<p>path to Pacemaker authkey file, default: <code>null</code></p>
<p>Authentication and encryption key for Pacemaker communication. It is
highly recommended to have a unique value for each cluster. The key
should be 256 bytes of random data.</p>
<p>If value is provided, it is recommended to vault encrypt it. See <a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<p>If no key is specified, a key already present on the nodes will be
used. If nodes don't have the same key, a key from one node will be
distributed to other nodes so that all nodes have the same key. If no
node has a key, a new key will be generated and distributed to the
nodes.</p>
<p>If this variable is set, <code>ha_cluster_regenerate_keys</code> is
ignored for this key.</p>
<h3
id="ha_cluster_fence_virt_key_src"><code>ha_cluster_fence_virt_key_src</code></h3>
<p>path to fence-virt or fence-xvm pre-shared key file, default:
<code>null</code></p>
<p>Authentication key for fence-virt or fence-xvm fence agent.</p>
<p>If value is provided, it is recommended to vault encrypt it. See <a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<p>If no key is specified, a key already present on the nodes will be
used. If nodes don't have the same key, a key from one node will be
distributed to other nodes so that all nodes have the same key. If no
node has a key, a new key will be generated and distributed to the
nodes.</p>
<p>If this variable is set, <code>ha_cluster_regenerate_keys</code> is
ignored for this key.</p>
<p>If you let the role to generate new key, you are supposed to copy the
key to your nodes' hypervisor to ensure that fencing works.</p>
<h3
id="ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"><code>ha_cluster_pcsd_public_key_src</code>,
<code>ha_cluster_pcsd_private_key_src</code></h3>
<p>path to pcsd TLS certificate and key, default: <code>null</code></p>
<p>TLS certificate and private key for pcsd. If this is not specified, a
certificate - key pair already present on the nodes will be used. If
certificate - key pair is not present, a random new one will be
generated.</p>
<p>If private key value is provided, it is recommended to vault encrypt
it. See <a
href="https://docs.ansible.com/ansible/latest/user_guide/vault.html">https://docs.ansible.com/ansible/latest/user_guide/vault.html</a>
for details.</p>
<p>If these variables are set, <code>ha_cluster_regenerate_keys</code>
is ignored for this certificate - key pair.</p>
<h3
id="ha_cluster_pcsd_certificates"><code>ha_cluster_pcsd_certificates</code></h3>
<p>If there is no pcsd private key and certificate, there are two ways
to create them.</p>
<p>One way is by setting <code>ha_cluster_pcsd_certificates</code>
variable. Another way is by setting none of <a
href="#ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"><code>ha_cluster_pcsd_public_key_src</code>
and <code>ha_cluster_pcsd_private_key_src</code></a> and
<code>ha_cluster_pcsd_certificates</code>.</p>
<p>If <code>ha_cluster_pcsd_certificates</code> is provided, the
<code>certificate</code> role is internally used and it creates the
private key and certificate for pcsd as defined. If none of the
variables are provided, the <code>ha_cluster</code> role will create
pcsd certificates via pcsd itself.</p>
<p>The value of <code>ha_cluster_pcsd_certificates</code> is set to the
variable <code>certificate_requests</code> in the
<code>certificate</code> role. For more information, see the
<code>certificate_requests</code> section in the
<code>certificate</code> role documentation.</p>
<p>The default value is <code>[]</code>.</p>
<p>NOTE: The <code>certificate</code> role, unless using IPA and joining
the systems to an IPA domain, creates self-signed certificates, so you
will need to explicitly configure trust, which is not currently
supported by the system roles.</p>
<p>NOTE: When you set <code>ha_cluster_pcsd_certificates</code>, you
must not set <code>ha_cluster_pcsd_public_key_src</code> and
<code>ha_cluster_pcsd_private_key_src</code> variables.</p>
<p>NOTE: When you set <code>ha_cluster_pcsd_certificates</code>,
<code>ha_cluster_regenerate_keys</code> is ignored for this certificate
- key pair.</p>
<h3
id="ha_cluster_regenerate_keys"><code>ha_cluster_regenerate_keys</code></h3>
<p>boolean, default: <code>false</code></p>
<p>If this is set to <code>true</code>, pre-shared keys and TLS
certificates will be regenerated. See also: <a
href="#ha_cluster_corosync_key_src"><code>ha_cluster_corosync_key_src</code></a>,
<a
href="#ha_cluster_pacemaker_key_src"><code>ha_cluster_pacemaker_key_src</code></a>,
<a
href="#ha_cluster_fence_virt_key_src"><code>ha_cluster_fence_virt_key_src</code></a>,
<a
href="#ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"><code>ha_cluster_pcsd_public_key_src</code></a>,
<a
href="#ha_cluster_pcsd_public_key_src-ha_cluster_pcsd_private_key_src"><code>ha_cluster_pcsd_private_key_src</code></a>
<a
href="#ha_cluster_pcsd_certificates"><code>ha_cluster_pcsd_certificates</code></a></p>
<h3
id="ha_cluster_pcs_permission_list"><code>ha_cluster_pcs_permission_list</code></h3>
<p>structure and default value:</p>
<div class="sourceCode" id="cb2"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_pcs_permission_list</span><span class="kw">:</span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">type</span><span class="kw">:</span><span class="at"> group</span></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> haclient</span></span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">allow_list</span><span class="kw">:</span></span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> grant</span></span>
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> read</span></span>
<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> write</span></span></code></pre></div>
<p>This configures permissions to manage a cluster using pcsd. The items
are as follows:</p>
<ul>
<li><code>type</code> - <code>user</code> or <code>group</code></li>
<li><code>name</code> - user or group name</li>
<li><code>allow_list</code> - Allowed actions for the specified user or
group:
<ul>
<li><code>read</code> - allows to view cluster status and settings</li>
<li><code>write</code> - allows to modify cluster settings except
permissions and ACLs</li>
<li><code>grant</code> - allows to modify cluster permissions and
ACLs</li>
<li><code>full</code> - allows unrestricted access to a cluster
including adding and removing nodes and access to keys and
certificates</li>
</ul></li>
</ul>
<h3
id="ha_cluster_cluster_name"><code>ha_cluster_cluster_name</code></h3>
<p>string, default: <code>my-cluster</code></p>
<p>Name of the cluster.</p>
<h3 id="ha_cluster_transport"><code>ha_cluster_transport</code></h3>
<p>structure, default: no settings</p>
<div class="sourceCode" id="cb3"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_transport</span><span class="kw">:</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">type</span><span class="kw">:</span><span class="at"> knet</span></span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">options</span><span class="kw">:</span></span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">links</span><span class="kw">:</span></span>
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span></span>
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span></span>
<span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">compression</span><span class="kw">:</span></span>
<span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">crypto</span><span class="kw">:</span></span>
<span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span></code></pre></div>
<ul>
<li><code>type</code> (optional) - Transport type: <code>knet</code>,
<code>udp</code> or <code>udpu</code>. Defaults to <code>knet</code> if
not specified.</li>
<li><code>options</code> (optional) - List of name-value dictionaries
with transport options.</li>
<li><code>links</code> (optional) - List of lists of name-value
dictionaries. Each list of name-value dictionaries holds options for one
Corosync link. It is recommended to set <code>linknumber</code> value
for each link. Otherwise, the first list of dictionaries is assigned to
the first link, the second one to the second link and so on. Only one
link is supported with <code>udp</code> and <code>udpu</code>
transports.</li>
<li><code>compression</code> (optional) - List of name-value
dictionaries configuring transport compression. Only available for
<code>knet</code> transport.</li>
<li><code>crypto</code> (optional) - List of name-value dictionaries
configuring transport encryption. Only available for <code>knet</code>
transport, where encryption is enabled by default. Encryption is always
disabled with <code>udp</code> and <code>udpu</code> transports.</li>
</ul>
<p>For a list of allowed options, see <code>pcs -h cluster setup</code>
or <code>pcs(8)</code> man page, section 'cluster', command 'setup'. For
a detailed description, see <code>corosync.conf(5)</code> man page.</p>
<p>You may take a look at <a href="#advanced-corosync-configuration">an
example</a>.</p>
<h3 id="ha_cluster_totem"><code>ha_cluster_totem</code></h3>
<p>structure, default: no totem settings</p>
<div class="sourceCode" id="cb4"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_totem</span><span class="kw">:</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">options</span><span class="kw">:</span></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span></code></pre></div>
<p>Corosync totem configuration. For a list of allowed options, see
<code>pcs -h cluster setup</code> or <code>pcs(8)</code> man page,
section 'cluster', command 'setup'. For a detailed description, see
<code>corosync.conf(5)</code> man page.</p>
<p>You may take a look at <a href="#advanced-corosync-configuration">an
example</a>.</p>
<h3 id="ha_cluster_quorum"><code>ha_cluster_quorum</code></h3>
<p>structure, default: no quorum settings</p>
<div class="sourceCode" id="cb5"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_quorum</span><span class="kw">:</span></span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">options</span><span class="kw">:</span></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">device</span><span class="kw">:</span></span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">model</span><span class="kw">:</span><span class="at"> string</span></span>
<span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">model_options</span><span class="kw">:</span></span>
<span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">generic_options</span><span class="kw">:</span></span>
<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">heuristics_options</span><span class="kw">:</span></span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option1_name</span></span>
<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option1_value</span></span>
<span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> option2_name</span></span>
<span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> option2_value</span></span></code></pre></div>
<p>Cluster quorum configuration. The items are as follows:</p>
<ul>
<li><code>options</code> (optional) - List of name-value dictionaries
configuring quorum. Allowed options are: <code>auto_tie_breaker</code>,
<code>last_man_standing</code>, <code>last_man_standing_window</code>,
<code>wait_for_all</code>. They are documented in
<code>votequorum(5)</code> man page.</li>
<li><code>device</code> (optional) - Configures the cluster to use a
quorum device. By default, no quorum device is used.
<ul>
<li><code>model</code> (mandatory) - Specifies a type of the quorum
device. Currently, only <code>net</code> is supported.</li>
<li><code>model_options</code> (optional) - List of name-value
dictionaries configuring the specified quorum device model. For model
<code>net</code>, options <code>host</code> and <code>algorithm</code>
must be specified.
<ul>
<li>You may use the <code>pcs-address</code> option to set a custom pcsd
address and port to connect to the qnetd host. Otherwise, the role
connects to default pcsd port on the value of <code>host</code>.</li>
</ul></li>
<li><code>generic_options</code> (optional) - List of name-value
dictionaries setting quorum device options which are not model
specific.</li>
<li><code>heuristics_options</code> (optional) - List of name-value
dictionaries configuring quorum device heuristics.</li>
</ul></li>
</ul>
<p>Quorum device options are documented in
<code>corosync-qdevice(8)</code> man page; generic options are
<code>sync_timeout</code> and <code>timeout</code>, for model net
options check the <code>quorum.device.net</code> section, for heuristics
options see the <code>quorum.device.heuristics</code> section.</p>
<p>To regenerate quorum device TLS certificate, set the <a
href="#ha_cluster_regenerate_keys"><code>ha_cluster_regenerate_keys</code></a>
variable to <code>true</code>.</p>
<p>You may take a look at <a href="#advanced-corosync-configuration">a
quorum example</a> and <a
href="#configuring-a-cluster-using-a-quorum-device">a quorum device
example</a>.</p>
<h3 id="ha_cluster_sbd_enabled"><code>ha_cluster_sbd_enabled</code></h3>
<p>boolean, default: <code>false</code></p>
<p>Defines whether to use SBD.</p>
<p>You may take a look at <a href="#configuring-cluster-to-use-sbd">an
example</a>.</p>
<h3 id="ha_cluster_sbd_options"><code>ha_cluster_sbd_options</code></h3>
<p>list, default: <code>[]</code></p>
<p>List of name-value dictionaries specifying SBD options. See
<code>sbd(8)</code> man page, section 'Configuration via environment'
for their description. Supported options are:</p>
<ul>
<li><code>delay-start</code>
<ul>
<li><code>false</code> or <code>integer</code>, defaults to
<code>false</code></li>
<li>documented as SBD_DELAY_START</li>
</ul></li>
<li><code>startmode</code>
<ul>
<li><code>string</code>, defaults to <code>always</code></li>
<li>documented as SBD_STARTMODE</li>
</ul></li>
<li><code>timeout-action</code>
<ul>
<li><code>string</code>, defaults to <code>flush,reboot</code></li>
<li>documented as SBD_TIMEOUT_ACTION</li>
</ul></li>
<li><code>watchdog-timeout</code>
<ul>
<li><code>integer</code>, defaults to <code>5</code></li>
<li>documented as SBD_WATCHDOG_TIMEOUT</li>
</ul></li>
</ul>
<p>You may take a look at <a href="#configuring-cluster-to-use-sbd">an
example</a>.</p>
<p>Watchdog and SBD devices can be configured on a node to node basis in
two variables:</p>
<ul>
<li><a
href="#ha_cluster_node_options"><code>ha_cluster_node_options</code></a>
is a single variable expected to have the same value for all cluster
nodes. It is a list of dictionaries, each dictionary defines options for
one node.</li>
<li><a href="#sbd-watchdog-and-devices"><code>ha_cluster</code></a>
dictionary defines options for one node only. To set different values
for each node, you define the variable separately for each node.</li>
</ul>
<h3
id="ha_cluster_node_options"><code>ha_cluster_node_options</code></h3>
<p>structure, default: no node options</p>
<div class="sourceCode" id="cb6"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_node_options</span><span class="kw">:</span></span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">node_name</span><span class="kw">:</span><span class="at"> node1</span></span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">pcs_address</span><span class="kw">:</span><span class="at"> node1-address</span></span>
<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">corosync_addresses</span><span class="kw">:</span></span>
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fl">192.168.1.11</span></span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fl">192.168.2.11</span></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog_modules</span><span class="kw">:</span></span>
<span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> module1</span></span>
<span id="cb6-9"><a href="#cb6-9" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> module2</span></span>
<span id="cb6-10"><a href="#cb6-10" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog_modules_blocklist</span><span class="kw">:</span></span>
<span id="cb6-11"><a href="#cb6-11" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> module3</span></span>
<span id="cb6-12"><a href="#cb6-12" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog</span><span class="kw">:</span><span class="at"> /dev/watchdog2</span></span>
<span id="cb6-13"><a href="#cb6-13" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_devices</span><span class="kw">:</span></span>
<span id="cb6-14"><a href="#cb6-14" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000001</span></span>
<span id="cb6-15"><a href="#cb6-15" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000002</span></span>
<span id="cb6-16"><a href="#cb6-16" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000003</span></span>
<span id="cb6-17"><a href="#cb6-17" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">attributes</span><span class="kw">:</span></span>
<span id="cb6-18"><a href="#cb6-18" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb6-19"><a href="#cb6-19" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute1</span></span>
<span id="cb6-20"><a href="#cb6-20" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value1_node1</span></span>
<span id="cb6-21"><a href="#cb6-21" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute2</span></span>
<span id="cb6-22"><a href="#cb6-22" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value2_node1</span></span>
<span id="cb6-23"><a href="#cb6-23" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">utilization</span><span class="kw">:</span></span>
<span id="cb6-24"><a href="#cb6-24" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb6-25"><a href="#cb6-25" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization1</span></span>
<span id="cb6-26"><a href="#cb6-26" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value1_node1</span></span>
<span id="cb6-27"><a href="#cb6-27" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization2</span></span>
<span id="cb6-28"><a href="#cb6-28" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value2_node1</span></span>
<span id="cb6-29"><a href="#cb6-29" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">node_name</span><span class="kw">:</span><span class="at"> node2</span></span>
<span id="cb6-30"><a href="#cb6-30" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">pcs_address</span><span class="kw">:</span><span class="at"> node2-address:2224</span></span>
<span id="cb6-31"><a href="#cb6-31" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">corosync_addresses</span><span class="kw">:</span></span>
<span id="cb6-32"><a href="#cb6-32" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fl">192.168.1.12</span></span>
<span id="cb6-33"><a href="#cb6-33" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fl">192.168.2.12</span></span>
<span id="cb6-34"><a href="#cb6-34" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog_modules</span><span class="kw">:</span></span>
<span id="cb6-35"><a href="#cb6-35" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> module1</span></span>
<span id="cb6-36"><a href="#cb6-36" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog_modules_blocklist</span><span class="kw">:</span></span>
<span id="cb6-37"><a href="#cb6-37" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> module3</span></span>
<span id="cb6-38"><a href="#cb6-38" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_watchdog</span><span class="kw">:</span><span class="at"> /dev/watchdog1</span></span>
<span id="cb6-39"><a href="#cb6-39" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">sbd_devices</span><span class="kw">:</span></span>
<span id="cb6-40"><a href="#cb6-40" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000001</span></span>
<span id="cb6-41"><a href="#cb6-41" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000002</span></span>
<span id="cb6-42"><a href="#cb6-42" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> /dev/disk/by-id/000003</span></span>
<span id="cb6-43"><a href="#cb6-43" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">attributes</span><span class="kw">:</span></span>
<span id="cb6-44"><a href="#cb6-44" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb6-45"><a href="#cb6-45" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute1</span></span>
<span id="cb6-46"><a href="#cb6-46" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value1_node2</span></span>
<span id="cb6-47"><a href="#cb6-47" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute2</span></span>
<span id="cb6-48"><a href="#cb6-48" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value2_node2</span></span>
<span id="cb6-49"><a href="#cb6-49" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">utilization</span><span class="kw">:</span></span>
<span id="cb6-50"><a href="#cb6-50" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb6-51"><a href="#cb6-51" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization1</span></span>
<span id="cb6-52"><a href="#cb6-52" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value1_node2</span></span>
<span id="cb6-53"><a href="#cb6-53" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization2</span></span>
<span id="cb6-54"><a href="#cb6-54" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> value2_node2</span></span></code></pre></div>
<p>This variable defines various settings which vary from cluster node
to cluster node.</p>
<p><strong>Note:</strong> Use an inventory or playbook hosts to specify
which nodes form the cluster. This variable merely sets options for the
specified nodes.</p>
<p>The items are as follows:</p>
<ul>
<li><code>node_name</code> (mandatory) - Node name. It must match a name
defined for a node. See also <a
href="#nodes-names-and-addresses"><code>ha_cluster.node_name</code></a>.</li>
<li><code>pcs_address</code> (optional) - Address used by pcs to
communicate with the node, it can be a name, a FQDN or an IP address.
Port can be specified as well.</li>
<li><code>corosync_addresses</code> (optional) - List of addresses used
by Corosync, all nodes must have the same number of addresses and the
order of the addresses matters.</li>
<li><code>sbd_watchdog_modules</code> (optional) - Watchdog kernel
modules to be loaded (creates <code>/dev/watchdog*</code> devices).
Defaults to empty list if not set.</li>
<li><code>sbd_watchdog_modules_blocklist</code> (optional) - Watchdog
kernel modules to be unloaded and blocked. Defaults to empty list if not
set.</li>
<li><code>sbd_watchdog</code> (optional) - Watchdog device to be used by
SBD. Defaults to <code>/dev/watchdog</code> if not set.</li>
<li><code>sbd_devices</code> (optional) - Devices to use for exchanging
SBD messages and for monitoring. Defaults to empty list if not set.
Always refer to the devices using the long, stable device name
(<code>/dev/disk/by-id/</code>).</li>
<li><code>attributes</code> (optional) - List of sets of Pacemaker node
attributes for the node. Currently, only one set is supported, so the
first set is used and the rest are ignored.</li>
<li><code>utilization</code> (optional) - List of sets of the node's
utilization. The field <code>value</code> must be an integer. Currently,
only one set is supported, so the first set is used and the rest are
ignored.</li>
</ul>
<p>You may take a look at examples:</p>
<ul>
<li><a href="#configuring-cluster-to-use-sbd">configuring cluster to use
SBD</a></li>
<li><a href="#configuring-node-attributes">configuring node
attributes</a></li>
<li><a href="#configuring-utilization">configuring utilization</a></li>
</ul>
<h3
id="ha_cluster_cluster_properties"><code>ha_cluster_cluster_properties</code></h3>
<p>structure, default: no properties</p>
<div class="sourceCode" id="cb7"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_cluster_properties</span><span class="kw">:</span></span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb7-3"><a href="#cb7-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> property1_name</span></span>
<span id="cb7-4"><a href="#cb7-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> property1_value</span></span>
<span id="cb7-5"><a href="#cb7-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> property2_name</span></span>
<span id="cb7-6"><a href="#cb7-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> property2_value</span></span></code></pre></div>
<p>List of sets of cluster properties - Pacemaker cluster-wide
configuration. Currently, only one set is supported, so the first set is
used and the rest are ignored.</p>
<p>You may take a look at <a href="#configuring-cluster-properties">an
example</a>.</p>
<h3
id="ha_cluster_resource_primitives"><code>ha_cluster_resource_primitives</code></h3>
<p>structure, default: no resources</p>
<div class="sourceCode" id="cb8"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="fu">ha_cluster_resource_primitives</span><span class="kw">:</span></span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">id</span><span class="kw">:</span><span class="at"> resource-id</span></span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">agent</span><span class="kw">:</span><span class="at"> resource-agent</span></span>
<span id="cb8-4"><a href="#cb8-4" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">instance_attrs</span><span class="kw">:</span></span>
<span id="cb8-5"><a href="#cb8-5" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb8-6"><a href="#cb8-6" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute1_name</span></span>
<span id="cb8-7"><a href="#cb8-7" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> attribute1_value</span></span>
<span id="cb8-8"><a href="#cb8-8" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> attribute2_name</span></span>
<span id="cb8-9"><a href="#cb8-9" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> attribute2_value</span></span>
<span id="cb8-10"><a href="#cb8-10" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">meta_attrs</span><span class="kw">:</span></span>
<span id="cb8-11"><a href="#cb8-11" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb8-12"><a href="#cb8-12" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> meta_attribute1_name</span></span>
<span id="cb8-13"><a href="#cb8-13" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> meta_attribute1_value</span></span>
<span id="cb8-14"><a href="#cb8-14" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> meta_attribute2_name</span></span>
<span id="cb8-15"><a href="#cb8-15" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> meta_attribute2_value</span></span>
<span id="cb8-16"><a href="#cb8-16" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">copy_operations_from_agent</span><span class="kw">:</span><span class="at"> bool</span></span>
<span id="cb8-17"><a href="#cb8-17" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">operations</span><span class="kw">:</span></span>
<span id="cb8-18"><a href="#cb8-18" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">action</span><span class="kw">:</span><span class="at"> operation1-action</span></span>
<span id="cb8-19"><a href="#cb8-19" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb8-20"><a href="#cb8-20" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> operation1_attribute1_name</span></span>
<span id="cb8-21"><a href="#cb8-21" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> operation1_attribute1_value</span></span>
<span id="cb8-22"><a href="#cb8-22" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> operation1_attribute2_name</span></span>
<span id="cb8-23"><a href="#cb8-23" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> operation1_attribute2_value</span></span>
<span id="cb8-24"><a href="#cb8-24" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">action</span><span class="kw">:</span><span class="at"> operation2-action</span></span>
<span id="cb8-25"><a href="#cb8-25" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb8-26"><a href="#cb8-26" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> operation2_attribute1_name</span></span>
<span id="cb8-27"><a href="#cb8-27" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> operation2_attribute1_value</span></span>
<span id="cb8-28"><a href="#cb8-28" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> operation2_attribute2_name</span></span>
<span id="cb8-29"><a href="#cb8-29" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> operation2_attribute2_value</span></span>
<span id="cb8-30"><a href="#cb8-30" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">utilization</span><span class="kw">:</span></span>
<span id="cb8-31"><a href="#cb8-31" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">attrs</span><span class="kw">:</span></span>
<span id="cb8-32"><a href="#cb8-32" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization1_name</span></span>
<span id="cb8-33"><a href="#cb8-33" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> utilization1_value</span></span>
<span id="cb8-34"><a href="#cb8-34" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="kw">-</span><span class="at"> </span><span class="fu">name</span><span class="kw">:</span><span class="at"> utilization2_name</span></span>
<span id="cb8-35"><a href="#cb8-35" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">value</span><span class="kw">:</span><span class="at"> utilization2_value</span></span></code></pre></div>
<p>This variable defines Pacemaker resources (including stonith)
configured by the role. The items are as follows:</p>
<ul>
<li><code>id</code> (mandatory) - ID of a resource.</li>
<li><code>agent</code> (mandatory) - Name of a resource or stonith
agent, for example
<!--- wokeignore:rule=dummy -->
<code>ocf:pacemaker:Dummy</code> or <code>stonith:fence_xvm</code>. It
is mandatory to use <code>stonith:</code> for stonith agents. For
resource agents, it is possible to use a
<!--- wokeignore:rule=dummy -->
short name, such as <code>Dummy</code> instead of
<code>ocf:pacemaker:Dummy</code>. However, if several agents with the
same short name are installed, the role will fail as it will be unable
to decide which agent should be used. Therefore, it is recommended to