puppet-modules/puppetlabs-apt.git
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.

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

* Instead of having 4 options controlling purging we now have a single
  hash with four possible keys.
* We purge everything by default.
* `/etc/apt/preferences` is now always managed.
* Add missing `mode` to some of the files.

9 years agoMerge pull request #446 from puppetlabs/daenney/apt-proxy
Morgan Haskel [Fri, 27 Feb 2015 21:09:07 +0000 (13:09 -0800)]
Merge pull request #446 from puppetlabs/daenney/apt-proxy

apt: Add proxy support on the class.

9 years agoapt: Add proxy support on the class.
Daniele Sluijters [Fri, 27 Feb 2015 11:34:05 +0000 (12:34 +0100)]
apt: Add proxy support on the class.

Re-introduce proxy support at the class level. Needing to configure a
proxy is such a common scenario that having it on the class is a
reasonable thing. It also affects `apt::ppa`.

Change `apt::ppa` to no longer have its own `proxy` parameter but use
the proxy as configured on the main `apt` class.

9 years agospec/(apt|ppa): Enough with all the strings.
Daniele Sluijters [Fri, 27 Feb 2015 11:07:56 +0000 (12:07 +0100)]
spec/(apt|ppa): Enough with all the strings.

Most options can and should be named through symbols, makes it much
easier to read too with syntax highlighting.

9 years agoMerge pull request #445 from mhaskel/updates_everywhere
Daniele Sluijters [Fri, 27 Feb 2015 08:01:38 +0000 (09:01 +0100)]
Merge pull request #445 from mhaskel/updates_everywhere

Make apt::setting notify Exec['apt_update'] by default

9 years agoMake apt::setting notify Exec['apt_update'] by default
Morgan Haskel [Thu, 26 Feb 2015 20:44:06 +0000 (12:44 -0800)]
Make apt::setting notify Exec['apt_update'] by default

Can be disabled by setting `notify_update => false`

9 years agoMerge pull request #444 from puppetlabs/daenney/parse-setting-from-name
Morgan Haskel [Thu, 26 Feb 2015 19:27:38 +0000 (11:27 -0800)]
Merge pull request #444 from puppetlabs/daenney/parse-setting-from-name

apt::setting: Parse type and name from title.

9 years agoapt::setting: Parse type and name from title.
Daniele Sluijters [Thu, 26 Feb 2015 18:12:53 +0000 (19:12 +0100)]
apt::setting: Parse type and name from title.

Instead of having two additional parameters, `base_name` and
`setting_type` simply parse it from `title`.

We need to prefix most resources with `list-`, `conf-`, or `pref-` any
way to avoid duplicate resources so we might as well leverage that.

9 years agoMerge pull request #443 from mhaskel/proxy_updates
Daniele Sluijters [Thu, 26 Feb 2015 17:00:17 +0000 (18:00 +0100)]
Merge pull request #443 from mhaskel/proxy_updates

proxy_* params were removed from class apt

9 years agoMerge pull request #441 from mhaskel/use_setting
Daniele Sluijters [Thu, 26 Feb 2015 17:00:02 +0000 (18:00 +0100)]
Merge pull request #441 from mhaskel/use_setting

Convert to use apt::setting instead of file resource

9 years agoConvert to use apt::setting instead of file resources
Morgan Haskel [Tue, 24 Feb 2015 22:57:31 +0000 (14:57 -0800)]
Convert to use apt::setting instead of file resources

This adds consistency across the module

9 years agoproxy_* params were removed from class apt
Morgan Haskel [Wed, 25 Feb 2015 01:03:50 +0000 (17:03 -0800)]
proxy_* params were removed from class apt

Add them to PPA since they were being used there, and add a placeholder
example for setting up the proxy files.

9 years agoMerge pull request #442 from mhaskel/add_base_name
Daniele Sluijters [Wed, 25 Feb 2015 17:22:37 +0000 (18:22 +0100)]
Merge pull request #442 from mhaskel/add_base_name

