Skip to content

Commit

Permalink
Merge pull request #119 from jordiprats/master
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
jordiprats authored Jun 8, 2020
2 parents 8a6023f + 09f65eb commit 2c9455c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 201 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# CHANGELOG

## 0.4.29
## 0.5.1

* fix raspbian bug
* fix client dependency
* added support for **RHEL/CentOS 8**

## 0.4.16
## 0.5.0

* added ability to control whether the replica should be paused
* added support for **Debian 8, 9 and 10** and **Ubuntu 14.04, 16.04, 18.04 and 20.04**
Expand Down
23 changes: 0 additions & 23 deletions examples/demo_pg92.pp

This file was deleted.

108 changes: 19 additions & 89 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -85,100 +85,30 @@
$postgresgroup='postgres'
$postgreshome='/var/lib/pgsql'

case $::operatingsystem
$reposource = {
'9.6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'10' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'11' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'12' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
}
$reponame = {
'9.6' => 'pgdg-redhat-repo',
'10' => 'pgdg-redhat-repo',
'11' => 'pgdg-redhat-repo',
'12' => 'pgdg-redhat-repo',
}

case $::operatingsystemrelease
{
'RedHat':
/^6.*$/:
{
case $::operatingsystemrelease
{
/^6.*$/:
{
$systemd=false
$reposource = {
'9.2' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'9.6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'10' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'11' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'12' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
}
$reponame = {
'9.2' => 'pgdg-redhat-repo',
'9.6' => 'pgdg-redhat-repo',
'10' => 'pgdg-redhat-repo',
'11' => 'pgdg-redhat-repo',
'12' => 'pgdg-redhat-repo',
}
}
/^7.*$/:
{
$systemd=true
$reposource = {
'9.2' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'9.6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'10' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'11' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'12' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
}
$reponame = {
'9.2' => 'pgdg-redhat-repo',
'9.6' => 'pgdg-redhat-repo',
'10' => 'pgdg-redhat-repo',
'11' => 'pgdg-redhat-repo',
'12' => 'pgdg-redhat-repo',
}
}
default: { fail("Unsupported RHEL version! - ${::operatingsystemrelease}") }
}
$systemd=false
}
'CentOS':
/^[78].*$/:
{
case $::operatingsystemrelease
{
/^6.*$/:
{
$systemd=false
$reposource = {
'9.2' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'9.6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'10' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'11' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'12' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
}
$reponame = {
'9.2' => 'pgdg-redhat-repo',
'9.6' => 'pgdg-redhat-repo',
'10' => 'pgdg-redhat-repo',
'11' => 'pgdg-redhat-repo',
'12' => 'pgdg-redhat-repo',
}

}
/^7.*$/:
{
$systemd=true
$reposource = {
'9.2' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'9.6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'10' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'11' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
'12' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
}
$reponame = {
'9.2' => 'pgdg-redhat-repo',
'9.6' => 'pgdg-redhat-repo',
'10' => 'pgdg-redhat-repo',
'11' => 'pgdg-redhat-repo',
'12' => 'pgdg-redhat-repo',
}
# NOTA:
# # rpm -qi -p https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
# Name : pgdg-redhat-repo

}
default: { fail("Unsupported CentOS version! - ${::operatingsystemrelease}") }
}
$systemd=true
}
default: { fail('Unsupported flavor')}
default: { fail("Unsupported version! - ${::operatingsystemrelease}") }
}
}
'Debian':
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-postgresql",
"version": "0.4.29",
"version": "0.5.1",
"author": "eyp",
"summary": "postgresql and pgbounce installation, configuration and management",
"license": "Apache-2.0",
Expand All @@ -21,11 +21,11 @@
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [ "6", "7" ]
"operatingsystemrelease": [ "6", "7", "8" ]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [ "6", "7" ]
"operatingsystemrelease": [ "6", "7", "8" ]
},
{
"operatingsystem": "Ubuntu",
Expand Down
84 changes: 0 additions & 84 deletions spec/acceptance/pg92_spec.rb

This file was deleted.

0 comments on commit 2c9455c

Please sign in to comment.