puppet-modules/puppetlabs-apt.git
9 years agoMerge pull request #510 from psoloway/readme
Morgan Haskel [Mon, 27 Apr 2015 20:39:13 +0000 (13:39 -0700)]
Merge pull request #510 from psoloway/readme

Update README per DOC-1503

9 years agoUpdate README per DOC-1503
Pete Soloway [Tue, 14 Apr 2015 01:35:10 +0000 (18:35 -0700)]
Update README per DOC-1503

1. Make sure that for each parameter, where applicable, there is a default value.
2. Make sure that for each parameter that's applicable, there is a note if the parameter is optional.
3. Make sure the links in the README work and are accurate.
4. Update the link in the Contributing section to point here: https://docs.puppetlabs.com/forge/contributing.html
5. General copyediting.

* Add a ToC
* Reorganize Usage & Reference sections
* Standardize capitalization of "Apt" (as opposed to "apt", the module)
* Standardize Development section

Apply edits from @jbondpdx

* Re-emphasize the warning about short key names
* Restore the “What apt affects” section
* Re-correct capitalization of “Apt” (where it had reverted to “APT”)
* Clarify OS compatibility in Limitations and elsewhere
* Various edits for clarity

9 years agoMerge pull request #504 from mhaskel/fix_tests
Bryan Jen [Wed, 22 Apr 2015 23:56:40 +0000 (16:56 -0700)]
Merge pull request #504 from mhaskel/fix_tests

Update tests to work with rspec-puppet 2.x

9 years agoUpdate tests to work with rspec-puppet 2.x
Morgan Haskel [Wed, 22 Apr 2015 23:31:47 +0000 (16:31 -0700)]
Update tests to work with rspec-puppet 2.x

Also enable future parser testing. Need to allow failures with future
parser for now since none of the published gems have the fix for
PUP-4379

9 years agoMerge pull request #501 from mhaskel/MODULES-1934
Travis Fields [Mon, 20 Apr 2015 20:14:31 +0000 (13:14 -0700)]
Merge pull request #501 from mhaskel/MODULES-1934

MODULES-1934: Iterate through multiple keys

9 years agoIterate through multiple keys
Morgan Haskel [Mon, 20 Apr 2015 19:44:10 +0000 (12:44 -0700)]
Iterate through multiple keys

9 years agoMerge pull request #498 from mhaskel/missed_purge_reference 2.0.0
Hunter Haugen [Tue, 14 Apr 2015 18:40:36 +0000 (11:40 -0700)]
Merge pull request #498 from mhaskel/missed_purge_reference

Fogot to remove the purge warning

9 years agoFogot to remove the purge warning
Morgan Haskel [Tue, 14 Apr 2015 18:31:16 +0000 (11:31 -0700)]
Fogot to remove the purge warning

9 years agoMerge pull request #489 from mhaskel/2.0.0-prep
Hunter Haugen [Tue, 14 Apr 2015 18:19:40 +0000 (11:19 -0700)]
Merge pull request #489 from mhaskel/2.0.0-prep

2.0.0 prep

9 years agoMerge pull request #497 from mhaskel/dont_purge_by_default
Hunter Haugen [Tue, 14 Apr 2015 18:19:18 +0000 (11:19 -0700)]
Merge pull request #497 from mhaskel/dont_purge_by_default

Don't purge by default. That seems unnecessarily destructive.

9 years ago2.0.0 prep
Morgan Haskel [Mon, 30 Mar 2015 17:17:37 +0000 (13:17 -0400)]
2.0.0 prep

9 years agoDon't purge by default. That seems unnecessarily destructive.
Morgan Haskel [Tue, 14 Apr 2015 18:03:17 +0000 (11:03 -0700)]
Don't purge by default. That seems unnecessarily destructive.

9 years agoMerge pull request #496 from puppetlabs/allow-undef-content-conf
Morgan Haskel [Tue, 14 Apr 2015 15:24:03 +0000 (08:24 -0700)]
Merge pull request #496 from puppetlabs/allow-undef-content-conf

apt::conf: Don't require content `ensure=>absent`.

9 years agoapt::conf: Don't require content `ensure=>absent`.
Daniele Sluijters [Tue, 14 Apr 2015 10:41:57 +0000 (12:41 +0200)]
apt::conf: Don't require content `ensure=>absent`.

