Skip to content

Commit dd14e20

Browse files
authored
Merge pull request #805 from 25th-floor/PR/apt_source_parameters
Fix deprecated apt::source parameters
2 parents ebf12bc + ca344b0 commit dd14e20

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.fixtures.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fixtures:
22
repositories:
3-
apt:
3+
apt:
44
repo: "https://github.com/puppetlabs/puppetlabs-apt.git"
5-
branch: "1.8.x"
5+
branch: "2.0.0"
66
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
77
firewall: "https://github.com/puppetlabs/puppetlabs-firewall.git"
88
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"

manifests/repo/apt_postgresql_org.pp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
priority => 500,
1616
}->
1717
apt::source { 'apt.postgresql.org':
18-
location => $_baseurl,
19-
release => "${::lsbdistcodename}-pgdg",
20-
repos => "main ${postgresql::repo::version}",
21-
key => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8',
22-
key_source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
23-
include_src => false,
18+
location => $_baseurl,
19+
release => "${::lsbdistcodename}-pgdg",
20+
repos => "main ${postgresql::repo::version}",
21+
key => {
22+
id => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8',
23+
source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
24+
},
25+
include => {
26+
src => false,
27+
},
2428
}
2529

2630
Apt::Source['apt.postgresql.org']->Package<|tag == 'postgresql'|>

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"issues_url": "https://tickets.puppetlabs.com/browse/MODULES",
1010
"dependencies": [
1111
{"name":"puppetlabs/stdlib","version_requirement":"4.x"},
12-
{"name":"puppetlabs/apt","version_requirement":">=1.8.0 <3.0.0"},
12+
{"name":"puppetlabs/apt","version_requirement":">=2.0.0 <3.0.0"},
1313
{"name":"puppetlabs/concat","version_requirement":">= 1.1.0 <3.0.0"}
1414
],
1515
"data_provider": null,

0 commit comments

Comments
 (0)