Commit graph

303 commits

Author SHA1 Message Date
David Schmitt
3717ce92ad Update to newest modulesync_configs [9ca280f] 2016-04-18 20:15:09 +01:00
TP Honey
015009d553 Merge pull request #596 from danielhoherd/master
Expose notify_update to apt::source
2016-04-12 10:46:39 +01:00
TP Honey
c04cd01290 Merge pull request #599 from DavidS/fix-strict-var-testing
Fix STRICT_VARIABLE testing
2016-04-07 19:09:05 +01:00
David Schmitt
5e0128cc86 (maint) clean up key_compat_specs 2016-04-07 18:33:55 +01:00
David Schmitt
c4899127ee (maint) Update ke_compat_spec to run under STRICT_VARIABLES 2016-04-07 18:31:58 +01:00
Hunter Haugen
00a21076d7 Merge pull request #581 from robinelfrink/master
Make apt_updates facts use /usr/bin/apt-get.
2016-04-07 10:13:46 -07:00
Daniel Hoherd
91092bdc80 Exposing notify_update to apt::source 2016-03-18 10:08:30 -07:00
David Schmitt
541585668b (FM-4046) Update to current msync configs [006831f]
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
2016-02-16 16:33:21 +00:00
Robin Elfrink
ebf9d9f6a6 Make apt_updates facts use /usr/bin/apt-get.
/usr/lib/update-notifier/apt-check is not available on all systems,
but /usr/bin/apt-get is.
2016-02-12 23:21:28 +01:00
Philipp Wagner
a02654e36c Look for correct sources.list.d file for apt::ppa
In Ubuntu 15.10 the path of the apt sources file, which is generated by
apt-add-repository, changed to include the distid. This breaks apt::ppa
idempotency, since it does not recognize the repository is already
added.

Reported on puppet-users as well:
https://groups.google.com/forum/#!topic/puppet-users/YzeMyZYUo98
2016-02-03 17:24:06 +01:00
Philipp Wagner
4d66d23bec Ensure PPAs in tests have valid form
"man apt-add-repository" notes: "REPOSITORY can be either a line that
can be added directly to sources.list(5), in the form ppa:<user>/<ppa-name>
for adding Personal  Package  Archives".

Fix the tests to always use the format ppa:<user>/<ppa-name> when adding
PPAs.
2016-02-03 17:15:00 +01:00
matt.cover
08c8b58264 MODULES-2873 - Avoid duplicate package resources when package_manage => true 2016-02-02 08:54:43 -07:00
David Schmitt
10a8e79e7f (FM-4049) Update to current msync configs [2c99161] 2016-01-27 14:53:40 +00:00
Tim Bishop
7fa207e335 Handle PPA names that contain a plus character.
It looks like add-apt-repository changes pluses to underscores when
creating the sources.list.d file. So the name it creates doesn't match
what Puppet expects, and the resource keeps applying on every Puppet
run.

This works around that problem.
2016-01-19 10:38:47 +00:00
Andreas Mauf
6698cbe94b MODULES-2889 - remove unneeded whitespace in source.list template 2015-12-14 10:20:40 +01:00
David Schmitt
2778c8588e Merge pull request #564 from rfdrake/apt_pin
Add support for creating pins from main class
2015-09-07 12:11:31 +01:00
Robert Drake
0dce05adae Add support for creating pins from main class
This lets you create apt::pin resources as an apt param hash.  It also
supplies appropriate tests and documentation.
2015-09-04 22:31:13 -04:00
Vincent
a531b2b424 Corrected regression with preference files name
Signed-off-by: Vincent Deygas <Vincent.Deygas@rewardgateway.com>
2015-09-02 12:06:16 +01:00
Morgan Haskel
9f43b2db26 MODULES-2446 - Fix pinning for backports
The 2.x series added a changed behavior for backport pinning to pin to
origin instead of release. Pinning to release is the correct behavior
for backports though.
2015-08-26 16:29:54 -07:00
Brett Delle Grazie
9ad4fd682d MODULES-2269: Expose notify_update setting
* Expose the underlying notify_update setting of the apt::settings resource
This is because not all configuration file changes should trigger an apt::update notification
* apt::pin also shouldn't result in an apt-update call
Adding a pin configuration should apply to the next apt-get update call it shouldn't trigger one itself.
* Added documentation
* Add tests for apt::conf notify_update
2015-08-16 19:16:36 +01:00
Callahan, Michael Joseph
afa4d45ee9 Added an ensure parameter for user control of proxy presence. Defaults to undef to resist breaking any current setup.
added spec entry

