Skip to content

Commit

Permalink
PMM-13314 Add flag to control adding yum repo in initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
konopka90 committed Aug 22, 2024
1 parent 9f60117 commit 117bbd9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions update/ansible/playbook/tasks/roles/postgres/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'

- name: Add PostgreSQL 11 YUM repository for EL7
yum_repository:
Expand All @@ -19,6 +21,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'

# we need the old postgres binary for the upgrade process
- name: Install Postgres
Expand Down Expand Up @@ -48,6 +52,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'

- name: Add PostgreSQL 11 YUM repository for EL9
yum_repository:
Expand All @@ -57,6 +63,8 @@
gpgcheck: yes
enabled: yes
gpgkey: file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY
when:
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'

# we need the old postgres binary for the upgrade process
- name: Install Postgres
Expand Down

0 comments on commit 117bbd9

Please sign in to comment.