mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-03 04:40:31 -06:00
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:
1 parent
110e85cc74
commit
b035a2a114
4 files changed
+9
-9
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user