Add quorum option to augeas lense

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2732 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Angus Salkeld 2010-03-24 22:17:24 +00:00
parent 59826dd14e
commit f50ca25dce
2 changed files with 13 additions and 1 deletions

View File

@ -116,7 +116,12 @@ let amf =
kv "mode" /enabled|disabled/ in
section "amf" setting
(* The quorum section *)
let quorum =
let setting =
qstr /provider/ in
section "quorum" setting
let lns = (comment|empty|compatibility|totem|logging|amf)*
let lns = (comment|empty|compatibility|totem|quorum|logging|amf)*
let xfm = transform lns (incl "/etc/corosync/corosync.conf")

View File

@ -43,6 +43,10 @@ logging {
}
}
quorum {
provider: corosync_quorum_ykd
}
amf {
mode: disabled
}\n"
@ -87,5 +91,8 @@ test Corosync.lns get conf =
{ "subsys" = "MSG" }
{ "debug" = "on" } } }
{ }
{ "quorum"
{ "provider" = "corosync_quorum_ykd" } }
{ }
{ "amf"
{ "mode" = "disabled" } }