Add base_name parameter to apt::setting

9 years agoMerge pull request #440 from mhaskel/fix_setting_validation
Daniele Sluijters [Wed, 25 Feb 2015 17:22:04 +0000 (18:22 +0100)]
Merge pull request #440 from mhaskel/fix_setting_validation

Allow priorities to be zero-padded

9 years agoAdd base_name parameter to apt::setting
Morgan Haskel [Tue, 24 Feb 2015 23:51:41 +0000 (15:51 -0800)]
Add base_name parameter to apt::setting

This allows you to work around duplicate resource issues when you have
settings of different types with the same name. When the files are built
it is path/${priority}${base_name}${extension}.

9 years agoAllow priorities to be zero-padded
Morgan Haskel [Tue, 24 Feb 2015 21:53:25 +0000 (13:53 -0800)]
Allow priorities to be zero-padded

9 years agoMerge pull request #439 from mhaskel/rspec3
Daniele Sluijters [Wed, 25 Feb 2015 07:45:30 +0000 (08:45 +0100)]
Merge pull request #439 from mhaskel/rspec3

Convert specs to RSpec 3.1.7 syntax with Transpec

9 years agoMerge pull request #438 from puppetlabs/daenney/cant-touch-params-nanananana
Morgan Haskel [Wed, 25 Feb 2015 00:14:23 +0000 (16:14 -0800)]
Merge pull request #438 from puppetlabs/daenney/cant-touch-params-nanananana

apt::params: Make the class private.

9 years agoConvert specs to RSpec 3.1.7 syntax with Transpec
Morgan Haskel [Tue, 24 Feb 2015 21:20:29 +0000 (13:20 -0800)]
Convert specs to RSpec 3.1.7 syntax with Transpec

This conversion is done by Transpec 3.0.8 with the following command:
    transpec spec/classes spec/defines spec/unit

* 87 conversions
    from: it { should ... }
      to: it { is_expected.to ... }

* 14 conversions
    from: obj.should
      to: expect(obj).to

* 7 conversions
    from: == expected
      to: eq(expected)

* 1 conversion
    from: it { should_not ... }
      to: it { is_expected.not_to ... }

For more details: https://github.com/yujinakayama/transpec#supported-conversions

9 years agoapt::params: Make the class private.
Daniele Sluijters [Tue, 24 Feb 2015 20:43:36 +0000 (21:43 +0100)]
apt::params: Make the class private.

Prevent direct access to apt::params. This will ensure that any other
module cannot blindly access apt::params and get settings that have been
potentially overridden at the apt level.

Our own module still can since any class in apt has a module_name of
'apt' but that's up to us to prevent from happening.

Every setting must now be accessed by a qualified lookup into the apt
namespace.

9 years agoMerge pull request #437 from fraenki/fix_example
Daniele Sluijters [Tue, 24 Feb 2015 13:48:20 +0000 (14:48 +0100)]
Merge pull request #437 from fraenki/fix_example

fix hiera example in documentation

9 years agofix hiera example in documentation
Frank Wall [Tue, 24 Feb 2015 13:38:43 +0000 (14:38 +0100)]
fix hiera example in documentation

9 years agoMerge pull request #433 from mhaskel/ppa
Daniele Sluijters [Mon, 23 Feb 2015 19:21:10 +0000 (20:21 +0100)]
Merge pull request #433 from mhaskel/ppa

PPA Cleanup, pt 1

9 years agoPPA Cleanup, pt 1
Morgan Haskel [Fri, 20 Feb 2015 22:25:53 +0000 (14:25 -0800)]
PPA Cleanup, pt 1

Make the code much cleaner, but don't make a t&p.

9 years agoMerge pull request #432 from mhaskel/source_cleanup
Daniele Sluijters [Sat, 21 Feb 2015 23:30:36 +0000 (00:30 +0100)]
Merge pull request #432 from mhaskel/source_cleanup

Cleanup for `apt::source`

