forked from evolvingweb/puppet-apt
-
Notifications
You must be signed in to change notification settings - Fork 469
Add apt::keyring defined type which creates modern-style keyrings #1105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,11 @@ | |
# @param provider | ||
# Specifies the provider that should be used by apt::update. | ||
# | ||
# @param keyserver | ||
# @param keyserver (deprecated) | ||
# Specifies a keyserver to provide the GPG key. Valid options: a string containing a domain name or a full URL (http://, https://, or | ||
# hkp://). | ||
# | ||
# @param key_options | ||
# @param key_options (deprecated) | ||
# Specifies the default options for apt::key resources. | ||
# | ||
# @param ppa_options | ||
|
@@ -85,9 +85,12 @@ | |
# @param sources | ||
# Creates new `apt::source` resources. Valid options: a hash to be passed to the create_resources function linked above. | ||
# | ||
# @param keys | ||
# @param keys (deprecated) | ||
# Creates new `apt::key` resources. Valid options: a hash to be passed to the create_resources function linked above. | ||
# | ||
# @param keyrings | ||
# Creates new `apt::keyring` resources. Valid options: a hash to be passed to the create_resources function linked above. | ||
# | ||
# @param ppas | ||
# Creates new `apt::ppa` resources. Valid options: a hash to be passed to the create_resources function linked above. | ||
# | ||
|
@@ -139,8 +142,8 @@ | |
# @param apt_conf_d | ||
# The path to the file `apt.conf.d` | ||
# | ||
# @param source_key_defaults | ||
# The fault `source_key` settings | ||
# @param source_key_defaults (deprecated) | ||
# The default `source_key` settings | ||
# | ||
class apt ( | ||
Hash $update_defaults = $apt::params::update_defaults, | ||
|
@@ -159,6 +162,7 @@ | |
Apt::Proxy $proxy = $apt::params::proxy, | ||
Hash $sources = $apt::params::sources, | ||
Hash $keys = $apt::params::keys, | ||
Hash $keyrings = $apt::params::keyrings, | ||
Hash $ppas = $apt::params::ppas, | ||
Hash $pins = $apt::params::pins, | ||
Hash $settings = $apt::params::settings, | ||
|
@@ -351,6 +355,9 @@ | |
if $keys { | ||
create_resources('apt::key', $keys) | ||
} | ||
if $keyrings { | ||
create_resources('apt::keyring', $keyrings) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please don't use $keyrings.each |$key, $data| {
apt::keyring { $key:
* => $data,
}
} |
||
} | ||
# manage ppas if present | ||
if $ppas { | ||
create_resources('apt::ppa', $ppas) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
$proxy = {} | ||
$sources = {} | ||
$keys = {} | ||
$keyrings = {} | ||
$ppas = {} | ||
$pins = {} | ||
$settings = {} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please directly assign the data here:
And please replace the
Hash
datatype with something that's a bit stricter.