Skip to content

Commit 5133782

Browse files
authored
Merge pull request #524 from itshosted/aptkey_options
Add aptkey_options parameter to mongodb::repo class
2 parents a38b312 + b299041 commit 5133782

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

manifests/repo.pp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# PRIVATE CLASS: do not use directly
22
class mongodb::repo (
33
Variant[Enum['present', 'absent'], Boolean] $ensure = 'present',
4-
Optional[String] $version = undef,
5-
Boolean $use_enterprise_repo = false,
6-
Optional[String] $repo_location = undef,
7-
Optional[String] $proxy = undef,
8-
Optional[String] $proxy_username = undef,
9-
Optional[String] $proxy_password = undef,
4+
Optional[String] $version = undef,
5+
Boolean $use_enterprise_repo = false,
6+
Optional[String] $repo_location = undef,
7+
Optional[String] $proxy = undef,
8+
Optional[String] $proxy_username = undef,
9+
Optional[String] $proxy_password = undef,
10+
Optional[String[1]] $aptkey_options = undef,
1011
) {
1112
case $::osfamily {
1213
'RedHat', 'Linux': {

manifests/repo/apt.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
release => $mongodb::repo::release,
1212
repos => $mongodb::repo::repos,
1313
key => {
14-
'id' => $mongodb::repo::key,
15-
'server' => $mongodb::repo::key_server,
14+
'id' => $mongodb::repo::key,
15+
'server' => $mongodb::repo::key_server,
16+
'options' => $mongodb::repo::aptkey_options,
1617
},
1718
}
1819

0 commit comments

Comments
 (0)