Commit graph

1012 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
Daniele Sluijters
252bb9fef6 Merge pull request #595 from danielhoherd/master
Typo: missing colon
2016-03-17 10:53:42 +01:00
Daniel Hoherd
6bd04e4e49 Typo: missing colon 2016-03-16 17:58:08 -07:00
Hunter Haugen
1e45278668 Merge pull request #593 from puppetlabs/2.2.x
Mergeback 2.2.x
2016-02-29 13:52:36 -08:00
David Schmitt
eee0a6b1e7 Merge pull request #592 from HelenCampbell/2.2.2
Prep for 2.2.2 Release
2016-02-25 13:45:59 +00:00
Helen Campbell
0cdb62359e Prep for 2.2.2 Release 2016-02-25 12:50:12 +00:00
Helen
f2a78eae72 Merge pull request #590 from DavidS/debian-8-support
Update metadata to note Debian 8 support
2016-02-17 12:13:16 +00:00
David Schmitt
429f0dda8b Update metadata to note Debian 8 support 2016-02-17 11:52:31 +00:00
TP Honey
2ddc359793 Merge pull request #589 from DavidS/fm-4046-update-msync
(FM-4046) Update to current msync configs [006831f]
2016-02-16 17:04:03 +00: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
Bryan Jen
cc537070e8 Merge pull request #582 from imphil/master
Look for correct sources.list.d file for apt::ppa
2016-02-04 12:29:15 -07: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
Daniele Sluijters
ddd05418ae Merge pull request #588 from werekraken/modules2873
MODULES-2873 - Avoid multiple package resource declarations
2016-02-02 20:04:23 +01:00
matt.cover
08c8b58264 MODULES-2873 - Avoid duplicate package resources when package_manage => true 2016-02-02 08:54:43 -07:00
Helen
5e6ba08f21 Merge pull request #587 from jbondpdx/master
MODULES-2941: add example to README
2016-01-29 19:25:06 +00:00
jbondpdx
6fa0b9a382 MODULES-2941: added more info about replacing sources.list 2016-01-29 11:11:46 -08:00
jbondpdx
c70491dcef MODULES-2941: add example to README 2016-01-28 11:45:35 -08:00
Helen
7228f4d9af Merge pull request #585 from DavidS/fm-4049-update-msync
(FM-4049) update to modulesync_configs
2016-01-27 16:16:25 +00:00
David Schmitt
10a8e79e7f (FM-4049) Update to current msync configs [2c99161] 2016-01-27 14:53:40 +00:00
JT (Jonny)
bf92497e62 Merge pull request #583 from tdb/fix_ppa_pluses
Handle PPA names that contain a plus character.
2016-01-19 16:09:39 +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
Bryan Jen
7aa9778e4d Merge pull request #572 from twc-openstack/master-tempfile-race-condition
Fix apt_key tempfile race condition
2016-01-06 14:38:31 -07:00
Bryan Jen
efc728bfb5 Merge pull request #578 from phervieux/15.10
Add ubuntu 15.10 support
2015-12-15 10:25:01 -07:00
TP Honey
caf5f7a697 Merge pull request #577 from syseleven/pp-2587
fix whitespace in source.list
2015-12-14 11:27:00 +00:00
Andreas Mauf
6698cbe94b MODULES-2889 - remove unneeded whitespace in source.list template 2015-12-14 10:20:40 +01:00
Daniele Sluijters
79ab8af333 Merge pull request #575 from ryayon/master
MODULES-2861: run stages limitation added to the documentation.
2015-12-10 23:55:07 +01:00
Rudy YAYON
cf708a7aad MODULES-2861: run stages limitation added to the documentation 2015-12-10 11:22:22 +01:00
David Schmitt
72528a014c Merge pull request #576 from puppetlabs/2.2.x
Mergeback 2.2.x
2015-12-08 15:09:12 +00:00
Bryan Jen
61804c0324 Merge pull request #573 from HelenCampbell/release2.2.1
Release 2.2.1
2015-11-24 12:04:29 -07:00
Helen Campbell
c14f399659 Release 2.2.1 2015-11-24 15:28:07 +00:00
Clayton O'Neill
ea6a84f336 Fix apt_key tempfile race condition
The Ruby Tempfile class has a finalizer that removes the file when the
GC runs.  It's not predictible when the GC will run, so you have to
ensure that the instance of the class stays in scope for as long as you
need it.

Unfortunately the tempfile method is returning just the filename of the
temporary file, which means it goes out of scope when that method
returns.  This allows the GC to reap it at any time after return.

In both CI and production environments we've seen this race fail,
causing apt-key add to fail a small (2-3%) amount of the time.

This changes the tempfile and source_to_file methods to return the
underlying Tempfile object, pushing it up into the caller's scope.  Both
of the callers immediately use the object to get its filename and then
open the file, eliminating the race.

Tested this by adding 'GC.start; sleep(1)' immediately before the
command is run, to give the GC plenty of time to remove the tempfile if
it was going to.
2015-11-12 14:09:52 +00:00
Patrick Hervieux
b11a45ec69 Add 15.10 support 2015-11-04 16:48:22 +01:00
Bryan Jen
99ea865f43 Merge pull request #569 from DavidS/improve-readme
(MAINT) improve hiera description
2015-10-09 12:21:53 -07:00
David Schmitt
68693418f4 (MAINT) improve hiera description 2015-10-09 13:07:32 +01:00
Hunter Haugen
68deeb6791 Merge pull request #567 from puppetlabs/2.2.x
Mergeback 2.2.x to master
2015-09-29 09:47:13 -07:00
Hunter Haugen
800c8cc1b2 Merge pull request #566 from bmjen/2.2.0-prep
Release prep for 2.2.0
2015-09-25 16:28:11 -07:00
Bryan Jen
a7d0f9fb31 Release prep for 2.2.0 2015-09-25 16:07:57 -07: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
Morgan Haskel
ff37b84980 Merge pull request #562 from RewardGateway/preference_file_name
Corrected regression with preference files name
2015-09-02 13:26:28 -07: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
Bryan Jen
418820adf3 Merge pull request #560 from mhaskel/MODULES-2446
MODULES-2446 - Fix pinning for backports
2015-08-26 16:45:09 -07:00