diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-10-24 18:39:45 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-10-24 18:40:44 +0200 |
commit | ce73b6de1e2eec264d82b356c16dd41a70c85539 (patch) | |
tree | ff0fd1988ef964905cb802a880a76966ef2c5f08 | |
parent | 835c392de85b646a735c2475c098b521c2716cc9 (diff) | |
download | cluster-overview-ce73b6de1e2eec264d82b356c16dd41a70c85539.tar.gz cluster-overview-ce73b6de1e2eec264d82b356c16dd41a70c85539.tar.xz cluster-overview-ce73b6de1e2eec264d82b356c16dd41a70c85539.zip |
Move snmpd and cimserver to new lib_rhel module
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x | cluster-cman.py | 7 | ||||
-rw-r--r-- | lib_rhel.py | 43 |
2 files changed, 46 insertions, 4 deletions
diff --git a/cluster-cman.py b/cluster-cman.py index 4f7e27d..362db1a 100755 --- a/cluster-cman.py +++ b/cluster-cman.py @@ -22,6 +22,7 @@ from lib_subgraphs import * from lib_nodes import * # remove when possible from lib_edges import * # ditto from lib_cman import * +from lib_rhel import * FONT = 'Inconsolata' @@ -285,11 +286,9 @@ graph = lambda\ [Artefact('node_b-cluster.conf' ,label='/etc/cluster/\ncluster.conf' ) - ,Daemon('node_b-snmpd' - ,label='snmpd' + ,RhelSnmpd('node_b-snmpd' ) - ,Daemon('node_b-cimserver' - ,label='cimserver' + ,RhelCimserver('node_b-cimserver' )] ,_edges=\ [Consume\ diff --git a/lib_rhel.py b/lib_rhel.py new file mode 100644 index 0000000..f56f1d8 --- /dev/null +++ b/lib_rhel.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# vim: set fileencoding=UTF-8: +# Copyright 2013 Red Hat, Inc. +# Author: Jan Pokorný <jpokorny at redhat dot com> +# Distributed under GPLv2+; generated content under CC-BY-SA 3.0 +# (to view a copy, visit http://creativecommons.org/licenses/by-sa/3.0/) +"""Library comprising general (non-cluster) RHEL entities""" + +from lib_nodes import * + + +# +# nodes +# + +class RhelSnmpd(Daemon): + defaults = dict(( + LABEL('snmpd'), + )) + summary = \ + "Snmpd is daemon to respond to SNMP request packets" + web = 'http://net-snmp.sourceforge.net/' + man = [ + 'snmpd(8)', + ] + #srpm = 'net-snmp' + rpm = 'net-snmp' + #rhbz = 'net-snmp' + + +class RhelCimserver(Daemon): + defaults = dict(( + LABEL('cimserver'), + )) + summary = \ + "CIM Server" + web = 'http://www.openpegasus.org/' + man = [ + 'cimserver(8)', + ] + #srpm = 'tog-pegasus' + rpm = 'tog-pegasus' + #rhbz = 'tog-pegasus' |