CentOS 7 compatibility.

Lowered version check to be compatible with CentOS 7.5
Added missing attributes to setup_kra to be compatible with latest python2-ipaserver librarty on CentOS 7.5 (python2-ipaserver-4.5.4-10.el7.centos.3.noarch)
This commit is contained in:
Siva Paramasivam
2018-07-06 22:13:27 -07:00
parent fb281859b6
commit 22d188fcb0
2 changed files with 7 additions and 4 deletions

View File

@@ -57,6 +57,7 @@ def main():
hostname=dict(required=True),
setup_ca=dict(required=True, type='bool'),
setup_kra=dict(required=True, type='bool'),
realm=dict(required=True),
),
)
@@ -69,6 +70,8 @@ def main():
options.host_name = ansible_module.params.get('hostname')
options.setup_ca = ansible_module.params.get('setup_ca')
options.setup_kra = ansible_module.params.get('setup_kra')
options.realm_name = ansible_module.params.get('realm')
options.promote = False # first master, no promotion
# init ##########################################################
@@ -80,7 +83,7 @@ def main():
# setup kra #####################################################
with redirect_stdout(ansible_log):
if NUM_VERSION >= 40604:
if NUM_VERSION >= 40504:
custodia = custodiainstance.get_custodia_instance(
options, custodiainstance.CustodiaModes.MASTER_PEER)
custodia.create_instance()