install: always export KRA agent PEM file

Export the file even when KRA is not installed locally so that vault commands
work on all IPA replicas.

https://fedorahosted.org/freeipa/ticket/5302

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Jan Cholasta committed 2015-10-08 13:42:58 +02:00
1 parent 110e85cc74
commit b035a2a114
4 files changed
+9 -9

No files matched your search

+2 -3
View File
@@ -1258,9 +1258,8 @@ def export_kra_agent_pem():
root_logger.info("KRA agent PEM file already exported")
return
kra = krainstance.KRAInstance(api.env.realm)
if not kra.is_installed():
root_logger.info("KRA is not installed")
if not api.Command.kra_is_enabled()['result']:
root_logger.info("KRA is not enabled")
return
krainstance.export_kra_agent_pem()