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-13413 Do not install pg-telemetry package #3264

Draft
wants to merge 3 commits into
base: PMM-12641-optimize-pmm-build-scripts
Choose a base branch
from
Draft
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
12 changes: 5 additions & 7 deletions build/ansible/roles/pmm-images/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
---
# We use percona-release package to install the gpg keys and ppg-14
# To workaround the package's incompatibility with RHEL9, we have to disable the gpg verification :(
- name: Add percona-release package
yum:
name: https://repo.percona.com/yum/percona-release-latest.noarch.rpm
state: installed
disable_gpg_check: yes
- name: Import Percona GPG key
rpm_key:
state: present
key: https://repo.percona.com/yum/PERCONA-PACKAGING-KEY

- name: List installed gpg keys
command: ls -la /etc/pki/rpm-gpg
Expand All @@ -30,6 +27,7 @@
name:
- python3-pip
- rsync
- findutils
state: latest

- name: Create groups
Expand Down
11 changes: 10 additions & 1 deletion build/ansible/roles/postgres/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- percona-postgresql14
- python3-psycopg2 # Python PostgreSQL database adapter
state: installed
nobest: true
skip_broken: true

- name: Create a socket directory for Postgres
file:
Expand Down Expand Up @@ -72,10 +74,17 @@
db: pmm-managed
name: pmm-managed
password: "md5da757ec3e22c6d86a2bb8e70307fa937"
priv: "ALL"
# priv: "ALL" # deprecated, see a separate task below
expires: infinity
state: present

- name: Grant ALL privileges to pmm-managed user
postgresql_privs:
db: pmm-managed
privs: ALL
type: database
role: pmm-managed

- name: Create pg_stat_statements extension
postgresql_ext:
db: postgres
Expand Down
Loading