Skip to content
New issue

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

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

Already on GitHub? # to your account

PMM-13805 Added support to setup PMM3 with PPG & PGSM from PPG testing repos. #117

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

Naeem-Akhter
Copy link

@Naeem-Akhter Naeem-Akhter commented Mar 2, 2025

PMM-13805 Added support to setup PMM3 with PPG & PGSM from PPG testing repos.

*For PPG we have following repo structure available, and this commit makes sure we can use minor version testing or release repo.
Release
-Major: like ppg-16
-Minor: like ppg-16.8
Testing
-Minor: like ppg-16.8
-There is no MAJOR repo under testing repo

*For using Minor Version testing repo, following ENV variable should be used.
export PDPGSQL_VERSION=15 # Major Verion Only
export PPG_REPO_VERSION=15.12
export PPG_REPO_TYPE=testing
python pmm-framework.py --database PDPGSQL --verbose

*For using Minor Version release repo, following ENV variable should be used.
export PDPGSQL_VERSION=15 # Major Verion Only
export PPG_REPO_VERSION=15.12
export PPG_REPO_TYPE=release
python pmm-framework.py --database PDPGSQL --verbose

*Already existing use case with Release repo will work as before.
export PDPGSQL_VERSION=15 # Major Verion Only
python pmm-framework.py --database PDPGSQL --verbose

…g repos.

*For PPG we have following repo structure available, and this commit makes sure we can use minor version testing or release repo.
Release
    -Major: like ppg-16
    -Minor: like ppg-16.8
Testing
    -Minor: like ppg-16.8
    -There is no MAJOR repo under testing repo

*For using Minor Version testing repo repo, following ENV variable should be used.
export PDPGSQL_VERSION=15 # Major Verion Only
export PPG_REPO_VERSION=15.12
export PPG_REPO_TYPE=testing
python pmm-framework.py --database PDPGSQL --verbose

*For using Minor Version release repo repo, following ENV variable should be used.
export PDPGSQL_VERSION=15 # Major Verion Only
export PPG_REPO_VERSION=15.12
export PPG_REPO_TYPE=release
python pmm-framework.py --database PDPGSQL --verbose

*Already existing use case with Release repo will work as before.
export PDPGSQL_VERSION=15 # Major Verion Only
python pmm-framework.py --database PDPGSQL --verbose
@@ -17,6 +17,8 @@
use_socket: "{{ lookup('vars', 'extra_pdpgsql_version', default=lookup('env','USE_SOCKET') | default('', true) ) }}"
pdpgsql_pgsm_port: "{{ lookup('vars', 'extra_pdpgsql_port', default=lookup('env','PDPGSQL_PGSM_PORT') | default(5447, true) ) }}"
distribution: "{{ lookup('vars', 'extra_pdpgsql_distribution', default=lookup('env','DISTRIBUTION') | default('PPG', true) ) }}"
ppg_repo_version: "{{ lookup('vars', 'extra_ppg_repo_version', default=lookup('env','PPG_REPO_VERSION') | default('', true) ) }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the work on this Naeem,
Can we retain env variable PPG_VERSION, instead of PPG_REPO_VERSION, this will allow the wrapper(python) script to also work, with your changes.
Also can you please assign PPG_REPO_VERSION, default as "testing" so that we ensure if nothing is passed from the wrapper we always consider testing repo, instead of release, if thats fine by you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants