Commit graph

131 commits

Author SHA1 Message Date
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
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
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
Daniele Sluijters
519babcfb6 apt::hold: Add a mechanism to hold a package.
I am aware this can be done with `dpkg --set-selections`, `apt-mark`
or `ensure => 'held'` on a package resource. The changes to the README
include the full rationale for wanting another mechanism.
2014-03-05 10:13:42 +01:00
Daniele Sluijters
5790341890 apt:🔑 Redo apt::key, make it use apt_key.
Introducing a totally rewritten and tested apt::key. This commit also
patches the spec's of apt::source because it was passing in data that
is no longer allowed by the new validation rules in apt::key.

It does its best to not touch any other specs and where we touch them
only minimally to ensure that we're not introducing breaking changes.
2014-03-04 16:39:58 +01:00
Hunter Haugen
fd3e07e58f Merge branch '1.4.x' 2014-02-26 14:13:57 -08:00
Daniel Tremblay
46606c9a2b Add ability to specify hash of apt sources in hiera
This patch uses create_resources() to call apt::source which lets you
specify your sources in hiera.
2014-02-26 09:15:37 -05:00
Hunter Haugen
0a645c53ff Pin quotes were removed for a Lucid bugfix 2014-02-25 11:34:12 -08:00
Henrik Ahlgren
eb40a7ae78 Make apt.conf.d/proxy world readable and add a newline 2014-02-25 19:57:10 +02:00
Martin Konrad
2a2620f597 Update out-of-date Debian signing key in remaining files.
(cherry picked from commit 3aa293a53f)
2014-02-25 09:47:37 -08:00
Matt Callaway
bffef4142a Update pin_spec test to match quote removal.
(cherry picked from commit d28dc494aa)
2014-02-25 09:43:47 -08:00
Hunter Haugen
1853951c0f Merge pull request #226 from mark0n/master
Update out of date Debian signing key for backports
2014-02-25 09:34:00 -08:00
Hunter Haugen
7875745a8b Merge pull request #216 from genome-vendor/master
Remove the quotes from the "origin" line.
2014-02-25 09:29:15 -08:00
Hunter Haugen
cb53175dbb Merge pull request #229 from daenney/apt-key-ftp
apt_key: Support fetching keys over FTP.
2014-02-25 09:27:51 -08:00
Hunter Haugen
01cff19fa8 Merge pull request #240 from daenney/manage-preferences
apt: Allow managing of preferences file.
2014-02-25 09:25:49 -08:00
Ashley Penney
450fadb86a Add lsbdistid facts where appropriate.
(cherry picked from commit 4d188443bc)
2014-02-24 17:17:17 -08:00
Ashley Penney
4d188443bc Add lsbdistid facts where appropriate. 2014-02-24 22:31:16 +00:00
Ashley Penney
0a93286ff8 Merge pull request #241 from hunner/add_unsup
Add non Debian os family unsupported test.
2014-02-24 16:53:41 -05:00
Hunter Haugen
f6816c6bb3 Add non Debian os family unsupported test. 2014-02-24 13:52:13 -08:00
Hunter Haugen
944f9d5064 Merge branch '1.4.x' 2014-02-24 13:36:48 -08:00
Daniele Sluijters
2ca97c8210 apt: Allow managing of preferences file.
We already had a feature to manage and purge entries in preferences.d
but not the preferences file in /etc/apt. This commit adds that
capability.

Fixes #199
2014-02-22 11:00:22 +01:00
Hunter Haugen
afeaf57126 Use smaller build-dep package 2014-02-21 11:55:16 -08:00
Hunter Haugen
e2b7ef2da2 Using rspec filters works better
And this will make merging back to master cleaner
2014-02-21 11:45:21 -08:00
Hunter Haugen
d0b8ed8f64 Merge pull request #237 from hunner/change_port
Port 8080 is a bad choice and bumps into puppetdb
2014-02-21 11:32:10 -08:00
Hunter Haugen
8453d40138 Missed the - for -y, but also tests were missing lsbdistid 2014-02-21 09:34:46 -08:00
Daniele Sluijters
c3b3f5bb42 apt_key: Support fetching keys over FTP. 2014-02-21 09:06:47 +01:00
Hunter Haugen
904fb4a293 Don't pass options to ppa on lucid
Lucid (10.04) has `add-apt-repository` but it doesn't accept any
options. The define defaulted to `-y` but this changes that on lucid.

