Commit graph

484 commits

Author SHA1 Message Date
Daniel Paulus
f62678b22e Add dpaulus to the contributors list 2014-05-05 14:39:25 +02:00
Daniel Paulus
ee0233066e Some code cleaning 2014-05-05 12:06:39 +02:00
Daniel Paulus
15630989da Fixed acceptance spec and add debian nodeset 2014-05-05 11:57:42 +02:00
Daniel Paulus
c327d3d7bf Testing if we are not touching the preference file when purge mode is off 2014-05-03 00:13:17 +02:00
Daniel Paulus
36b7b8abff Updated readme to indicate danger of setting preference purge options 2014-05-03 00:06:23 +02:00
Daniel Paulus
e337a24389 Remove the preference file for all supported platforms when in purge mode 2014-05-02 23:35:54 +02:00
Daniel Paulus
d3d6fde6e7 Do not add bogus line to apt preference file on Debian Wheezy 2014-05-02 17:56:06 +02:00
Ashley Penney
dcac07e034 Merge pull request #285 from blkperl/fix_metadata
Fix metadata.json file
2014-04-17 13:00:50 -04:00
Ashley Penney
4c7150a5be Add back in missing fields to work around Puppet bug.
(cherry picked from commit dc47271716)
2014-04-15 15:20:25 -07:00
Ashley Penney
4c8a99b9eb Prepare metadata for supported module release.
(cherry picked from commit ab03a989df)
2014-04-15 15:20:25 -07:00
Ashley Penney
81a3f9d60c Merge pull request #283 from johanfleury/master
Change proxy's configuration file to be consistent with other config files in apt.conf.d
2014-04-12 14:37:40 -04:00
Johan Fleury
9e789255c8 Writing proxy configuration in apt.conf.d/01proxy.
This commit changes the proxy file name to be more consistent with other files
in `apt.conf.d`. The old file (`apt.conf.d/proxy`) is removed.

Tests has been updated.
2014-04-11 13:56:29 +02:00
Ashley Penney
d946753dc4 Merge pull request #282 from laurenrother/security
Add security warning re: short keys
2014-04-07 14:06:47 -04:00
Lauren Rother
d7da1cef38 Add security warning re: short keys 2014-04-07 11:05:11 -07:00
Ashley Penney
dfa3a62bd8 Merge pull request #280 from daenney/fix-pin-comments
Fix pin comments
2014-04-03 13:59:51 -04:00
Ashley Penney
3e5668b015 Merge pull request #281 from daenney/unattended-upgrades-squeeze-origins
unattended-upgrades: Fix origins for Squeeze.
2014-04-03 13:59:15 -04:00
Daniele Sluijters
fefd530362 unattended-upgrades: Fix origins for Squeeze.
Because Squeeze is now oldstable we need to add an oldstable line too
otherwise security updates won't be picked up. This is still because we
can't match on codename.
2014-04-02 11:17:04 +02:00
Daniele Sluijters
13788395e6 pin: caller_module_name is not a topscope variable 2014-03-28 08:49:18 +01:00
Daniele Sluijters
9f59f1b33a pin: Fix the template.
In APT preferences files the only allowed comments are lines that start
with `Explanation:`, commented lines that start with a # trigger a
myriad of interesting bugs. This is considered a feature of APT.

Because we're only ever writing a single file at a time with only a #
comment at the top we were getting away with this but it shouldn't be
there in the first place.
2014-03-28 08:47:19 +01:00
Ashley Penney
543f0ccefa Merge pull request #279 from apenney/fix-spacing
Small patch to fix the spacing that makes lint fail.
2014-03-27 12:43:27 -04:00
Ashley Penney
553611b16b Small patch to fix the spacing that makes lint fail. 2014-03-27 16:40:36 +00:00
Ashley Penney
b958fa2595 Merge pull request #278 from daenney/fix-unattended-upgrades
unattended_upgrades: Fix matching security archive
2014-03-27 08:59:51 -04:00
Daniele Sluijters
eaebe2f82d unattended_upgrades: Fix matching security archive
The default configuration we were writing for Debian was only working
for Squeeze, from Wheezy and onwards this wasn't working anymore. This
has to do with the fact that we should now be using Origins-Pattern
according to the unattended-upgrades docs. However, Ubuntu didn't
entirely get with the program yet...

This change reflects the defaults that unattended-upgrade installs on
every platform we support. In order to do so the unattended-upgrades
Debian archive for Squeeze, Wheezy, Lucid, Precise and Trusty were
downloaded and the default /etc/apt/apt.conf.d/50unattended-upgrades
checked for its content with regard to using Allow-Origins or
Origins-Pattern.

Fixes #277
2014-03-27 13:56:25 +01:00
Hunter Haugen
9ebbeae2ec Merge pull request #275 from daenney/backports-pin-priority
backports: Allow setting a custom priority.
2014-03-26 14:53:26 -07:00
Daniele Sluijters
ed52e513db backports: Allow setting a custom priority.
The module used to always pin backports to a priority of 200. This
default is still retained but is now configurable.