9 years agoMerge pull request #493 from mhaskel/remove_mint
Hunter Haugen [Mon, 13 Apr 2015 20:38:40 +0000 (13:38 -0700)]
Merge pull request #493 from mhaskel/remove_mint

Remove default support for Linux Mint and Cumulus Networks

9 years agoMerge pull request #495 from mhaskel/gepetto
Bryan Jen [Mon, 13 Apr 2015 18:35:25 +0000 (11:35 -0700)]
Merge pull request #495 from mhaskel/gepetto

Try to make gepetto happy.

9 years agoTry to make gepetto happy.
Morgan Haskel [Mon, 13 Apr 2015 18:13:26 +0000 (11:13 -0700)]
Try to make gepetto happy.

9 years agoRemove default support for Linux Mint and Cumulus Networks
Morgan Haskel [Tue, 7 Apr 2015 22:45:20 +0000 (15:45 -0700)]
Remove default support for Linux Mint and Cumulus Networks

NOTE: While out-of-the box support is disabled, it is still possible to
get the same configurations, it will just require explicitly setting the
necessary codename-munging.

This should only affect `apt::ppa`

9 years agoMerge pull request #494 from mhaskel/cleanup-backports
Bryan Jen [Mon, 13 Apr 2015 17:21:12 +0000 (10:21 -0700)]
Merge pull request #494 from mhaskel/cleanup-backports

Cleanup backports

9 years agoAdd testing, docs, and examples for backports
Morgan Haskel [Tue, 7 Apr 2015 19:12:06 +0000 (12:12 -0700)]
Add testing, docs, and examples for backports

9 years agobackports: Add support back for backports.
Daniele Sluijters [Tue, 7 Apr 2015 11:51:10 +0000 (13:51 +0200)]
backports: Add support back for backports.

This is currently lacking tests.

9 years agosource: Support complex pin, like key does.
Daniele Sluijters [Mon, 6 Apr 2015 22:02:58 +0000 (18:02 -0400)]
source: Support complex pin, like key does.

This adds support for passing in a full pin declaration as the pin
parameter on a source declaration.

It keeps the old behaviour intact, you can still simply do `pin => '10'`
and it will pin on origin with a priority of 10.

Should that not be what you want you can now pass in a full pin
declaration instead. We make no assumptions here, whatever you pass in
will be passed through to pin as-is with the exception of the values for
`ensure` and `before` which are always overridden by us to ensure
everything keeps working as designed.

9 years agoMerge pull request #491 from mhaskel/lint_cleanup
Colleen Murphy [Mon, 6 Apr 2015 20:32:27 +0000 (13:32 -0700)]
Merge pull request #491 from mhaskel/lint_cleanup

more lint cleanup

9 years agomore lint cleanup
Morgan Haskel [Mon, 6 Apr 2015 20:18:58 +0000 (13:18 -0700)]
more lint cleanup

9 years agoMerge pull request #490 from mhaskel/lint_cleanup
Daniele Sluijters [Mon, 6 Apr 2015 19:06:24 +0000 (15:06 -0400)]
Merge pull request #490 from mhaskel/lint_cleanup

Lint cleanup

9 years agoLint cleanup
Morgan Haskel [Mon, 6 Apr 2015 18:29:02 +0000 (11:29 -0700)]
Lint cleanup

9 years agoMerge pull request #483 from mhaskel/examples
Daniele Sluijters [Fri, 27 Mar 2015 13:11:05 +0000 (14:11 +0100)]
Merge pull request #483 from mhaskel/examples

Add missing examples for 'removed' functionality

9 years agoExample updates
Morgan Haskel [Wed, 25 Mar 2015 21:22:52 +0000 (17:22 -0400)]
Example updates

9 years agoMerge pull request #484 from mhaskel/merge_master_to_next
Daniele Sluijters [Thu, 26 Mar 2015 07:48:14 +0000 (08:48 +0100)]
Merge pull request #484 from mhaskel/merge_master_to_next

Merge master to next

9 years agoMerge remote-tracking branch 'upstream/master' into merge_master_to_next
Morgan Haskel [Wed, 25 Mar 2015 22:32:09 +0000 (18:32 -0400)]
Merge remote-tracking branch 'upstream/master' into merge_master_to_next

