Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-7 Update ClickHouse repository key. #2513

Merged
merged 2 commits into from
Sep 29, 2023
Merged
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
36 changes: 6 additions & 30 deletions update/ansible/playbook/tasks/roles/clickhouse/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,39 +49,15 @@
owner: root
group: pmm

# RHEL9 dropped support for SHA1 gpg keys
- name: Import clickhouse repo GPG key
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "7"
rpm_key:
state: present
key: "https://repo.clickhouse.com/CLICKHOUSE-KEY.GPG"

- name: Install clickhouse repo | EL7
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "7"
yum_repository:
name: clickhouse
file: clickhouse
description: "Clickhouse repo"
baseurl: "https://packages.clickhouse.com/rpm/stable/"
enabled: no
gpgcheck: 1
gpgkey: "https://repo.clickhouse.com/CLICKHOUSE-KEY.GPG"

# RHEL9 dropped support for SHA1 gpg keys, so we disable gpgcheck :(
- name: Install clickhouse repo | EL9
when:
- (ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux') and ansible_distribution_major_version == '9'
- name: Add ClickHouse repository
yum_repository:
name: clickhouse
file: clickhouse
description: "Clickhouse repo"
baseurl: "https://packages.clickhouse.com/rpm/stable/"
description: ClickHouse - Stable Repository
baseurl: https://packages.clickhouse.com/rpm/stable/
gpgkey: https://packages.clickhouse.com/rpm/stable/repodata/repomd.xml.key
gpgcheck: no
repo_gpgcheck: yes
enabled: no
gpgcheck: 0

- name: Install clickhouse package
yum:
Expand Down