diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-03-01 22:19:11 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-03-01 22:19:11 +0000 |
commit | 59a5ac07bc2bc8972f727184523be67d0fc3a11f (patch) | |
tree | edcf06bcb395b48529cb8f91815fb78bb2677cb2 | |
parent | 7294aed77c25b8b635c5a1271833493412559726 (diff) | |
download | bcfg2-59a5ac07bc2bc8972f727184523be67d0fc3a11f.tar.gz bcfg2-59a5ac07bc2bc8972f727184523be67d0fc3a11f.tar.bz2 bcfg2-59a5ac07bc2bc8972f727184523be67d0fc3a11f.zip |
add dummy GetService method
2004/01/20 14:58:58-06:00 anl.gov!desai
(Logical change 1.18)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@68 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | generators/servicemgr.py | 19 |
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') + |