Commit graph

585 commits

Author SHA1 Message Date
Ashley Penney
9d32257f85 Merge pull request #188 from sd63/fix_regex_warning
escape more braces properly
2013-12-03 14:54:25 -08:00
Ashley Penney
c561ad44e1 Merge pull request #191 from mnencia/patch-1
Update ppa.pp
2013-12-02 09:13:04 -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
Ryan Tandy
0001a03cd9 escape more braces properly
Fixes a couple of rspec regex warnings.
2013-11-21 09:37:11 -08:00
Garrett Honeycutt
a2105b08e0 Use include instead of parameterized class when no params are given.
Instead of perpetuating the use of parameterized classes, which we do
not want to do in light of Puppet v3 with Hiera integration, this change
invites people to use 'include' instead of the parameterized class
syntax when no params are present.
2013-11-21 15:33:00 +01:00
Garrett Honeycutt
8ac668a3aa Correct spelling typo in CHANGELOG 2013-11-21 15:31:31 +01:00
Ashley Penney
b549f7b848 Merge pull request #184 from RsrchBoy/topic/removable-ppas
add an 'ensure' parameter to apt::ppa
2013-11-18 14:51:45 -08:00
Ashley Penney
a66915e85e Merge pull request #185 from dalen/retry
Retry package installs
2013-11-14 04:53:48 -08:00
Erik Dalén
7a8e3d00f9 Retry package installs
Sometimes package installs can fail to aquire the lock file, so retry
the command in that case.
2013-11-14 11:02:18 +01:00
Chris Weyl
3499896505 add an 'ensure' parameter to apt::ppa
...as sometimes we want to get rid of them. :)

