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:
Timo Aaltonen
2016-03-18 12:22:33 +02:00
committed by Martin Basti
parent d58cd04e8a
commit 2a2d63669d
11 changed files with 27 additions and 57 deletions

View File

@@ -231,8 +231,8 @@ def install_check(standalone, api, replica, options, hostname):
dnskeysyncd.stop()
try:
ipautil.run(cmd, env=environment,
runas=ods_enforcerd.get_user_name(),
suplementary_groups=[named.get_group_name()])
runas=constants.ODS_USER,
suplementary_groups=[constants.NAMED_GROUP])
except CalledProcessError as e:
root_logger.debug("%s", e)
raise RuntimeError("This IPA server cannot be promoted to "