9 years agoMerge pull request #482 from leoarnold/master
Daniele Sluijters [Wed, 25 Mar 2015 19:36:11 +0000 (20:36 +0100)]
Merge pull request #482 from leoarnold/master

Updated key fingerprints in README to match v1.8.0 requirements

9 years agoExample for fancy progress.
Morgan Haskel [Wed, 25 Mar 2015 19:30:16 +0000 (15:30 -0400)]
Example for fancy progress.

9 years agoExample for disabling keys
Morgan Haskel [Wed, 25 Mar 2015 19:16:04 +0000 (15:16 -0400)]
Example for disabling keys

9 years agoUpdated key fingerprints in README to match v1.8.0 requirements
Leo Arnold [Wed, 25 Mar 2015 19:09:22 +0000 (20:09 +0100)]
Updated key fingerprints in README to match v1.8.0 requirements

9 years agoAdd examples for force.
Morgan Haskel [Wed, 25 Mar 2015 17:08:13 +0000 (13:08 -0400)]
Add examples for force.

9 years agoWe've got things in params, let's use those!
Morgan Haskel [Wed, 25 Mar 2015 15:13:12 +0000 (11:13 -0400)]
We've got things in params, let's use those!

9 years agoAdd an example for backports
Morgan Haskel [Mon, 23 Mar 2015 20:13:37 +0000 (16:13 -0400)]
Add an example for backports

9 years agoWe got rid of the funny proxy removal
Morgan Haskel [Mon, 23 Mar 2015 19:24:35 +0000 (15:24 -0400)]
We got rid of the funny proxy removal

9 years agoMerge pull request #479 from mhaskel/update_anchors
Daniele Sluijters [Wed, 25 Mar 2015 07:30:11 +0000 (08:30 +0100)]
Merge pull request #479 from mhaskel/update_anchors

(MODULES-1156, MODULES-769) Update anchors

9 years ago(MODULES-1156, MODULES-769) Remove unnecessary anchors
Morgan Haskel [Mon, 23 Mar 2015 17:55:13 +0000 (13:55 -0400)]
(MODULES-1156, MODULES-769) Remove unnecessary anchors

`apt::ppa` and `apt::setting` don't actually include `apt::update` so
anchors are unnecessary. Move `apt` to use contain instead of anchors,
since it wasn't anchoring properly anyways. Update the tests to make
sure it can have settings and ppas depending on each other without
cycles.

9 years agoMerge pull request #480 from anodelman/master
Daniele Sluijters [Tue, 24 Mar 2015 21:03:13 +0000 (22:03 +0100)]
Merge pull request #480 from anodelman/master

