mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipaplatform: Move remaining user/group constants to ipaplatform.constants.
Use ipaplatform.constants in every corner instead of importing other bits or calling some platform specific things, and remove most of the remaining hardcoded uid's. https://fedorahosted.org/freeipa/ticket/5343 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
d58cd04e8a
commit
2a2d63669d
@@ -223,28 +223,6 @@ class RedHatCAService(RedHatService):
|
||||
self.wait_until_running()
|
||||
|
||||
|
||||
class RedHatNamedService(RedHatService):
|
||||
def get_user_name(self):
|
||||
return u'named'
|
||||
|
||||
def get_group_name(self):
|
||||
return u'named'
|
||||
|
||||
def get_binary_path(self):
|
||||
return paths.NAMED_PKCS11
|
||||
|
||||
def get_package_name(self):
|
||||
return u"bind-pkcs11"
|
||||
|
||||
|
||||
class RedHatODSEnforcerdService(RedHatService):
|
||||
def get_user_name(self):
|
||||
return u'ods'
|
||||
|
||||
def get_group_name(self):
|
||||
return u'ods'
|
||||
|
||||
|
||||
# Function that constructs proper Red Hat OS family-specific server classes for
|
||||
# services of specified name
|
||||
|
||||
@@ -257,10 +235,6 @@ def redhat_service_class_factory(name):
|
||||
return RedHatSSHService(name)
|
||||
if name in ('pki-tomcatd', 'pki_tomcatd'):
|
||||
return RedHatCAService(name)
|
||||
if name == 'named':
|
||||
return RedHatNamedService(name)
|
||||
if name in ('ods-enforcerd', 'ods_enforcerd'):
|
||||
return RedHatODSEnforcerdService(name)
|
||||
return RedHatService(name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user