mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +00:00
ipaclient: Add support for IPA 4.7 (4.6.90-pre2)
With IPA 4.7 bigger changes have been introduced Changes: - Use of timeconf and chrony instead of ntpconf and ntpd. - A new option ntp_pool has been introduced.
This commit is contained in:
@@ -160,9 +160,24 @@ if NUM_VERSION >= 40400:
|
||||
unicode = str
|
||||
|
||||
try:
|
||||
from ipaclient.install import ntpconf
|
||||
from ipaclient.install import timeconf
|
||||
time_service = "chronyd"
|
||||
except ImportError:
|
||||
from ipaclient import ntpconf
|
||||
try:
|
||||
from ipaclient.install import ntpconf as timeconf
|
||||
except ImportError:
|
||||
from ipaclient import ntpconf as timeconf
|
||||
time_service = "ntpd"
|
||||
|
||||
try:
|
||||
from ipaclient.install.client import sync_time
|
||||
except ImportError:
|
||||
sync_time = None
|
||||
|
||||
try:
|
||||
from ipaclient.install.client import check_ldap_conf
|
||||
except ImportError:
|
||||
check_ldap_conf = None
|
||||
|
||||
logger = logging.getLogger("ipa-client-install")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user