mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove the <Interval> from opendnssec conf
In opendnssec 2.1.6, the <Interval> element is not supported in the configuration file. Related: https://pagure.io/freeipa/issue/8214 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
@@ -179,6 +179,12 @@ class OpenDNSSECInstance(service.Service):
|
||||
# add pin to template
|
||||
sub_conf_dict = self.conf_file_dict
|
||||
sub_conf_dict['PIN'] = pin
|
||||
if paths.ODS_KSMUTIL is not None and os.path.exists(paths.ODS_KSMUTIL):
|
||||
# OpenDNSSEC 1.4
|
||||
sub_conf_dict['INTERVAL'] = '<Interval>PT3600S</Interval>'
|
||||
else:
|
||||
# OpenDNSSEC 2.x
|
||||
sub_conf_dict['INTERVAL'] = '<!-- Interval not used in 2x -->'
|
||||
|
||||
ods_conf_txt = ipautil.template_file(
|
||||
os.path.join(paths.USR_SHARE_IPA_DIR, "opendnssec_conf.template"),
|
||||
|
||||
Reference in New Issue
Block a user