We leave this a little loose; rather than simply requiring a boolean for
$ensure, we set the stage for doing an easy switch to also allowing 'purge' at
some point in the future.
2013-11-08 16:54:11 -08:00
Ashley Penney
a350da7604 Merge pull request #182 from stefanvanwouw/master
apt::source templates/sources.list.erb generates invalid source line when architecture is provided.
2013-10-23 07:13:55 -07:00
Stefan van Wouw
67e8968fe0 Fixed tests for fe594950c5
We actually expect an extra space. The previous build failed because a test is issued for location='', which indeed results in 2 spaces between the architecture specification and the release. According to the sources.list man page a location is always required though (unlike the missing/empty location in the :default_params of the source_spec test).
2013-10-23 12:29:47 +02:00
Stefan van Wouw
fe594950c5 If architecture is provided, an invalid source line is generated (no space between location and architecture) 2013-10-23 11:22:33 +02:00
Ashley Penney
1ad70436d5 Merge pull request #178 from apenney/getparam-removal
getparam() isn't available in all stdlib versions.
2013-10-16 14:37:33 -07:00
Ashley Penney
33064128b9 getparam() isn't available in all stdlib versions.
There's no need for getparam() here when a regular variable works
just fine.
2013-10-16 13:08:03 -04:00
Ashley Penney
d1e87d4774 Merge pull request #140 from hunner/apt_force
Handling of release parameter and apt provider in force manifest
2013-10-15 10:45:17 -07:00
Ashley Penney
924e89289b Merge pull request #173 from apenney/140-release
Prepare 1.4.0 release.
2013-10-15 10:44:04 -07:00
Ashley Penney
6d01635dbd Merge pull request #175 from lkoranda/patch-1
Fixed double-space typo
2013-10-14 07:43:58 -07:00
lkoranda
7dd4a14848 Fixed tests for cf04f76 2013-10-14 14:27:17 +02:00
lkoranda
cf04f76e17 Fixed double-space typo
This bug has been introduced in 1.2.0 - b3d67c8
2013-10-14 13:22:47 +02:00
Ashley Penney
547d7ad96a Prepare 1.4.0 release. 2013-10-08 11:10:08 -07:00
Ashley Penney
3913f6cacc Merge pull request #172 from apenney/fix-ppa
This work flips from onlyif to unless (mistakenly looked at the
2013-10-08 10:57:12 -07:00
Ashley Penney
39cbeeb9d2 This work flips from onlyif to unless (mistakenly looked at the
wrong return code).
2013-10-08 10:50:30 -07:00
Ashley Penney
e3907061fd Merge pull request #170 from apenney/metadata
FM-103: Add metadata.json to all modules.
2013-10-04 16:17:38 -07:00
Ashley Penney
245b2b1783 FM-103: Add metadata.json to all modules. 2013-10-04 15:52:41 -04:00
Ashley Penney
42b2cd3d61 Merge pull request #169 from apenney/fix_ppa.pp
This switches us to doing a `test -s` instead of checking for the
2013-10-02 12:06:32 -07:00
Ashley Penney
ee24679f6d Fix other tests to include apt appropriately. 2013-10-02 14:46:00 -04:00
Ashley Penney
2f9c16a273 This switches us to doing a test -s instead of checking for the
files existence as add-apt-repository --remove leaves a 0 byte file
behind instead of deleting everything properly.
2013-10-02 14:46:00 -04:00
Ashley Penney
bb5fcad152 Merge pull request #168 from apenney/rspec-system
Add initial rspec-system tests.
2013-10-02 10:01:49 -07:00
Ashley Penney
621111ee73 Add initial rspec-system tests.
This covers:

apt::builddep
apt::key
apt::ppa
apt::source
apt
2013-10-02 12:49:22 -04:00
Ashley Penney
5c49633f4f Merge pull request #167 from madeddie/master
add an updates_timeout option to apt::params (PR fix)
2013-10-02 06:07:05 -07:00
Edwin Hermans
c07ab505c1 add an updates_timeout option to apt::params (PR fix) 2013-10-02 14:24:30 +02:00
Hunter Haugen
3e3de6ee92 Merge pull request #162 from apenney/130-release
Prepare 1.3.0 release.
2013-09-17 10:25:30 -07:00
Ashley Penney
3442c49e26 Prepare 1.3.0 release. 2013-09-17 10:20:23 -04:00
Ashley Penney
ef781c77fd Merge pull request #153 from drbop/drbop_unattended_upgrades
Class for managing unattended-upgrades
2013-09-16 16:18:41 -07:00
Dan Carley
e0926f370d [#153] Remove trailing whitespace from spec. 2013-09-16 13:57:44 +01:00
Dan Carley
dc88fe6ef6 [#153] Install unattended configs after package
To ensure that the default configs from the package are always overwritten
within a single Puppet run.
2013-09-16 13:57:44 +01:00
Dan Carley
f90805dafd [#153] Test defaults for some unattended params
For params which have any logic embedded in the template:

- origins
- blacklist
- mail_to
- dl_limit
2013-09-16 13:57:44 +01:00
Dan Carley
f185a57cd6 [#153] Variablise file paths in unattended spec
Reduce some duplication of long file paths.
2013-09-16 13:57:32 +01:00
Dan Carley
ea40999381 [#153] Convert t/f params to bools and validate
Per lint check: http://puppet-lint.com/checks/quoted_booleans/
2013-09-16 09:06:15 +01:00
Dan Carley
2fea399a09 [#153] Rename unattended_upgrades s/-/_/
It's preferable to use underscores rather than hyphens in class names. Refs:

- http://projects.puppetlabs.com/issues/5268
- http://docs.puppetlabs.com/puppet/3/reference/lang_reserved.html#classes-and-types
2013-09-16 08:53:01 +01:00
Philip Cohoe
ee047f6593 Added spec test for unattended-upgrades class 2013-09-13 23:39:09 +00:00
Philip Cohoe
df3ba6469c Added class for managing unattended-upgrades 2013-09-10 18:36:30 +00:00
Ashley Penney
ec79335527 Merge pull request #156 from rculbertson/master
Fixed several lint warnings and errors
2013-09-05 05:40:10 -07:00
Ryan Culbertson
d0e478533c removing unnecessary backslashes 2013-09-05 00:28:53 -04:00
Ryan Culbertson
e97942f2d6 Fixed several lint warnings and errors 2013-09-04 17:32:42 -04:00
Hunter Haugen
c0872c04a9 Merge pull request #150 from bionix/use_http_debian_net_as_geodns_redirector
Use the geoDNS http.debian.net instead of the main debian ftp server
2013-08-05 13:59:19 -07:00
Hunter Haugen
4917309a7e Merge pull request #149 from bionix/add_wheezy_backports
Add wheezy backports support
2013-08-05 13:58:47 -07:00
Hunter Haugen
7bc6d07788 Merge pull request #151 from hunner/proxy_exec_spec
Update specs for #145
2013-08-05 13:58:28 -07:00
Hunter Haugen
5db24d8e33 Update specs for #145 2013-08-05 13:41:25 -07:00