9 years agoConvert apt::source to use apt::setting
Morgan Haskel [Sat, 21 Feb 2015 20:11:57 +0000 (12:11 -0800)]
Convert apt::source to use apt::setting

May as well use the define since we added it

9 years agoCleanup for `apt::source`
Morgan Haskel [Thu, 19 Feb 2015 23:35:47 +0000 (15:35 -0800)]
Cleanup for `apt::source`

* Update `release` to default to `$::lsbdistcodename`
* Default `include_src` to false
* Validate more things!
* Stop redefining variables from `apt::params`

9 years agoMerge pull request #435 from mhaskel/setting_fix
Daniele Sluijters [Sat, 21 Feb 2015 23:22:59 +0000 (00:22 +0100)]
Merge pull request #435 from mhaskel/setting_fix

Type is a reserved word in puppet 4

9 years agoMerge pull request #431 from mhaskel/local_variable_declarations
Daniele Sluijters [Sat, 21 Feb 2015 23:22:25 +0000 (00:22 +0100)]
Merge pull request #431 from mhaskel/local_variable_declarations

Stop redeclaring variables from params

9 years agoStop redeclaring variables from params
Morgan Haskel [Fri, 20 Feb 2015 19:15:23 +0000 (11:15 -0800)]
Stop redeclaring variables from params

It really seems unnecessary.

9 years agoType is a reserved word in puppet 4
Morgan Haskel [Sat, 21 Feb 2015 19:50:00 +0000 (11:50 -0800)]
Type is a reserved word in puppet 4

So replace `type` with `setting_type` in apt::setting

9 years agoMerge pull request #428 from puppetlabs/daenney/apt-setting
Morgan Haskel [Sat, 21 Feb 2015 19:40:05 +0000 (11:40 -0800)]
Merge pull request #428 from puppetlabs/daenney/apt-setting

apt: Add apt::setting defined type.

9 years agoapt: Add apt::setting defined type.
Daniele Sluijters [Fri, 20 Feb 2015 12:00:17 +0000 (13:00 +0100)]
apt: Add apt::setting defined type.

This is a 'base' type. It's a simple wrapper around a file which takes
`type`, `ensure`, `content`, `source` and `file_perms`. It is intended
for usage by `apt::conf`, `apt::source` and an upcoming `apt::pref`.

9 years agoMerge pull request #430 from mhaskel/fix_typo
Daniele Sluijters [Fri, 20 Feb 2015 21:06:50 +0000 (22:06 +0100)]
Merge pull request #430 from mhaskel/fix_typo

Fix typo from #426

9 years agoMerge pull request #429 from mhaskel/remove_include_update
Daniele Sluijters [Fri, 20 Feb 2015 21:06:29 +0000 (22:06 +0100)]
Merge pull request #429 from mhaskel/remove_include_update

Remove 'include apt::update'

9 years agoFix typo from #426
Morgan Haskel [Fri, 20 Feb 2015 18:55:47 +0000 (10:55 -0800)]
Fix typo from #426

Too many `$`s

9 years agoRemove 'include apt::update'
Morgan Haskel [Fri, 20 Feb 2015 18:47:35 +0000 (10:47 -0800)]
Remove 'include apt::update'

It is included in `class apt`, and there are no promises about anything
working without that.

9 years agoMerge pull request #426 from puppetlabs/daenney/fix-missing-param-and-naming
Morgan Haskel [Fri, 20 Feb 2015 00:41:27 +0000 (16:41 -0800)]
Merge pull request #426 from puppetlabs/daenney/fix-missing-param-and-naming

apt::params: Add two missing entries, use them.

9 years agoMerge pull request #427 from mhaskel/required_packages
Daniele Sluijters [Fri, 20 Feb 2015 00:10:45 +0000 (01:10 +0100)]
Merge pull request #427 from mhaskel/required_packages

RFC - Remove required packages

9 years agoapt::params: Add two missing entries, use them.
Daniele Sluijters [Thu, 19 Feb 2015 23:09:44 +0000 (00:09 +0100)]
apt::params: Add two missing entries, use them.

