Skip to content

Commit f0e90de

Browse files
authored
Add flag to skip os support check to cm_repo role (#299)
Signed-off-by: Jim Enright <[email protected]>
1 parent cc4ac07 commit f0e90de

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

roles/cm_repo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ None.
3030
| `cloudera_manager_repo_password` | `str` | `False` | | Password for authenticating to the package repository. For Cloudera enterprise licenses, this corresponds to the derived `password` value associated with your `uuid`. |
3131
| `cloudera_manager_repo_key` | `str` | `False` | | URL to the package repository's GPG public key for content validation. |
3232
| `cloudera_manager_repo_gpgcheck` | `bool` | `False` | - | Flag to manage validation checks (GPG checks) of the repository contents. Set to `true` to enable GPG signature verification during package installation. |
33+
| `cloudera_manager_skip_os_support_check` | `bool` | `False` | - | Flag to skip OS support checks for Cloudera Manager. |
3334

3435
# Example Playbook
3536

roles/cm_repo/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ cloudera_manager_version: 7.11.3
2121
# cloudera_manager_repo_password:
2222
# cloudera_manager_repo_key:
2323
# cloudera_manager_repo_gpgcheck: true
24+
25+
cloudera_manager_skip_os_support_check: false

roles/cm_repo/meta/argument_specs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ argument_specs:
5353
cloudera_manager_repo_gpgcheck:
5454
description: Flag to manage validation checks of the repository contents.
5555
type: bool
56+
cloudera_manager_skip_os_support_check:
57+
description: Flag to skip OS support checks for Cloudera Manager.
58+
type: bool
59+
default: false

roles/cm_repo/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
gather_subset: distribution
1919

2020
- name: Assert OS support for Cloudera Manager versions
21+
when: not cloudera_manager_skip_os_support_check
2122
ansible.builtin.assert:
2223
that:
2324
- supported_cms | selectattr('family', 'eq', cm_repo_supported_distribution_map[ansible_facts['distribution']] | default(ansible_facts['distribution'])) |

0 commit comments

Comments
 (0)