(* The quorum section *)
let quorum =
let setting =
- qstr /provider/ in
+ qstr /provider/
+ |kv "expected_votes" Rx.integer
+ |kv "votes" Rx.integer
+ |kv "quorumdev_poll" Rx.integer
+ |kv "leaving_timeout" Rx.integer
+ |kv "disallowed" Rx.integer
+ |kv "two_node" Rx.integer in
section "quorum" setting
(* The service section *)
qstr /name|ver/ in
section "service" setting
-let lns = (comment|empty|compatibility|totem|quorum|logging|amf|service)*
+(* The uidgid section *)
+let uidgid =
+ let setting =
+ qstr /uid|gid/ in
+ section "uidgid" setting
+
+let lns = (comment|empty|compatibility|totem|quorum|logging|amf|service|uidgid)*
let xfm = transform lns (incl "/etc/corosync/corosync.conf")
quorum {
provider: corosync_quorum_ykd
+ expected_votes: 5
+ votes: 1
+ quorumdev_poll: 2
+ leaving_timeout: 2
+ disallowed: 0
+ two_node: 0
+}
+
+uidgid {
+ uid: 0
+ gid: 0
}
amf {
{ "debug" = "on" } } }
{ }
{ "quorum"
- { "provider" = "corosync_quorum_ykd" } }
+ { "provider" = "corosync_quorum_ykd" }
+ { "expected_votes" = "5" }
+ { "votes" = "1" }
+ { "quorumdev_poll" = "2" }
+ { "leaving_timeout" = "2" }
+ { "disallowed" = "0" }
+ { "two_node" = "0" } }
+ { }
+ { "uidgid"
+ { "uid" = "0" }
+ { "gid" = "0" } }
{ }
{ "amf"
{ "mode" = "disabled" } }