Commit graph

703 commits

Author SHA1 Message Date
Ashley Penney
3a4432ad73 Merge pull request #294 from apenney/14x-merge
14x merge
2014-05-14 13:18:18 -04:00
Ashley Penney
7492f375fe Merge branch '1.4.x' into 14x-merge 2014-05-14 13:17:19 -04:00
Oliver Chick
2cdcd3b06d Implement fancy progress bars configuration.
Ubuntu 14.04 ships with apt 0.9.15, has a ``fancy progress bar'', which
is a green bar that shows at the bottom of the terminal showing progress
throughout install.

This patch enables the progress bar, which is usually done by running
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
2014-05-14 12:02:37 +01:00
Ashley Penney
a45c9a8b58 Merge pull request #292 from daenney/test-puppet-35
Drop testing on 3.3, add 3.5.
2014-05-08 10:44:11 -04:00
Daniele Sluijters
b7bd7f43d9 Drop testing on 3.3, add 3.5. 2014-05-08 09:54:08 +02:00
Ashley Penney
d33a4c103f Merge pull request #290 from dpnl87/wheezy-preference-fix
Do not add bogus line to apt preference file on Debian Wheezy
2014-05-05 11:54:52 -04:00
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
84cee791c3 Merge pull request #286 from apenney/fix-for-post-wheezy
unattended_upgrades: Fix matching security archive
2014-04-22 20:46:55 -04:00
Daniele Sluijters
156eaac061 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-04-23 00:36:40 +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
Lauren Rother
c230e21c1d Add security warning re: short keys
(cherry picked from commit d7da1cef38)
2014-04-07 12:26:39 -07: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
f3bd430fa7 Merge pull request #267 from apenney/fix-typo
Fix typo
2014-03-13 13:53:50 -07:00
Ashley Penney
7d058e95d8 Fix typo.
Group was incorrectly spelt, but because the file was absent this
should have resulted in a noop in practice.
2014-03-13 20:03:09 +00: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