9 years agoRemove required packages
Morgan Haskel [Thu, 19 Feb 2015 23:39:14 +0000 (15:39 -0800)]
Remove required packages

I'm not entirely clear on the history behind this feature, and this
feels sort of hack-y. If you could explain why this is needed that would
be awesome, or if it isn't just merge this :)

9 years agoMerge pull request #425 from nibalizer/master
Morgan Haskel [Thu, 19 Feb 2015 21:57:41 +0000 (13:57 -0800)]
Merge pull request #425 from nibalizer/master

Remove travis badge

9 years agoRemove travis badge
Spencer Krum [Thu, 19 Feb 2015 21:55:24 +0000 (13:55 -0800)]
Remove travis badge

9 years agoMerge pull request #424 from mhaskel/hulk_smash
Daniele Sluijters [Thu, 19 Feb 2015 18:35:50 +0000 (19:35 +0100)]
Merge pull request #424 from mhaskel/hulk_smash

Hulk smash

9 years agoFix lint issue in examples
Morgan Haskel [Thu, 19 Feb 2015 16:26:30 +0000 (08:26 -0800)]
Fix lint issue in examples

9 years agoFix acceptance tests
Morgan Haskel [Wed, 18 Feb 2015 21:42:43 +0000 (13:42 -0800)]
Fix acceptance tests

9 years agoFix broken unit tests
Morgan Haskel [Wed, 18 Feb 2015 19:43:50 +0000 (11:43 -0800)]
Fix broken unit tests

9 years agoPlaceholders for needed examples
Morgan Haskel [Sun, 15 Feb 2015 19:17:12 +0000 (11:17 -0800)]
Placeholders for needed examples

9 years agoUpdate examples
Morgan Haskel [Sun, 15 Feb 2015 19:11:58 +0000 (11:11 -0800)]
Update examples

9 years agoGet rid of hold
Morgan Haskel [Sun, 15 Feb 2015 18:59:00 +0000 (10:59 -0800)]
Get rid of hold

9 years agoGet rid of release
Morgan Haskel [Sun, 15 Feb 2015 18:54:33 +0000 (10:54 -0800)]
Get rid of release

9 years agoGet rid of force
Morgan Haskel [Sun, 15 Feb 2015 18:52:57 +0000 (10:52 -0800)]
Get rid of force

9 years agoget rid of builddep
Morgan Haskel [Sun, 15 Feb 2015 18:45:25 +0000 (10:45 -0800)]
get rid of builddep

9 years agoMerge pull request #1 from puppet-community/daenney/remove_unattended_upgrades_remains
Morgan Haskel [Sun, 15 Feb 2015 18:41:54 +0000 (10:41 -0800)]
Merge pull request #1 from puppet-community/daenney/remove_unattended_upgrades_remains

Remove some vars for unattended_upgrades.

9 years agoRemove some vars for unattended_upgrades.
Daniele Sluijters [Sun, 15 Feb 2015 18:40:42 +0000 (19:40 +0100)]
Remove some vars for unattended_upgrades.

9 years agostop including params everywhere
Morgan Haskel [Sun, 15 Feb 2015 18:25:36 +0000 (10:25 -0800)]
stop including params everywhere

9 years agoRemove backports and debian
Morgan Haskel [Sun, 15 Feb 2015 18:22:37 +0000 (10:22 -0800)]
Remove backports and debian

9 years agomove tests to examples
Morgan Haskel [Sun, 15 Feb 2015 17:48:10 +0000 (09:48 -0800)]
move tests to examples

9 years agoGet rid of unattended upgrades and cleanup unused templates
Morgan Haskel [Sun, 15 Feb 2015 17:46:04 +0000 (09:46 -0800)]
Get rid of unattended upgrades and cleanup unused templates

9 years agoand an acceptance test
Morgan Haskel [Sun, 15 Feb 2015 17:41:20 +0000 (09:41 -0800)]
and an acceptance test

