Skip to content

Commit 1fe312d

Browse files
authored
Merge branch 'main' into enum_postgresql_password
2 parents e7334c7 + 20704ff commit 1fe312d

File tree

7 files changed

+53
-8
lines changed

7 files changed

+53
-8
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
77

8+
## [v10.6.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v10.6.0) - 2025-10-13
9+
10+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v10.5.0...v10.6.0)
11+
12+
### Added
13+
14+
- Allow puppetlabs/apt 11.x & puppet/systemd 9.x [#1645](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1645) ([kenyon](https://github.com/kenyon))
15+
- Add support for Debian 13 (trixie) [#1638](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1638) ([trefzer](https://github.com/trefzer))
16+
- Role: Add support for valid_until [#1624](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1624) ([mooreandrew](https://github.com/mooreandrew))
17+
18+
### Fixed
19+
20+
- Debian 11: Use correct package name for python bindings [#1647](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1647) ([bastelfreak](https://github.com/bastelfreak))
21+
- Unbreak Debian support with custom encoding [#1564](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1564) ([smortex](https://github.com/smortex))
22+
23+
### Other
24+
25+
- (CAT-2296) Update github runner image to ubuntu-24.04 [#1636](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1636) ([shubhamshinde360](https://github.com/shubhamshinde360))
26+
827
## [v10.5.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v10.5.0) - 2025-01-07
928

1029
[Full Changelog](https://github.com/puppetlabs/puppetlabs-postgresql/compare/v10.4.0...v10.5.0)
@@ -352,7 +371,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
352371

353372
### Fixed
354373

355-
- Do not add version component to repo definition [#1282](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1282) ([weastur](https://github.com/weastur))
374+
- Do not add version component to repo definition [#1282](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1282) ([psapezhka](https://github.com/psapezhka))
356375
- (MODULES-8700) Autorequire the service in postgresql_psql [#1276](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1276) ([ekohl](https://github.com/ekohl))
357376

358377
## [v7.2.0](https://github.com/puppetlabs/puppetlabs-postgresql/tree/v7.2.0) - 2021-05-24

REFERENCE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3677,6 +3677,7 @@ The following parameters are available in the `postgresql::server::role` defined
36773677
* [`inherit`](#-postgresql--server--role--inherit)
36783678
* [`superuser`](#-postgresql--server--role--superuser)
36793679
* [`replication`](#-postgresql--server--role--replication)
3680+
* [`valid_until`](#-postgresql--server--role--valid_until)
36803681
* [`connection_limit`](#-postgresql--server--role--connection_limit)
36813682
* [`username`](#-postgresql--server--role--username)
36823683
* [`connect_settings`](#-postgresql--server--role--connect_settings)
@@ -3769,6 +3770,14 @@ Provides provides replication capabilities for this role if set to true.
37693770

37703771
Default value: `false`
37713772

3773+
##### <a name="-postgresql--server--role--valid_until"></a>`valid_until`
3774+
3775+
Data type: `Optional[String[1]]`
3776+
3777+
Specifies whether to set a valid until date for the role.
3778+
3779+
Default value: `undef`
3780+
37723781
##### <a name="-postgresql--server--role--connection_limit"></a>`connection_limit`
37733782

37743783
Data type: `String[1]`

manifests/globals.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
'10' => '11',
211211
'11' => '13',
212212
'12' => '15',
213+
'13' => '17',
213214
default => undef,
214215
},
215216
'Ubuntu' => $facts['os']['release']['major'] ? {

manifests/params.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@
161161
$plpython_package_name = pick($plpython_package_name, "postgresql-plpython-${version}")
162162

163163
$_ubuntu_2204 = ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['full'], '22.04') >= 0)
164-
$_debian_12 = ($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['full'], '12') >= 0)
164+
$_debian_11 = ($facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['full'], '11') >= 0)
165165

166-
if $_ubuntu_2204 or $_debian_12 {
166+
if $_ubuntu_2204 or $_debian_11 {
167167
$python_package_name = pick($python_package_name, 'python3-psycopg2')
168168
} else {
169169
$python_package_name = pick($python_package_name, 'python-psycopg2')

metadata.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-postgresql",
3-
"version": "10.5.0",
3+
"version": "10.6.0",
44
"author": "puppetlabs",
55
"summary": "Offers support for basic management of PostgreSQL databases.",
66
"license": "Apache-2.0",
@@ -14,11 +14,11 @@
1414
},
1515
{
1616
"name": "puppetlabs/apt",
17-
"version_requirement": ">= 9.2.0 < 11.0.0"
17+
"version_requirement": ">= 9.2.0 < 12.0.0"
1818
},
1919
{
2020
"name": "puppet/systemd",
21-
"version_requirement": ">= 4.0.1 < 9.0.0"
21+
"version_requirement": ">= 4.0.1 < 10.0.0"
2222
},
2323
{
2424
"name": "puppetlabs/concat",
@@ -60,7 +60,8 @@
6060
"operatingsystemrelease": [
6161
"10",
6262
"11",
63-
"12"
63+
"12",
64+
"13"
6465
]
6566
},
6667
{

spec/classes/lib/python_spec.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@
3030

3131
it {
3232
expect(subject).to contain_package('python-psycopg2').with(
33-
name: 'python-psycopg2',
33+
name: 'python3-psycopg2',
34+
ensure: 'present',
35+
)
36+
}
37+
end
38+
39+
describe 'on debian 12' do
40+
include_examples 'Debian 12'
41+
42+
it {
43+
expect(subject).to contain_package('python-psycopg2').with(
44+
name: 'python3-psycopg2',
3445
ensure: 'present',
3546
)
3647
}

spec/spec_helper_local.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ def param(type, title, param)
184184
let(:facts) { on_supported_os['debian-11-x86_64'] }
185185
end
186186

187+
shared_context 'Debian 12' do
188+
let(:facts) { on_supported_os['debian-12-x86_64'] }
189+
end
190+
187191
shared_context 'Ubuntu 18.04' do
188192
let(:facts) { on_supported_os['ubuntu-18.04-x86_64'] }
189193
end

0 commit comments

Comments
 (0)