Skip to content

Commit

Permalink
PSMDB fix percona release for AL2023
Browse files Browse the repository at this point in the history
  • Loading branch information
sandraromanchenko committed Jan 28, 2025
1 parent 7b6f7fa commit 5265d83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion roles/openldap/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@
- jq
when: ansible_distribution_major_version <= "7"

- name: Fetch CentOS gpg key
get_url:
url: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official
dest: /tmp/RPM-GPG-KEY-CentOS-Official
retries: 5
delay: 5
register: result
until: result.status_code == 200
when: ansible_distribution_major_version == "8"

- name: Import CentOS gpg key
rpm_key:
state: present
key: http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official
key: /tmp/RPM-GPG-KEY-CentOS-Official
when: ansible_distribution_major_version == "8"

- name: Install required packages
Expand Down
5 changes: 4 additions & 1 deletion tasks/install_percona_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
when: ansible_os_family == "Debian" and prel_version == "latest"

- name: Install latest percona release RHEL
command: yum -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
command: yum -y install https://repo.percona.com/prel/yum/testing/2023/RPMS/noarch/percona-release-1.0-30.noarch.rpm
when: ansible_os_family == "RedHat" and prel_version == "latest"

- name: Enable telemetry testing repo
command: percona-release enable telemetry testing

- name: clean and update yum cache
shell: |
yum clean all
Expand Down

0 comments on commit 5265d83

Please sign in to comment.