9 years agoUnbreak broken tests
Morgan Haskel [Sun, 15 Feb 2015 17:39:17 +0000 (09:39 -0800)]
Unbreak broken tests

9 years agoStarting to clean up init.pp
Morgan Haskel [Sun, 15 Feb 2015 17:09:47 +0000 (09:09 -0800)]
Starting to clean up init.pp

9 years agoMerge pull request #422 from cmurphy/lint
Daniele Sluijters [Fri, 13 Feb 2015 08:23:53 +0000 (09:23 +0100)]
Merge pull request #422 from cmurphy/lint

Ensure linter fails on lint warnings

9 years agoMerge pull request #421 from cmurphy/future
Daniele Sluijters [Fri, 13 Feb 2015 08:23:41 +0000 (09:23 +0100)]
Merge pull request #421 from cmurphy/future

Update spec tests for future parser

9 years agoEnsure linter fails on lint warnings
Colleen Murphy [Thu, 12 Feb 2015 00:43:14 +0000 (16:43 -0800)]
Ensure linter fails on lint warnings

9 years agoUpdate spec tests for future parser
Colleen Murphy [Thu, 12 Feb 2015 00:38:32 +0000 (16:38 -0800)]
Update spec tests for future parser

Strings must be quoted in the future parser.

9 years agoMerge pull request #389 from stdietrich/global_header_partial
Daniele Sluijters [Fri, 6 Feb 2015 21:10:41 +0000 (22:10 +0100)]
Merge pull request #389 from stdietrich/global_header_partial

(MODULES-1200) Fix inconsistent header across files

9 years ago(MODULES-1200) Fix inconsistent header across files
Stefan Dietrich [Sun, 31 Aug 2014 13:46:57 +0000 (15:46 +0200)]
(MODULES-1200) Fix inconsistent header across files

9 years agoMerge pull request #416 from mkrakowitzer/add_param_documentation
Daniele Sluijters [Wed, 4 Feb 2015 22:50:37 +0000 (23:50 +0100)]
Merge pull request #416 from mkrakowitzer/add_param_documentation

(doc) Add documentation for apt::key parameters and apt::pin parameters

9 years agoMerge pull request #418 from cmurphy/rspec
Hunter Haugen [Wed, 4 Feb 2015 20:04:17 +0000 (12:04 -0800)]
Merge pull request #418 from cmurphy/rspec

Pin rspec gems

9 years agoPin rspec gems
Colleen Murphy [Wed, 4 Feb 2015 16:02:03 +0000 (17:02 +0100)]
Pin rspec gems

9 years ago(doc) Add documentation for apt::key parameters and apt::pin parameters
Merritt Krakowitzer [Tue, 3 Feb 2015 16:59:54 +0000 (18:59 +0200)]
(doc) Add documentation for apt::key parameters and apt::pin parameters

Add documentation for apt::key parameters and apt::pin parameters.
Fix minor spelling error

9 years agoMerge pull request #414 from phaf/fix_doc_unattended_upgrades
Daniele Sluijters [Fri, 30 Jan 2015 13:22:18 +0000 (14:22 +0100)]
Merge pull request #414 from phaf/fix_doc_unattended_upgrades

Documentation: Fix typo and syntax for example of apt::unattended_upgrad...

9 years agoDocumentation: Fix typo and syntax for example of apt::unattended_upgrades
Patric Hafner [Thu, 29 Jan 2015 13:48:47 +0000 (14:48 +0100)]
Documentation: Fix typo and syntax for example of apt::unattended_upgrades

9 years agoMerge pull request #398 from irconan/backports-pin
Morgan Haskel [Wed, 28 Jan 2015 16:36:01 +0000 (08:36 -0800)]
Merge pull request #398 from irconan/backports-pin

Separate apt::pin for apt::backports to allow pin by release instead of ...

9 years agoSeparate apt::pin for apt::backports to allow pin by release instead of origin
Richard Connon [Sun, 14 Dec 2014 21:54:17 +0000 (21:54 +0000)]
Separate apt::pin for apt::backports to allow pin by release instead of origin

