From f50ca25dced6356ced3003d139d271e15ff4800c Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 24 Mar 2010 22:17:24 +0000 Subject: [PATCH] Add quorum option to augeas lense git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2732 fd59a12c-fef9-0310-b244-a6a79926bd2f --- conf/lenses/corosync.aug | 7 ++++++- conf/lenses/tests/test_corosync.aug | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/conf/lenses/corosync.aug b/conf/lenses/corosync.aug index aef16ed0..52c613bd 100644 --- a/conf/lenses/corosync.aug +++ b/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") diff --git a/conf/lenses/tests/test_corosync.aug b/conf/lenses/tests/test_corosync.aug index ecaac4ca..20ad6f0d 100644 --- a/conf/lenses/tests/test_corosync.aug +++ b/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" } }