Skip to content

Commit 69937a6

Browse files
authored
Deprecate rdbms.client and rdbms.server roles (#240)
Signed-off-by: Webster Mudge <[email protected]>
1 parent c7354ab commit 69937a6

File tree

6 files changed

+74
-5
lines changed

6 files changed

+74
-5
lines changed

.ansible-lint-ignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,34 @@ roles/platform/tasks/validate_aws_terraform.yml yaml[line-length] skip
133133
roles/platform/vars/main.yml var-naming[no-role-prefix] skip
134134
roles/provision/defaults/main.yml yaml[comments][/] skip
135135
roles/provision/tasks/present.yml risky-file-permissions skip
136+
roles/rdbms/client/mysql_connector/defaults/main.yml var-naming[no-role-prefix] skip
137+
roles/rdbms/client/mysql_connector/tasks/main.yml ignore-errors skip
138+
roles/rdbms/client/mysql_connector/tasks/main.yml no-changed-when skip
139+
roles/rdbms/client/oracle_connector/defaults/main.yml var-naming[no-role-prefix] skip
140+
roles/rdbms/client/postgresql_connector/defaults/main.yml var-naming[no-role-prefix] skip
141+
roles/rdbms/client/postgresql_connector/tasks/main.yml literal-compare skip
142+
roles/rdbms/client/postgresql_connector/tasks/main.yml no-changed-when skip
143+
roles/rdbms/server/defaults/main.yml var-naming[no-role-prefix] skip
144+
roles/rdbms/server/handlers/main.yml no-changed-when skip
145+
roles/rdbms/server/tasks/mariadb/RedHat.yml command-instead-of-module skip
146+
roles/rdbms/server/tasks/mariadb/RedHat.yml no-changed-when skip
147+
roles/rdbms/server/tasks/mysql/RedHat.yml command-instead-of-module skip
148+
roles/rdbms/server/tasks/mysql/RedHat.yml no-changed-when skip
149+
roles/rdbms/server/tasks/postgresql/Debian.yml risky-file-permissions skip
150+
roles/rdbms/server/tasks/postgresql/Debian.yml package-latest skip
151+
roles/rdbms/server/tasks/postgresql/template_fix.yml no-changed-when skip
152+
roles/rdbms/server/vars/mariadb/Debian.yml var-naming[no-role-prefix] skip
153+
roles/rdbms/server/vars/mariadb/RedHat-7.yml var-naming[no-role-prefix] skip
154+
roles/rdbms/server/vars/mariadb/RedHat-8.yml var-naming[no-role-prefix] skip
155+
roles/rdbms/server/vars/mariadb/RedHat-9.yml var-naming[no-role-prefix] skip
156+
roles/rdbms/server/vars/mariadb/common.yml var-naming[no-role-prefix] skip
157+
roles/rdbms/server/vars/mysql/Debian.yml var-naming[no-role-prefix] skip
158+
roles/rdbms/server/vars/mysql/RedHat-7.yml var-naming[no-role-prefix] skip
159+
roles/rdbms/server/vars/mysql/RedHat-8.yml var-naming[no-role-prefix] skip
160+
roles/rdbms/server/vars/mysql/RedHat-9.yml var-naming[no-role-prefix] skip
161+
roles/rdbms/server/vars/mysql/common.yml var-naming[no-role-prefix] skip
162+
roles/rdbms/server/vars/postgresql/Debian.yml var-naming[no-role-prefix] skip
163+
roles/rdbms/server/vars/postgresql/RedHat.yml var-naming[no-role-prefix] skip
164+
roles/rdbms/server/vars/postgresql/RedHat.yml jinja[spacing][/] skip
165+
roles/rdbms/server/vars/postgresql/RedHat.yml var-naming[no-role-prefix] skip
166+
roles/rdbms/server/vars/postgresql/common.yml var-naming[no-role-prefix] skip

meta/runtime.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,19 @@ plugin_routing:
7373
deprecation:
7474
removal_version: 4.0.0
7575
warning_text: Role, provision, is not longer supported.
76+
mysql_connector:
77+
deprecation:
78+
removal_version: 4.0.0
79+
warning_text: Role, rdbms.client.mysql_connector, is not longer supported.
80+
oracle_connector:
81+
deprecation:
82+
removal_version: 4.0.0
83+
warning_text: Role, rdbms.client.oracle_connector, is not longer supported.
84+
postgresql_connector:
85+
deprecation:
86+
removal_version: 4.0.0
87+
warning_text: Role, rdbms.client.postgresql_connector, is not longer supported.
88+
rdbms.server:
89+
deprecation:
90+
removal_version: 4.0.0
91+
warning_text: Role, rdbms.server, is not longer supported.

roles/rdbms/client/mysql_connector/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# limitations under the License.
1414

1515
---
16+
17+
- name: Deprecation warning
18+
run_once: true
19+
cloudera.exe.deprecation:
20+
msg: "Role, {{ ansible_role_name }}, is no longer supported."
21+
version: 4.0.0
22+
1623
- name: Download MySQL Connector/J
1724
ansible.builtin.get_url:
1825
url: "{{ mysql_connector_url }}"

roles/rdbms/client/oracle_connector/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# limitations under the License.
1414

1515
---
16+
17+
- name: Deprecation warning
18+
run_once: true
19+
cloudera.exe.deprecation:
20+
msg: "Role, {{ ansible_role_name }}, is no longer supported."
21+
version: 4.0.0
22+
1623
- name: Setup the Oracle JDBC Driver
1724
when:
1825
- not (skip_oracle_jdbc_driver_distribution | default(False))

roles/rdbms/client/postgresql_connector/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# limitations under the License.
1414

1515
---
16+
17+
- name: Deprecation warning
18+
run_once: true
19+
cloudera.exe.deprecation:
20+
msg: "Role, {{ ansible_role_name }}, is no longer supported."
21+
version: 4.0.0
22+
1623
- name: Download PostgreSQL Connector
1724
ansible.builtin.get_url:
1825
url: "{{ postgresql_connector_url }}"

roles/rdbms/server/tasks/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# limitations under the License.
1414

1515
---
16-
- name: DEPRECATION WARNING
17-
ansible.builtin.debug:
18-
msg:
19-
- This role has been moved to cloudera.exe.rdbms_server.
20-
- Please update your playbooks and roles accordingly.
16+
17+
- name: Deprecation warning
18+
run_once: true
19+
cloudera.exe.deprecation:
20+
msg: "Role, {{ ansible_role_name }}, is no longer supported."
21+
version: 4.0.0
2122

2223
- name: Include database type variables
2324
ansible.builtin.include_vars:

0 commit comments

Comments
 (0)