blob: e263b3961a13e3aca29bfbc4377453c21a95fd6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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'
__provides__ = {'Service':{'sshd':'GetService'}}
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')
|