(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...

9 years ago(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...
Alice Nodelman [Tue, 24 Mar 2015 18:40:24 +0000 (11:40 -0700)]
(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...

puppetdb, etc

- support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile

9 years agoMerge pull request #478 from GhostLyrics/update-readme-unattended-upgrades
Daniele Sluijters [Sun, 22 Mar 2015 22:54:46 +0000 (23:54 +0100)]
Merge pull request #478 from GhostLyrics/update-readme-unattended-upgrades

Extend docs for unattended_upgrades

9 years agoExtend docs for unattended_upgrades
Alexander Skiba [Sun, 22 Mar 2015 20:02:59 +0000 (21:02 +0100)]
Extend docs for unattended_upgrades

documented more common parameters

9 years agoREADME: update['frequency'] is not a boolean
Daniele Sluijters [Fri, 20 Mar 2015 18:15:42 +0000 (19:15 +0100)]
README: update['frequency'] is not a boolean

9 years agoREADME: Add highlighting for code blocks.
Daniele Sluijters [Fri, 20 Mar 2015 18:13:53 +0000 (19:13 +0100)]
README: Add highlighting for code blocks.

9 years agoFix typo
Morgan Haskel [Fri, 20 Mar 2015 18:12:12 +0000 (14:12 -0400)]
Fix typo

9 years agoMerge pull request #477 from mhaskel/doc_updates
Daniele Sluijters [Fri, 20 Mar 2015 18:09:18 +0000 (19:09 +0100)]
Merge pull request #477 from mhaskel/doc_updates

Doc updates

9 years agoREADME updates for 2.x rewrite
Morgan Haskel [Fri, 20 Mar 2015 00:15:32 +0000 (17:15 -0700)]
README updates for 2.x rewrite

All classes, defines, parameters, and examples should be up to date.

9 years agoMerge pull request #472 from mhaskel/acceptance_test_fixes
Daniele Sluijters [Thu, 19 Mar 2015 09:16:15 +0000 (10:16 +0100)]
Merge pull request #472 from mhaskel/acceptance_test_fixes

Acceptance test fixes

9 years agoMerge pull request #473 from mhaskel/freq_cleanup
Daniele Sluijters [Thu, 19 Mar 2015 09:14:56 +0000 (10:14 +0100)]
Merge pull request #473 from mhaskel/freq_cleanup

Remove `update['always'] = true` support

9 years agoMerge pull request #474 from mhaskel/containers_ftw
Daniele Sluijters [Thu, 19 Mar 2015 09:14:35 +0000 (10:14 +0100)]
Merge pull request #474 from mhaskel/containers_ftw

Linux open-source builds are regularly maxed out.

9 years agoLinux open-source builds are regularly maxed out.
Morgan Haskel [Wed, 18 Mar 2015 22:51:37 +0000 (15:51 -0700)]
Linux open-source builds are regularly maxed out.

Container-based are not. Let's switch!

9 years agoRemove `update['always'] = true` support
Morgan Haskel [Wed, 18 Mar 2015 20:52:12 +0000 (13:52 -0700)]
Remove `update['always'] = true` support

We don't really need both of `update['always'] = true` and
`update['frequency'] = 'always'`.

9 years agoMake the acceptance tests work
Morgan Haskel [Wed, 18 Mar 2015 19:56:29 +0000 (12:56 -0700)]
Make the acceptance tests work

9 years agoActually make it possible to use apt_key
Morgan Haskel [Wed, 18 Mar 2015 19:51:37 +0000 (12:51 -0700)]
Actually make it possible to use apt_key

The provider wasn't updated for a parameter rename.

9 years agoMerge pull request #471 from mhaskel/merge_1.8.x_to_master
Bryan Jen [Tue, 17 Mar 2015 23:59:49 +0000 (16:59 -0700)]
Merge pull request #471 from mhaskel/merge_1.8.x_to_master

Merge 1.8.x to master

9 years agoMerge pull request #469 from mhaskel/test_fixes 1.8.0
Hunter Haugen [Tue, 17 Mar 2015 00:22:18 +0000 (17:22 -0700)]
Merge pull request #469 from mhaskel/test_fixes

Update all the unit tests to look for full fingerprints

9 years agoUpdate all the unit tests to look for full fingerprints
Morgan Haskel [Mon, 16 Mar 2015 23:40:46 +0000 (16:40 -0700)]
Update all the unit tests to look for full fingerprints

Merged #466 too quickly

9 years agoMerge pull request #468 from mhaskel/1.8.0-prep
Hunter Haugen [Mon, 16 Mar 2015 21:30:19 +0000 (14:30 -0700)]
Merge pull request #468 from mhaskel/1.8.0-prep

1.8.0 prep

9 years agoMerge pull request #466 from paroga/master
Morgan Haskel [Mon, 16 Mar 2015 21:16:08 +0000 (14:16 -0700)]
Merge pull request #466 from paroga/master

Fix gpg key checking warings after f588f26

9 years ago1.8.0 prep
Morgan Haskel [Mon, 16 Mar 2015 21:05:58 +0000 (14:05 -0700)]
1.8.0 prep

9 years agoFix gpg key checking warings after f588f26
Patrick Gansterer [Mon, 16 Mar 2015 18:34:24 +0000 (19:34 +0100)]
Fix gpg key checking warings after f588f26

Use the full fingerprint for all keys to silence the warning.

9 years agoMerge pull request #465 from bootc/fixes/gpg2_date_parsing
Morgan Haskel [Mon, 16 Mar 2015 17:56:28 +0000 (10:56 -0700)]
Merge pull request #465 from bootc/fixes/gpg2_date_parsing

apt_key: fix parsing invalid dates when using GnuPG 2.x

9 years agoapt_key: fix some whitespace issues
Chris Boot [Sun, 15 Mar 2015 22:47:15 +0000 (22:47 +0000)]
apt_key: fix some whitespace issues

9 years agoapt_key: fix parsing invalid dates when using GnuPG 2.x
Chris Boot [Sun, 15 Mar 2015 22:33:22 +0000 (22:33 +0000)]
apt_key: fix parsing invalid dates when using GnuPG 2.x

If one should happen to have redirected /usr/bin/gpg to run GnuPG 2.x
rather than the more usual GnuPG 1.x, the apt_key provider fails with
the following error:

Could not prefetch apt_key provider 'apt_key': invalid date

This is because the output of "--with-colons" defaults to using
"fixed-list-mode" in 2.x but did not do so for 1.x. This new format
gives much more information about keys and also uses timestamps in
seconds from 1970-01-01 (UNIX epoch) rather than dates in the format
YYYY-MM-DD.

This patch adds "--fixed-list-mode" when calling apt-key, and adjusts
the code to parse the timestamps instead. This actually has several
advantages:

- Works the same with GnuPG 1.x and 2.x.
- More accurate expiry time tracking, not just entire days.
- No need to require 'date' any longer.
- Will allow the provider to expose more key information in future.

Tested on:
- Debian Wheezy (Puppet 2.7.23, Ruby 1.8.7p358)
- Debian Jessie (Puppet 3.7.2, Ruby 2.1.5p273)

9 years agoMerge pull request #464 from mhaskel/README_cleanup
Colleen Murphy [Fri, 13 Mar 2015 22:33:12 +0000 (15:33 -0700)]
Merge pull request #464 from mhaskel/README_cleanup

Update docs for unattended_upgrades

9 years agoUpdate docs and test for $legacy_origin
Morgan Haskel [Fri, 13 Mar 2015 21:56:53 +0000 (14:56 -0700)]
Update docs and test for $legacy_origin

9 years agoMerge pull request #463 from mhaskel/toggle-legacy-origin
Hunter Haugen [Fri, 13 Mar 2015 22:29:20 +0000 (15:29 -0700)]
Merge pull request #463 from mhaskel/toggle-legacy-origin

Allow changing legacy_origin

9 years agoUpdate docs and test for $legacy_origin
Morgan Haskel [Fri, 13 Mar 2015 21:56:53 +0000 (14:56 -0700)]
Update docs and test for $legacy_origin

9 years agounattended_upgrades: Allow changing legacy_origin
Mikko Pesari [Wed, 18 Feb 2015 16:09:53 +0000 (18:09 +0200)]
unattended_upgrades: Allow changing legacy_origin

This enables using Origins-Pattern in Ubuntu.

9 years agoMerge pull request #459 from tphoney/modules-1675_check_gpg_version
Morgan Haskel [Fri, 13 Mar 2015 21:40:43 +0000 (14:40 -0700)]
Merge pull request #459 from tphoney/modules-1675_check_gpg_version

initial commit for apt_key checking

9 years agoMerge pull request #456 from johanfleury/cleaning/template/unattended-upgrades
Morgan Haskel [Fri, 13 Mar 2015 21:10:13 +0000 (14:10 -0700)]
Merge pull request #456 from johanfleury/cleaning/template/unattended-upgrades

Cleaning 50unattended-upgrades.erb

9 years agoMerge pull request #462 from mhaskel/optional_software_properties
Colleen Murphy [Fri, 13 Mar 2015 20:51:56 +0000 (13:51 -0700)]
Merge pull request #462 from mhaskel/optional_software_properties

Make installation of software-properties optional

9 years agoMake installation of software-properties optional
Morgan Haskel [Fri, 20 Feb 2015 22:25:53 +0000 (14:25 -0800)]
Make installation of software-properties optional

This is cherry-picked from the PPA cleanup happening for the 2.0.0 release.

Conflicts:
manifests/params.pp
manifests/ppa.pp

9 years agoinitial commit for gpg key checking
tphoney [Fri, 6 Mar 2015 16:14:40 +0000 (16:14 +0000)]
initial commit for gpg key checking

better attempt at gpg version checking

adding in key length warning

removing version check, adding key check

adding tests

clean up the code

small changes

use commands

documentation updates

9 years agoMerge pull request #461 from mhaskel/boo_inheritance
Daniele Sluijters [Wed, 11 Mar 2015 08:21:45 +0000 (09:21 +0100)]
Merge pull request #461 from mhaskel/boo_inheritance

Inheritance of apt::params means it can't be private

9 years agoInheritance of apt::params means it can't be private
Morgan Haskel [Wed, 11 Mar 2015 00:13:31 +0000 (17:13 -0700)]
Inheritance of apt::params means it can't be private

Otherwise, if another module has `class { 'apt': }` in it everything
fails, as `$caller_module_name` will be the other module name.

9 years agoCleaning 50unattended-upgrades.erb
Johan Fleury [Sun, 8 Mar 2015 23:01:57 +0000 (00:01 +0100)]
Cleaning 50unattended-upgrades.erb

9 years agoMerge pull request #453 from puppetlabs/daenney/location-required
Morgan Haskel [Fri, 6 Mar 2015 18:08:02 +0000 (10:08 -0800)]
Merge pull request #453 from puppetlabs/daenney/location-required

apt::source: Make location required.

9 years agoapt::source: Make location mostly required.
Daniele Sluijters [Thu, 5 Mar 2015 19:35:02 +0000 (20:35 +0100)]
apt::source: Make location mostly required.

In what universe does it make sense to create a `sources.list.d` entry
for a repository **without** specifying where this repository is?
:confounded:

:disappointed: :weary: :anguished: :scream:

Only when removing the resource should a location not be required.

9 years agoMerge pull request #454 from LeslieCarr/MODULES-1827-add-cumulus-linux
TP Honey [Fri, 6 Mar 2015 12:13:49 +0000 (12:13 +0000)]
Merge pull request #454 from LeslieCarr/MODULES-1827-add-cumulus-linux

MODULES-1827 adding Cumulus Linux detection

9 years agoMODULES-1827 adding Cumulus Linux detection
Leslie Carr [Fri, 6 Mar 2015 00:56:03 +0000 (16:56 -0800)]
MODULES-1827 adding Cumulus Linux detection

the apt module did not correctly detect Cumulus Linux with lsbdistid.
This change adds several lines in params.pp to detect Cumulus Linux and
set $distid and $distcodename

9 years agoMerge pull request #452 from puppetlabs/daenney/rename-trusted-source
Morgan Haskel [Fri, 6 Mar 2015 00:49:23 +0000 (16:49 -0800)]
Merge pull request #452 from puppetlabs/daenney/rename-trusted-source

apt::source: Rename `trusted_source`.

9 years agoapt::source: Rename `trusted_source`.
Daniele Sluijters [Thu, 5 Mar 2015 19:23:38 +0000 (20:23 +0100)]
apt::source: Rename `trusted_source`.

It is weird that `trusted_source` would default to `false` as that would
imply that we normally don't trust our sources. This is opposite to the
truth, by default we trust them but only if the Releases file can be
verified (meaning it is signed by a GPG key known to apt).

What we were telling apt is that it should trust this source even if the
Releases file and the repository is unsigned. This is better captured
with `allow_unsigned` and better highlights the danger of what you're
doing, installing packages from a source we cannot authenticate.

9 years agoMerge pull request #451 from puppetlabs/daenney/consolidate-include
Morgan Haskel [Thu, 5 Mar 2015 19:10:20 +0000 (11:10 -0800)]
Merge pull request #451 from puppetlabs/daenney/consolidate-include

apt::source: Merge `include_*` options into hash.

9 years agoapt::source: Merge `include_*` options into hash.
Daniele Sluijters [Thu, 5 Mar 2015 16:37:51 +0000 (17:37 +0100)]
apt::source: Merge `include_*` options into hash.

This makes its behaviour similar to the `update`, `proxy` and `purge`
hashes on the main classes bringing its API more in line with the rest
of the module.

9 years agoMerge pull request #450 from puppetlabs/daenney/guard-lsb-facts
Morgan Haskel [Tue, 3 Mar 2015 17:38:29 +0000 (09:38 -0800)]
Merge pull request #450 from puppetlabs/daenney/guard-lsb-facts

apt::params: Complete $xfacts.

9 years agoapt::params: Complete $xfacts.
Daniele Sluijters [Tue, 3 Mar 2015 17:07:48 +0000 (18:07 +0100)]
apt::params: Complete $xfacts.

`$xfacts` now contains and guards all `lsb*` facts. Looking up any
`lsb*`-related fact should now always be done through `$::apt::xfacts`
to ensure that the values are always set to either the value of the fact
or undef. This avoids all sorts of kerfuffles with strict variables.

9 years agoMerge pull request #449 from puppetlabs/daenney/fix-strict-vars
Morgan Haskel [Tue, 3 Mar 2015 16:54:27 +0000 (08:54 -0800)]
Merge pull request #449 from puppetlabs/daenney/fix-strict-vars

apt: Fix all strict variable cases.

9 years agoapt: Fix all strict variable cases.
Daniele Sluijters [Mon, 2 Mar 2015 21:40:06 +0000 (22:40 +0100)]
apt: Fix all strict variable cases.

A few of these fixes are absolutely horrendous but we have no choice as
we need to stay current- and future-parser compatible for now.

Once we can go Puppet 4 only we can use the `$facts` hash lookup instead
which will return undef/nil for things that aren't set instead of them
not being defined at all.

9 years agoMerge pull request #448 from puppetlabs/daenney/kill-file-perms
Morgan Haskel [Mon, 2 Mar 2015 19:53:53 +0000 (11:53 -0800)]
Merge pull request #448 from puppetlabs/daenney/kill-file-perms

apt::setting: Remove file_perms.

9 years agoapt::setting: Remove file_perms.
Daniele Sluijters [Mon, 2 Mar 2015 19:37:01 +0000 (20:37 +0100)]
apt::setting: Remove file_perms.

This was a great idea but is pretty pointless. It's also not being used
by anything and not exposed as a switch on the main class so it would
almost never affect any behaviour.

9 years agoMerge pull request #447 from puppetlabs/daenney/hulk-smash-2
Morgan Haskel [Mon, 2 Mar 2015 18:10:37 +0000 (10:10 -0800)]
Merge pull request #447 from puppetlabs/daenney/hulk-smash-2

It's been a long time - how have you been

9 years agoapt::key: Be explicit about the keyserver.
Daniele Sluijters [Sun, 1 Mar 2015 13:42:39 +0000 (14:42 +0100)]
apt::key: Be explicit about the keyserver.

The behaviour of passing down undef through multiple layers gets fuzzy
so for now be explicit about the keyserver.

Once Puppet 4 is out and this behaviour has been crystallised and tested
we can revisit it.

9 years agoapt::key: Rename $key to $id to match apt_key.
Daniele Sluijters [Sun, 1 Mar 2015 13:18:48 +0000 (14:18 +0100)]
apt::key: Rename $key to $id to match apt_key.

9 years agoapt::source: Allow passing in a complex key.
Daniele Sluijters [Sat, 28 Feb 2015 17:02:23 +0000 (18:02 +0100)]
apt::source: Allow passing in a complex key.

Turn `$key` into something that accepts a string or a hash of four keys
representing the different options that can be passed on to `apt::key`.

9 years agoapt(::key|_key) Remove the `key.*_` prefixes.
Daniele Sluijters [Sat, 28 Feb 2015 16:35:25 +0000 (17:35 +0100)]
apt(::key|_key) Remove the `key.*_` prefixes.

Remove a lot of the redundant `key_` prefixes on `apt::key` and the
`keyserver_` prefix on `apt_key`.

9 years agoapt: Add settings, keys and ppas.
Daniele Sluijters [Sat, 28 Feb 2015 16:04:47 +0000 (17:04 +0100)]
apt: Add settings, keys and ppas.

* Allow any configuration of apt to be done through data bindings by
  passing in hashes representing the resources.
* Switch apt::ppa to use `distid` as set in `apt::params. This makes
  `apt::ppa` also work for LinuxMint.

9 years agoapt: Change how update is managed.
Daniele Sluijters [Sat, 28 Feb 2015 15:48:48 +0000 (16:48 +0100)]
apt: Change how update is managed.

* Instead of having 4 options controlling purging we now have a single
  hash with four possible keys.
* Include `apt::update` only _after_ we've assembled the `$_update`
  hash.