|
@@ -1,4 +1,4 @@
|
|
-# Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
|
|
|
|
|
|
+# Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
|
|
#
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,6 +13,9 @@
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
---
|
|
---
|
|
|
|
|
|
|
|
+- name: Include base_vars of control plane
|
|
|
|
+ include_vars: "{{ role_path }}/../../control_plane/input_params/base_vars.yml"
|
|
|
|
+
|
|
- name: Check if omnia_vault_key exists
|
|
- name: Check if omnia_vault_key exists
|
|
stat:
|
|
stat:
|
|
path: "{{ role_path }}/../../{{ config_vaultname }}"
|
|
path: "{{ role_path }}/../../{{ config_vaultname }}"
|
|
@@ -68,7 +71,8 @@
|
|
realm_name | length < 1 or
|
|
realm_name | length < 1 or
|
|
directory_manager_password | length < 1 or
|
|
directory_manager_password | length < 1 or
|
|
ipa_admin_password | length < 1 ) and
|
|
ipa_admin_password | length < 1 ) and
|
|
- login_node_required
|
|
|
|
|
|
+ login_node_required and
|
|
|
|
+ not enable_security_support
|
|
|
|
|
|
- name: Assert mariadb_password
|
|
- name: Assert mariadb_password
|
|
assert:
|
|
assert:
|
|
@@ -135,7 +139,9 @@
|
|
- domain_name is regex("^(?!-)[A-Za-z0-9-]+([\\-\\.]{1}[a-z0-9]+)*\\.[A-Za-z]{2,}$")
|
|
- domain_name is regex("^(?!-)[A-Za-z0-9-]+([\\-\\.]{1}[a-z0-9]+)*\\.[A-Za-z]{2,}$")
|
|
success_msg: "{{ domain_name_success_msg }}"
|
|
success_msg: "{{ domain_name_success_msg }}"
|
|
fail_msg: "{{ domain_name_fail_msg }}"
|
|
fail_msg: "{{ domain_name_fail_msg }}"
|
|
- when: login_node_required
|
|
|
|
|
|
+ when:
|
|
|
|
+ - login_node_required
|
|
|
|
+ - not enable_security_support
|
|
|
|
|
|
- name: Validate the realm name
|
|
- name: Validate the realm name
|
|
assert:
|
|
assert:
|
|
@@ -144,7 +150,9 @@
|
|
- '"." in realm_name'
|
|
- '"." in realm_name'
|
|
success_msg: "{{ realm_name_success_msg }}"
|
|
success_msg: "{{ realm_name_success_msg }}"
|
|
fail_msg: "{{ realm_name_fail_msg }}"
|
|
fail_msg: "{{ realm_name_fail_msg }}"
|
|
- when: login_node_required
|
|
|
|
|
|
+ when:
|
|
|
|
+ - login_node_required
|
|
|
|
+ - not enable_security_support
|
|
|
|
|
|
- name: Assert directory_manager_password
|
|
- name: Assert directory_manager_password
|
|
assert:
|
|
assert:
|
|
@@ -157,7 +165,9 @@
|
|
- " \"'\" not in directory_manager_password "
|
|
- " \"'\" not in directory_manager_password "
|
|
success_msg: "{{ success_msg_directory_manager_password }}"
|
|
success_msg: "{{ success_msg_directory_manager_password }}"
|
|
fail_msg: "{{ fail_msg_directory_manager_password }}"
|
|
fail_msg: "{{ fail_msg_directory_manager_password }}"
|
|
- when: login_node_required
|
|
|
|
|
|
+ when:
|
|
|
|
+ - login_node_required
|
|
|
|
+ - not enable_security_support
|
|
|
|
|
|
- name: Assert ipa_admin_password
|
|
- name: Assert ipa_admin_password
|
|
assert:
|
|
assert:
|
|
@@ -170,7 +180,9 @@
|
|
- " \"'\" not in ipa_admin_password "
|
|
- " \"'\" not in ipa_admin_password "
|
|
success_msg: "{{ success_msg_ipa_admin_password }}"
|
|
success_msg: "{{ success_msg_ipa_admin_password }}"
|
|
fail_msg: "{{ fail_msg_ipa_admin_password }}"
|
|
fail_msg: "{{ fail_msg_ipa_admin_password }}"
|
|
- when: login_node_required
|
|
|
|
|
|
+ when:
|
|
|
|
+ - login_node_required
|
|
|
|
+ - not enable_security_support
|
|
|
|
|
|
- name: Encrypt input config file
|
|
- name: Encrypt input config file
|
|
command: >-
|
|
command: >-
|