forked from evolvingweb/puppet-apt
-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for deb822 APT sources (#1167)
* Initial testing for deb822 APT sources * Added defined type for generating deb822 apt sources Should be roughly drop-in alternative to the existing apt::source type Does not currently support inline ascii gpg key * Add puppet strings documentation * Replace example with generic content * Initial testing of apt::source with deb822 support * Fix setting_type and signed_by Use 'sources' instead of 'source' as the setting_type parsed to apt::setting Fix the data type of apt::source::signed_by * Fix source_deb822.epp template Correctly handle newline/whitespace trimming for `signed_by` parameter. * Remove link from components to repos * Add logic for deb822 sources * Update documentation for deb822 sources * Update source_format parameter Match the possible values to the file suffix of the created source files. * Add forward-compatibility with deb822 Allow array values for certain parameters to allow easy switching between .list and .sources formats. * Add backward-compatibility for deb822 sources Convert string values to arrays where possible and warn the user. * Fix logic * Revert "Add forward-compatibility with deb822" This reverts commit 9d88e93. * Fix deb822 backward compatibility Correctly compare data type when generating deb822 sources Remove unused class parameters and descriptions * Update puppet-strings and logic Remove references to unused deb822 parameters Update parameter descriptions Update deb822 example Update warnings for $pin and $key usage with deb822. Currently unsupported Don't fail if $location is missing unless $ensure is 'present' * Remove unused spec test * Add unit testing for deb822 sources * Update README.md with deb822 sources example * Fix unit test syntax * Re-apply commit 2faa817 eliminate params.pp and create_resources() params.pp and create_resources() are obsolete. This module was converted to non-params.pp style #667, but was reverted in #680. Using Hiera in modules and no params.pp are the preferred styles these days. * Update apt::config_files hash Add support for deb822 .sources files * Update data types and documentation Re-apply data-type changes for apt::source::pin from 1e1baad Regenerate puppet strings to match. * Update source_deb822.epp template Remove leading whitespace * Update manifests/setting.pp Simplify apt::setting logic Co-authored-by: Tim Meusel <[email protected]> --------- Co-authored-by: James Paton-Smith <[email protected]> Co-authored-by: Tim Meusel <[email protected]>
- Loading branch information
1 parent
30e8065
commit 9876c31
Showing
7 changed files
with
439 additions
and
154 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.