|
|
fb9e9a |
From 8ce5fd147aafc34e43dbe4246565c48eace2e115 Mon Sep 17 00:00:00 2001
|
|
|
fb9e9a |
From: Thomas Woerner <twoerner@redhat.com>
|
|
|
fb9e9a |
Date: Thu, 2 Jul 2020 12:02:33 +0200
|
|
|
fb9e9a |
Subject: [PATCH] ipa[server,replica]: Fix pkcs12 info regressions introduced
|
|
|
fb9e9a |
with CA-less
|
|
|
fb9e9a |
|
|
|
fb9e9a |
With the CA-less patches the types for the pkcs12 infos have been changed
|
|
|
fb9e9a |
to lists in the modules. This is resulting in a bad conversion from None
|
|
|
fb9e9a |
to [''] for the parameters. Because of this a normal replica deployment is
|
|
|
fb9e9a |
failing as [''] is not a valid value.
|
|
|
fb9e9a |
|
|
|
fb9e9a |
The install.yml files for ipareplica and also ipaserver have been changed
|
|
|
fb9e9a |
in the way that the pkcs12 values are checked if they are None. The
|
|
|
fb9e9a |
parameter will simply be omitted in this case and the parameter in the
|
|
|
fb9e9a |
module will become None by default.
|
|
|
fb9e9a |
---
|
|
|
fb9e9a |
roles/ipareplica/tasks/install.yml | 18 +++++++++---------
|
|
|
fb9e9a |
roles/ipaserver/tasks/install.yml | 10 +++++-----
|
|
|
fb9e9a |
2 files changed, 14 insertions(+), 14 deletions(-)
|
|
|
fb9e9a |
|
|
|
fb9e9a |
diff --git a/roles/ipareplica/tasks/install.yml b/roles/ipareplica/tasks/install.yml
|
|
|
fb9e9a |
index fc7f83e..c2a6222 100644
|
|
|
fb9e9a |
--- a/roles/ipareplica/tasks/install.yml
|
|
|
fb9e9a |
+++ b/roles/ipareplica/tasks/install.yml
|
|
|
fb9e9a |
@@ -281,7 +281,7 @@
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
|
|
fb9e9a |
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
|
fb9e9a |
- _dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
|
fb9e9a |
+ _dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info if result_ipareplica_prepare._dirsrv_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
|
|
fb9e9a |
@@ -345,7 +345,7 @@
|
|
|
fb9e9a |
config_master_host_name:
|
|
|
fb9e9a |
"{{ result_ipareplica_install_ca_certs.config_master_host_name }}"
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
# We need to point to the master in ipa default conf when certmonger
|
|
|
fb9e9a |
@@ -407,8 +407,8 @@
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
|
fb9e9a |
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
|
|
fb9e9a |
- _dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info if result_ipareplica_prepare._dirsrv_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
ds_ca_subject: "{{ result_ipareplica_setup_ds.ds_ca_subject }}"
|
|
|
fb9e9a |
@@ -429,7 +429,7 @@
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
|
fb9e9a |
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
|
|
fb9e9a |
- _http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
|
fb9e9a |
+ _http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info if result_ipareplica_prepare._http_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
@@ -507,7 +507,7 @@
|
|
|
fb9e9a |
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
|
fb9e9a |
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
|
|
fb9e9a |
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
@@ -529,7 +529,7 @@
|
|
|
fb9e9a |
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
|
fb9e9a |
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
|
|
fb9e9a |
_subject_base: "{{ result_ipareplica_prepare._subject_base }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
config_setup_ca: "{{ result_ipareplica_prepare.config_setup_ca }}"
|
|
|
fb9e9a |
@@ -554,7 +554,7 @@
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
|
fb9e9a |
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
@@ -574,7 +574,7 @@
|
|
|
fb9e9a |
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
|
|
fb9e9a |
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
|
fb9e9a |
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info if result_ipareplica_prepare._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
|
|
fb9e9a |
dirman_password: "{{ ipareplica_dirman_password }}"
|
|
|
fb9e9a |
ds_ca_subject: "{{ result_ipareplica_setup_ds.ds_ca_subject }}"
|
|
|
fb9e9a |
diff --git a/roles/ipaserver/tasks/install.yml b/roles/ipaserver/tasks/install.yml
|
|
|
fb9e9a |
index 30f9da2..687f72d 100644
|
|
|
fb9e9a |
--- a/roles/ipaserver/tasks/install.yml
|
|
|
fb9e9a |
+++ b/roles/ipaserver/tasks/install.yml
|
|
|
fb9e9a |
@@ -203,7 +203,7 @@
|
|
|
fb9e9a |
# no_host_dns: "{{ result_ipaserver_test.no_host_dns }}"
|
|
|
fb9e9a |
dirsrv_config_file: "{{ ipaserver_dirsrv_config_file | default(omit) }}"
|
|
|
fb9e9a |
dirsrv_cert_files: "{{ ipaserver_dirsrv_cert_files | default(omit) }}"
|
|
|
fb9e9a |
- _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info }}"
|
|
|
fb9e9a |
+ _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info if result_ipaserver_test._dirsrv_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
external_cert_files:
|
|
|
fb9e9a |
"{{ ipaserver_external_cert_files | default(omit) }}"
|
|
|
fb9e9a |
subject_base: "{{ result_ipaserver_prepare.subject_base }}"
|
|
|
fb9e9a |
@@ -240,7 +240,7 @@
|
|
|
fb9e9a |
no_hbac_allow: "{{ ipaserver_no_hbac_allow }}"
|
|
|
fb9e9a |
idstart: "{{ result_ipaserver_test.idstart }}"
|
|
|
fb9e9a |
idmax: "{{ result_ipaserver_test.idmax }}"
|
|
|
fb9e9a |
- _pkinit_pkcs12_info: "{{ result_ipaserver_test._pkinit_pkcs12_info }}"
|
|
|
fb9e9a |
+ _pkinit_pkcs12_info: "{{ result_ipaserver_test._pkinit_pkcs12_info if result_ipaserver_test._pkinit_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
- name: Install - Setup custodia
|
|
|
fb9e9a |
ipaserver_setup_custodia:
|
|
|
fb9e9a |
@@ -270,7 +270,7 @@
|
|
|
fb9e9a |
no_pkinit: "{{ result_ipaserver_test.no_pkinit }}"
|
|
|
fb9e9a |
dirsrv_config_file: "{{ ipaserver_dirsrv_config_file | default(omit) }}"
|
|
|
fb9e9a |
dirsrv_cert_files: "{{ ipaserver_dirsrv_cert_files | default([]) }}"
|
|
|
fb9e9a |
- _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info }}"
|
|
|
fb9e9a |
+ _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info if result_ipaserver_test._dirsrv_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
external_ca: "{{ ipaserver_external_ca }}"
|
|
|
fb9e9a |
external_ca_type: "{{ ipaserver_external_ca_type | default(omit) }}"
|
|
|
fb9e9a |
external_ca_profile:
|
|
|
fb9e9a |
@@ -334,7 +334,7 @@
|
|
|
fb9e9a |
idmax: "{{ result_ipaserver_test.idmax }}"
|
|
|
fb9e9a |
http_cert_files: "{{ ipaserver_http_cert_files | default([]) }}"
|
|
|
fb9e9a |
no_ui_redirect: "{{ ipaserver_no_ui_redirect }}"
|
|
|
fb9e9a |
- _http_pkcs12_info: "{{ result_ipaserver_test._http_pkcs12_info }}"
|
|
|
fb9e9a |
+ _http_pkcs12_info: "{{ result_ipaserver_test._http_pkcs12_info if result_ipaserver_test._http_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
- name: Install - Setup KRA
|
|
|
fb9e9a |
ipaserver_setup_kra:
|
|
|
fb9e9a |
@@ -394,7 +394,7 @@
|
|
|
fb9e9a |
idstart: "{{ result_ipaserver_test.idstart }}"
|
|
|
fb9e9a |
idmax: "{{ result_ipaserver_test.idmax }}"
|
|
|
fb9e9a |
dirsrv_config_file: "{{ ipaserver_dirsrv_config_file | default(omit) }}"
|
|
|
fb9e9a |
- _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info }}"
|
|
|
fb9e9a |
+ _dirsrv_pkcs12_info: "{{ result_ipaserver_test._dirsrv_pkcs12_info if result_ipaserver_test._dirsrv_pkcs12_info != None else omit }}"
|
|
|
fb9e9a |
|
|
|
fb9e9a |
- name: Install - Setup client
|
|
|
fb9e9a |
include_role:
|
|
|
fb9e9a |
--
|
|
|
fb9e9a |
2.26.2
|
|
|
fb9e9a |
|