File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -528,8 +528,8 @@ def enable_https_apt_sources(host)
528528 end
529529
530530 def postgres_manifest
531- # bionic is EOL, so its pgdg repo has been removed.
532- manage_package_repo = ! is_bionic
531+ # For EOL OSes, pgdg removes the package repo
532+ manage_package_repo = ! ( is_bionic || is_buster )
533533
534534 manifest = <<-EOS
535535 # create the puppetdb database
Original file line number Diff line number Diff line change 3232 on master , "dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
3333 on master , "dnf -qy module disable postgresql"
3434 end
35+ # these OSes are EOL, so get postgresql from the archive
3536 elsif is_bionic
36- # bionic is EOL, so get postgresql from the archive
3737 on master , 'echo "deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main" >> /etc/apt/sources.list'
3838 on master , 'curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -'
3939 on master , 'apt update'
40+ elsif is_buster
41+ on master , 'echo "deb https://apt-archive.postgresql.org/pub/repos/apt buster-pgdg main" >> /etc/apt/sources.list'
42+ on master , 'curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -'
43+ on master , 'apt update'
4044 end
4145end
You can’t perform that action at this time.
0 commit comments