Additionally the default is now an Integer, not a 'quoted Integer' and
the tests have been updated to reflect this. This matters for future
parser as it will now kick people if they pass in a stringified integer
as priority.
2014-03-26 19:10:37 +01:00
Hunter Haugen
83cd22eee1 Merge pull request #276 from blkperl/fix_rake
Pin Rake to 10.1.1 in Gemfile
2014-03-26 11:08:14 -07:00
William Van Hevelingen
68ef68363d Pin Rake to 10.1.1 in Gemfile
The latest Rake update requires Ruby >= 1.9. This update
fixes the failing 1.8.7 tests by pinning Rake to the last
supported version on ruby 1.8.7.
2014-03-26 10:53:15 -07:00
Hunter Haugen
c864e5e09b Merge pull request #274 from fdrouet/fix_typo
Fix typo in ppa.pp
2014-03-26 09:56:49 -07:00
Frédéric DROUET
f546dc2d37 Fix typo in ppa.pp 2014-03-20 23:09:07 +01:00
Hunter Haugen
4d8f69d2cc Merge pull request #268 from daenney/apt_key-ftp-weirdness
Use File.expand_path with require.
2014-03-17 10:03:22 -07:00
Daniele Sluijters
cc1f9c8bb9 Use File.expand_path with require.
For some reason, even though our own tests pass with `require
puppet_x/apt_key/patch_openuri` every other module that depends on
puppetlabs-apt is now breaking in tests claiming it can't load that
module.

Somewhere along the way something is probably messing with LOADPATH
causing this to trip up. This should fix the issues for everyone.

This commit affects:
 * puppetlabs/puppetlabs-apt#229
 * puppetlabs/puppetlabs-postgresql#391
2014-03-16 12:51:33 +01:00
Hunter Haugen
6691c2fade Merge pull request #248 from electrical/fix_params_fail
Fix fail message
2014-03-07 10:00:58 -08:00
Ashley Penney
6f10890dad Merge pull request #263 from daenney/remove-puppet-27
Remove testing for Puppet 2.7 compatibility.
2014-03-07 12:35:55 -05:00
Daniele Sluijters
e299f66262 Remove testing for Puppet 2.7 compatibility.
With official supported modules now being a thing and having a version
of the APT module to which we will backport fixes until the next major
release it is time to say goodbye to Puppet 2.7.

So long and thanks for all the fish.
2014-03-07 18:32:37 +01:00
Ashley Penney
ccc2c5fa0e Merge pull request #262 from daenney/shrink-test-matrix
Remove ancient Puppet versions from matrix.
2014-03-07 12:24:20 -05:00
Daniele Sluijters
411ef1b0db Remove ancient Puppet versions from matrix.
With PE 3.2 out of the door shipping with 3.4.3 I think it's time to
shrink the matrix and get rid of 3.1 and 3.2. PE 3.x customers should
just upgrade to 3.2, OS users should really be on 3.3+ by now.
2014-03-07 16:10:54 +01:00
Richard Pijnenburg
4d0bf7cbab Fail early when its not debian or ubuntu ( or debian like distro ) 2014-03-07 16:03:44 +01:00
Hunter Haugen
4d2819f7f4 Merge pull request #193 from ianunruh/feature/retry-update
Added retry to update operation
2014-03-06 09:52:44 -08:00
Ian Unruh
7b932be82c Updated documentation 2014-03-05 16:01:37 -06:00
Ian Unruh
824da679d4 Added retry to update operation 2014-03-05 15:59:21 -06:00
Hunter Haugen
a35c30fe4b Merge pull request #209 from pabl0/proxy
Make apt.conf.d/proxy world readable and add a newline
2014-03-05 11:15:26 -08:00
Hunter Haugen
de095a173f Merge pull request #249 from ghoneycutt/define_apt_source_in_hiera
Add ability to specify hash of apt sources in hiera
2014-03-05 11:06:43 -08:00
Ashley Penney
c8c7659b0b Merge pull request #258 from sodabrew/patch-1
Add Ubuntu Trusty
2014-03-05 13:17:12 -05:00
Ashley Penney
3917e080f3 Merge pull request #259 from daenney/apt-hold
apt::hold: Add a mechanism to hold a package.
2014-03-05 13:16:38 -05:00
Ashley Penney
791be559ba Merge pull request #260 from daenney/zomg-ze-chars
pin: Replace invalid chars with _ in file names.
2014-03-05 13:16:24 -05:00
Daniele Sluijters
b560fa265f pin: Replace invalid chars with _ in file names.
This needs to be merged for #259 to work.
2014-03-05 19:11:13 +01:00
Ashley Penney
ab6f6d3146 Merge pull request #230 from daenney/apt-key-defined
Rework apt::key to use apt_key.
2014-03-05 12:54:02 -05:00
Ashley Penney
ba0c733744 Merge pull request #261 from hunner/remove_autorelease
Remove autorelease
2014-03-05 12:17:55 -05:00
Hunter Haugen
722c419825 Remove autorelease 2014-03-05 09:14:39 -08:00
Daniele Sluijters
b2ae1cb08d Update the README about apt_key and apt::key. 2014-03-05 15:04:18 +01:00