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-13314 Add flag to control adding yum repo in initialization procedure #3164

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 4 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
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'


- 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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'


# 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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'


- 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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='undefined') == 'undefined'
- lookup('env', 'DISABLE_REMOTE_YUM_REPOSITORY', default='false') == 'false'


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