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:
Thomas Woerner
2018-06-21 13:04:32 +02:00
parent 2d6c9bb381
commit 4063b6caa3
3 changed files with 119 additions and 39 deletions

View File

@@ -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")