summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcluster-cman.py7
-rw-r--r--lib_rhel.py43
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'