summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-09-27 15:05:46 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-09-27 15:05:46 +0200
commita3e9d53d41c933d92f9110663470ef553f0ed76f (patch)
tree8f085432ca4a06ee09756cf15f714b9b4b322252
parent9898bbbe921ebc0139a9042d0310c51dd6c494cd (diff)
downloadcluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.zip
cluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.tar.gz
cluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.tar.xz
cluster-cman: add documentation references
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--lib.py7
-rw-r--r--lib_cman.py20
2 files changed, 26 insertions, 1 deletions
diff --git a/lib.py b/lib.py
index 9fe0be6..26f0b9c 100644
--- a/lib.py
+++ b/lib.py
@@ -177,10 +177,15 @@ def xdot_graph(*args, **kwargs):
for item in cls.man:
markup += "* <i>" + item + "</i>\n"
markup += '\n'
+ if hasattr(cls, 'doc'):
+ markup += "documentation:\n"
+ for name, value in cls.doc.iteritems():
+ markup += "* " + name + ": <u>" + value + "</u>\n"
+ markup += '\n'
if hasattr(cls, 'ids'):
markup += "identifiers:\n"
for name, value in cls.ids.iteritems():
- markup += "* " + name + ": <i>" + str(value) + "</i>\n"
+ markup += "* " + name + ": <i>" + value + "</i>\n"
markup += '\n'
if hasattr(cls, 'secprops'):
markup += "security properties:\n"
diff --git a/lib_cman.py b/lib_cman.py
index d0f24cc..78bdb1a 100644
--- a/lib_cman.py
+++ b/lib_cman.py
@@ -45,6 +45,10 @@ class CmanClustat(Executable):
man = [
'clustat(8)'
]
+ doc = {
+ 'Displaying HA Service Status with clustat'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/s1-admin-manage-ha-services-cli-CA.html#s2-admin-manage-ha-services-clustat-cli-CA',
+ }
ids = dict(
srpm='rgmanager',
rpm='rgmanager',
@@ -66,6 +70,10 @@ class CmanCmanTool(Executable):
man = [
'cman_tool(8)',
]
+ doc = {
+ 'Updating a Configuration Using cman_tool version -r'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/s1-admin-updating-config-CA.html#s2-admin-prop-config-ccstoolr-cli-CA',
+ }
ids = dict(
srpm='cluster',
rpm='cman',
@@ -119,6 +127,12 @@ class CmanCcs(Executable):
man = [
'ccs(8)',
]
+ doc = {
+ 'Configuring Red Hat High Availability Add-On With the ccs Command'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ch-config-ccs-CA.html',
+ 'Managing Red Hat High Availability Add-On With ccs'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ch-mgmt-ccs-CA.html',
+ }
ids = dict(
srpm='ricci',
rpm='ccs',
@@ -164,6 +178,12 @@ class CmanLuci(Daemon):
rpm='luci',
rhbz='luci',
)
+ doc = {
+ 'Configuring Red Hat High Availability Add-On With Conga'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ch-config-conga-CA.html',
+ 'Managing Red Hat High Availability Add-On With Conga'
+ :'https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/ch-mgmt-conga-CA.html',
+ }
secprops = dict(
euser='luci',
egroup='luci',