Sfoglia il codice sorgente

Add quorum option to augeas lense

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2732 fd59a12c-fef9-0310-b244-a6a79926bd2f
Angus Salkeld 16 anni fa
parent
commit
f50ca25dce
2 ha cambiato i file con 13 aggiunte e 1 eliminazioni
  1. 6 1
      conf/lenses/corosync.aug
  2. 7 0
      conf/lenses/tests/test_corosync.aug

+ 6 - 1
conf/lenses/corosync.aug

@@ -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")

+ 7 - 0
conf/lenses/tests/test_corosync.aug

@@ -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" } }