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/fedora16.py | |
parent | ca3f3041106dbaa8462aeb78c35b640b169d694a (diff) | |
download | freeipa.git-e5c07508060bdafb315c25cd712ceb23508ab20a.tar.gz freeipa.git-e5c07508060bdafb315c25cd712ceb23508ab20a.tar.xz freeipa.git-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/fedora16.py')
-rw-r--r-- | ipapython/platform/fedora16.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipapython/platform/fedora16.py b/ipapython/platform/fedora16.py index 369a1778..2d0ede99 100644 --- a/ipapython/platform/fedora16.py +++ b/ipapython/platform/fedora16.py @@ -100,12 +100,18 @@ class Fedora16IPAService(Fedora16Service): super(Fedora16IPAService, self).enable(instance_name) self.restart(instance_name) +class Fedora16SSHService(Fedora16Service): + def get_config_dir(self, instance_name=""): + return '/etc/ssh' + # Redirect directory server service through special sub-class due to its special handling of instances def f16_service(name): if name == 'dirsrv': return Fedora16DirectoryService(name) if name == 'ipa': return Fedora16IPAService(name) + if name == 'sshd': + return Fedora16SSHService(name) return Fedora16Service(name) class Fedora16Services(base.KnownServices): |