diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-01-23 10:01:41 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-02-13 22:21:54 -0500 |
commit | e5c07508060bdafb315c25cd712ceb23508ab20a (patch) | |
tree | b903ee0cdfe171c7c578fae0ba80df3eed016ca6 /ipapython/platform/base.py | |
parent | ca3f3041106dbaa8462aeb78c35b640b169d694a (diff) | |
download | freeipa-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.py | 8 |
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 |