summaryrefslogtreecommitdiffstats
path: root/ipapython/platform/base.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-01-23 10:01:41 -0500
committerRob Crittenden <rcritten@redhat.com>2012-02-13 22:21:54 -0500
commite5c07508060bdafb315c25cd712ceb23508ab20a (patch)
treeb903ee0cdfe171c7c578fae0ba80df3eed016ca6 /ipapython/platform/base.py
parentca3f3041106dbaa8462aeb78c35b640b169d694a (diff)
downloadfreeipa-e5c07508060bdafb315c25cd712ceb23508ab20a.tar.gz
freeipa-e5c07508060bdafb315c25cd712ceb23508ab20a.tar.xz
freeipa-e5c07508060bdafb315c25cd712ceb23508ab20a.zip
Add SSH service to platform-specific services.
Add method for getting configuration directory path of a service, so that a different SSH configuration directory can be specified on different platforms. https://fedorahosted.org/freeipa/ticket/754
Diffstat (limited to 'ipapython/platform/base.py')
-rw-r--r--ipapython/platform/base.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipapython/platform/base.py b/ipapython/platform/base.py
index 99189a101..d177cc82c 100644
--- a/ipapython/platform/base.py
+++ b/ipapython/platform/base.py
@@ -21,8 +21,9 @@ from ipalib.plugable import MagicDict
# Canonical names of services as IPA wants to see them. As we need to have *some* naming,
# set them as in Red Hat distributions. Actual implementation should make them available
# through knownservices.<name> and take care of remapping internally, if needed
-wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc', 'messagebus',
- 'nslcd', 'nscd', 'ntpd', 'portmap', 'rpcbind', 'kadmin']
+wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc',
+ 'messagebus', 'nslcd', 'nscd', 'ntpd', 'portmap',
+ 'rpcbind', 'kadmin', 'sshd']
class AuthConfig(object):
"""
@@ -141,6 +142,9 @@ class PlatformService(object):
def remove(self, instance_name=""):
return
+ def get_config_dir(self, instance_name=""):
+ return
+
class KnownServices(MagicDict):
"""
KnownServices is an abstract class factory that should give out instances of well-known