Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,14 @@ Default: false

***

### skip_control_center_next_gen_host_count_validation

Boolean to skip Control Center Next Gen host count validation. Set to true to skip validation that requires exactly one Control Center Next Gen host.

Default: false

***

### user_login_shell

Variable to set the user login shell for all custom user created per component by cp-ansible.
Expand Down
3 changes: 2 additions & 1 deletion roles/common/tasks/config_validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,11 @@
- c3_host_count | int == 1
fail_msg: >-
Please ensure your 'control_center_next_gen' group or default resolves to a single host.
success_msg: "The list of resolved Control Center Next Gen hosts correctly contains a single entry."
success_msg: "The list of resolved Control Center Next Gen hosts correctly contains a single entry. To skip this validation, set skip_control_center_next_gen_host_count_validation: true."
when:
- "'control_center_next_gen' in groups"
- "groups['control_center_next_gen'] | length > 0"
- not skip_control_center_next_gen_host_count_validation|bool
tags:
- validate

Expand Down
3 changes: 3 additions & 0 deletions roles/variables/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ validate_hosts: true
### Boolean used for disabling of systemd service restarts when rootless install is executed
skip_restarts: false

### Boolean to skip Control Center Next Gen host count validation. Set to true to skip validation that requires exactly one Control Center Next Gen host.
skip_control_center_next_gen_host_count_validation: false

### Variable to set the user login shell for all custom user created per component by cp-ansible.
user_login_shell: /sbin/nologin

Expand Down