Updated tests for backports

9 years agoMerge pull request #395 from udienz/master
Morgan Haskel [Mon, 26 Jan 2015 22:26:13 +0000 (14:26 -0800)]
Merge pull request #395 from udienz/master

Add Ubuntu vivid (15.04) release

9 years agoMerge pull request #411 from mhaskel/trusted_fix
tphoney [Wed, 21 Jan 2015 19:14:33 +0000 (11:14 -0800)]
Merge pull request #411 from mhaskel/trusted_fix

Trusted will be a reserved word in Puppet 4

9 years agoTrusted will be a reserved word in Puppet 4
Morgan Haskel [Wed, 21 Jan 2015 18:54:37 +0000 (10:54 -0800)]
Trusted will be a reserved word in Puppet 4

Rename the new `trusted` parameter to `trusted_source`.

9 years agoMerge pull request #407 from mkrakowitzer/f3792625/trusted_param
Daniele Sluijters [Tue, 20 Jan 2015 21:05:44 +0000 (16:05 -0500)]
Merge pull request #407 from mkrakowitzer/f3792625/trusted_param

Add support for parameter trusted MODULES-1658

9 years agoMerge branch 'master' of https://github.com/puppetlabs/puppetlabs-apt into f3792625...
Merritt Krakowitzer [Tue, 20 Jan 2015 19:27:52 +0000 (21:27 +0200)]
Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-apt into f3792625/trusted_param

9 years agoMerge pull request #403 from WolverineFan/fix_apt_updates_facts
Daniele Sluijters [Tue, 20 Jan 2015 17:39:46 +0000 (12:39 -0500)]
Merge pull request #403 from WolverineFan/fix_apt_updates_facts

Fix apt_has_updates fact not parsing apt-check output correctly

9 years agoFix apt_has_updates fact not parsing apt-check output correctly
WolverineFan [Thu, 8 Jan 2015 05:45:43 +0000 (00:45 -0500)]
Fix apt_has_updates fact not parsing apt-check output correctly

The /usr/lib/update-notifier/apt-check script returns its output
to STDERR but a recent change to the script redirects STDERR to
/dev/null.  This will cause the array to always be empty.

Combined with that problem, while we were checking for the result
being nil, we never checked for an invalid array.  As a result,
the apt_has_updates was always true and the apt_updates and
apt_security_updates facts were trying to read from an empty array
and failing.

9 years agoMerge pull request #409 from cyberious/MOD1661
Colleen Murphy [Wed, 14 Jan 2015 16:25:47 +0000 (08:25 -0800)]
Merge pull request #409 from cyberious/MOD1661

MODULES-1661 Fix to do delete with short key not long

9 years agoMODULES-1661 Fix to do delete with short key not long
Travis Fields [Wed, 14 Jan 2015 07:43:13 +0000 (23:43 -0800)]
MODULES-1661 Fix to do delete with short key not long

9 years agoMerge pull request #408 from cyberious/MODULES-1661
Colleen Murphy [Wed, 14 Jan 2015 01:41:49 +0000 (17:41 -0800)]
Merge pull request #408 from cyberious/MODULES-1661

MODULES-1661 Fix issue with apt_key destroy, also added mutliple deletes

9 years agoMODULES-1661 Fix issue with apt_key destroy, also added mutliple deletes
Travis Fields [Tue, 13 Jan 2015 23:54:10 +0000 (15:54 -0800)]
MODULES-1661 Fix issue with apt_key destroy, also added mutliple deletes

9 years agoAdd support for parameter trusted
Merritt Krakowitzer [Tue, 13 Jan 2015 15:27:03 +0000 (17:27 +0200)]
Add support for parameter trusted

* Add support for paramater trusted, valid options are 'true' and false.
defaults to false. True sets the value to trusted=yes.

trusted=yes can be set to indicate that packages from this source are
always authenticated even if the Release file is not signed or the
signature can't be checked.

* Update documentation