summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generators/servicemgr.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/generators/servicemgr.py b/generators/servicemgr.py
index e69de29bb..7ba276c35 100644
--- a/generators/servicemgr.py
+++ b/generators/servicemgr.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+
+from Generator import Generator
+from GeneratorUtils import DirectoryBacked
+from Types import Service
+
+class servicemgr(Generator):
+ '''This is a generator that handles service assignments'''
+ __name__ = 'servicemgr'
+ __version__ = '$Id$'
+ __author__ = 'bcfg-dev@mcs.anl.gov'
+
+ def GetService(self,name,client):
+ # for now sshd is on
+ if name == 'sshd':
+ return Service('sshd','chkconfig','on','global')
+ else:
+ return Service(name,'chkconfig','off','local')
+