diff options
-rwxr-xr-x | cluster-cman.py | 11 | ||||
-rw-r--r-- | lib_cman.py | 24 |
2 files changed, 33 insertions, 2 deletions
diff --git a/cluster-cman.py b/cluster-cman.py index eee48ee..f289dd1 100755 --- a/cluster-cman.py +++ b/cluster-cman.py @@ -133,6 +133,8 @@ graph = lambda\ ) ,CmanRicci('node_b-ricci' ) + ,CmanRicciWorker('node_b-ricci-worker' + ) ,CmanCmanTool('node_b-cman_tool' ) ,CmanFenceTool('node_b-fence_tool' @@ -416,12 +418,17 @@ graph = lambda\ ('node_b-ricci' ,'node_b-saslauthd' ) - ,DelegateOddjobExec\ + ,Delegate\ ('node_b-ricci' + ,'node_b-ricci-worker' + ,constraint=False + ) + ,DelegateOddjobExec\ + ('node_b-ricci-worker' ,'node_b-modcluster' ) ,DelegateOddjobExec\ - ('node_b-ricci' + ('node_b-ricci-worker' ,'node_b-ricci-modules' ) ,Delegate\ diff --git a/lib_cman.py b/lib_cman.py index 4f2ff6d..c1245fc 100644 --- a/lib_cman.py +++ b/lib_cman.py @@ -195,6 +195,30 @@ class CmanRicci(Daemon): ) +class CmanRicciWorker(Program): + defaults = dict(( + LABEL('ricci-worker'), + )) + summary = \ + "ricci-worker is a ricci's slave to actually handle the task batches" + #web = 'https://sourceware.org/cluster/conga/' + location = '/usr/libexec/ricci/ricci-worker' + repo = dict( + git='git://git.fedorahosted.org/git/conga.git', + web='https://git.fedorahosted.org/cgit/conga.git', + ) + ids = dict( + srpm='ricci', + rpm='ricci', + rhbz='ricci', + ) + secprops = dict( + euser='ricci', + egroup='root', + #label='unconfined_u:system_r:ricci_t:s0', + ) + + class CmanCcs(Executable, CmanRicciRPCSrc): defaults = dict(( LABEL('ccs'), |