This was made 7 months ago, so apparently no one cares about 10.04 any
more.
2014-02-20 16:43:48 -08:00
Ashley Penney
296fdd2173 Make sure we handle PE properly. 2014-02-19 20:01:12 +00:00
Ashley Penney
bafc11df76 Make sure we handle PE properly. 2014-02-19 19:52:05 +00:00
Martin Konrad
3aa293a53f Update out-of-date Debian signing key in remaining files. 2014-02-18 16:57:01 -05:00
Daniele Sluijters
374101612c Add a type and provider to manage apt keys.
This commits introduces:
 * The apt_key type;
 * The apt_key provider;
 * Unit tests for the type;
 * Beaker/acceptance tests for the type/provider.

The idea behind apt_key is that apt::key will simply become a wrapper
that uses apt_key. Being a native type/provider apt_key is a lot less
error prone than the current exec behaviour of apt::key and adds a few
nice bonuses like inventory capabilities for mcollective users.
2014-02-18 22:51:08 +01:00
Matt Callaway
d28dc494aa Update pin_spec test to match quote removal. 2014-02-18 08:08:19 -06:00
Daniele Sluijters
ffe55a9758 beaker: Randomize SSH port. 2014-02-16 14:51:39 +01:00
Daniele Sluijters
ef7d149d5a apt::pin: Allow for packages to be an array. 2014-02-16 14:51:39 +01:00
Hunter Haugen
3be1f4323f Merge pull request #224 from hunner/change_port
Port 8080 is a bad choice and bumps into puppetdb
2014-02-14 16:40:13 -08:00
Hunter Haugen
80ea5a72ca Port 8080 is a bad choice and bumps into puppetdb 2014-02-14 16:17:44 -08:00
Hunter Haugen
4b8aa9e55a Revert "Undo backwards-incompatible changes and features."
This reverts commit f9e2fe2a7c.
2014-02-14 14:49:43 -08:00
Hunter Haugen
398309fc37 Enforce dependency version in tests 2014-02-14 14:34:37 -08:00
Hunter Haugen
3876813845 Add foss types to nodesets 2014-02-14 14:34:08 -08:00
Hunter Haugen
f9e2fe2a7c Undo backwards-incompatible changes and features.
Undoes the parameter changes in #140 and #184
2014-02-14 14:33:30 -08:00
Ashley Penney
1ce7dbb4c3 Merge pull request #208 from apenney/ppa-debian
Ensure apt::ppa fails on non-Ubuntu.
2014-01-09 15:28:20 -08:00
Ashley Penney
04ca249ee0 Fixes to make the tests run under Debian as well as Ubuntu. 2014-01-09 18:26:32 -05:00
Ashley Penney
558954bedf Ensure apt::ppa fails on non-Ubuntu. 2014-01-09 14:35:17 -05:00
Ashley Penney
c2f0ed219e Improve apt::force tests and ensure cleanup happens consistently. 2014-01-09 14:26:59 -05:00
Ashley Penney
16e57d4e45 Add additional acceptance testing.
This work adds a test for every parameter in every class/define in apt.
2014-01-09 12:09:22 -05:00
Ashley Penney
661c6731d7 Convert existing tests over to beakr-rspec. 2014-01-06 17:39:48 -05:00
Ryan Tandy
38c0208673 change include_class to contain_class in specs
include_class was deprecated starting from rspec-puppet 1.0.0.
2013-12-06 08:33:05 -08:00
Ashley Penney
9d32257f85 Merge pull request #188 from sd63/fix_regex_warning
escape more braces properly
2013-12-03 14:54:25 -08:00
Marco Nenciarini
935d3ce15b Fix the name of sources.list.d file resource in apt::ppa 2013-12-02 13:40:22 +01:00