Added validation

fixed ensure hash
2015-08-05 16:03:28 -04:00
Daniele Sluijters
2cf089576d Merge pull request #545 from raoulbhatia/master
Use Debian's new official mirrors redirector
2015-07-23 14:10:47 +02:00
Morgan Haskel
cd37fc34f2 MODULES-2190 - Fix anchor issues 2015-07-21 10:19:15 -07:00
Raoul Bhatia
b8462bdc43 Use Debian's new official mirrors redirector
See https://www.debian.org/News/weekly/2015/05/#httpredir
2015-07-05 09:17:12 +02:00
Morgan Haskel
74bb26d148 hashes are not supported in selectors 2015-06-17 14:56:22 -07:00
Morgan Haskel
a09dcafb32 typo 2015-06-17 13:24:49 -07:00
Morgan Haskel
8d98105774 Don't add puppetlabs sources for lucid
They no longer exist
2015-06-17 11:59:40 -07:00
Hunter Haugen
40c130c4cf Add helper to install puppet/pe/puppet-agent 2015-06-11 16:53:42 -07:00
Justin Stoller
6dba810090 (maint) allow setting PUPPET_VERSION in acceptance 2015-06-08 21:50:05 -07:00
Morgan Haskel
396f308e6a Compatibility between 1.8.x and 2.x for apt::source 2015-06-08 11:19:45 -07:00
Morgan Haskel
d50fef82e8 Make apt::key compatible with 1.8.x 2015-06-04 09:41:27 -07:00
Hunter Haugen
48152d4a89 Don't stub puppetversion
The puppetversion fact still needs to represent puppet's version that is being used to test
2015-05-06 15:10:05 -07:00
Morgan Haskel
1be2560e1e Stubbing File.file? is hard 2015-04-30 12:54:37 -07:00
Morgan Haskel
fe9741fe1d Merge pull request #505 from puppetlabs/install-lsb-release
Clear up lsb-release error
2015-04-29 15:38:38 -07:00
Daniele Sluijters
1318344500 Give clearer instructions around lsb-release 2015-04-29 21:04:27 +02:00
Dustin Lactin
6e51be76ea Added new apt_reboot_required fact, updated readme, and added unit tests 2015-04-29 11:36:51 -06:00
Morgan Haskel
21a2462a58 Compatibility for puppet < 3.5.0 2015-04-27 13:48:41 -07:00
Morgan Haskel
fff702270e 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
2015-04-22 16:40:48 -07:00
Morgan Haskel
2802868f96 Iterate through multiple keys 2015-04-20 12:44:42 -07:00
Morgan Haskel
3a20254108 Don't purge by default. That seems unnecessarily destructive. 2015-04-14 11:03:17 -07:00
Daniele Sluijters
fe60980781 apt::conf: Don't require content ensure=>absent. 2015-04-14 12:41:57 +02:00
Morgan Haskel
d3ca10fd2f 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`
2015-04-13 10:35:19 -07:00
Morgan Haskel
044fb5faf5 Add testing, docs, and examples for backports 2015-04-12 11:25:47 -07:00
Daniele Sluijters
791012b2c9 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.
2015-04-09 15:44:20 -07:00
Morgan Haskel
dc746734f1 Merge remote-tracking branch 'upstream/master' into merge_master_to_next 2015-03-25 18:32:09 -04:00
Morgan Haskel
911c4de90f (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.
2015-03-24 18:18:14 -04:00
Daniele Sluijters
ff51f714ab Merge pull request #472 from mhaskel/acceptance_test_fixes
Acceptance test fixes
2015-03-19 10:16:15 +01:00
Morgan Haskel
df47ca7ff4 Remove update['always'] = true support
We don't really need both of `update['always'] = true` and
`update['frequency'] = 'always'`.
2015-03-18 13:52:12 -07:00
Morgan Haskel
f5c6775564 Make the acceptance tests work 2015-03-18 12:56:29 -07:00
Morgan Haskel
6bf1ac351f Update all the unit tests to look for full fingerprints
Merged #466 too quickly
2015-03-16 16:40:46 -07:00