summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generators/servicemgr.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/generators/servicemgr.py b/generators/servicemgr.py
deleted file mode 100644
index 98d3aa274..000000000
--- a/generators/servicemgr.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-from Generator import Generator
-from GeneratorUtils import XMLFileBacked
-
-
-class ServiceList(XMLFileBacked):
- def __init__(self, filename, fam):
- XMLFileBacked.__init__(self, filename)
- fam.AddMonitor(filename)
-
- def Index(self):
- a = XML(self.data)
- self.name = a.attrib['name']
- self.entries = a.getchildren()
-
-class servicemgr(Generator):
- '''This is a generator that handles service assignments'''
- __name__ = 'servicemgr'
- __version__ = '$Id$'
- __author__ = 'bcfg-dev@mcs.anl.gov'
-
- def __setup__(self):
- self.__provides__ = {'Service':{'sshd':self.GetService}}
- #self.datafile = ServiceList("%s/packages.xml"%(self.data))
- pass
-
- def GetService(self,entry,metadata):
- # for now sshd is on
- if entry.attrib['name'] == 'sshd':
- entry.attrib['status'] = 'on'
-
-