David Schmitt
85af3d8aa3
Fix syntax error
2016-07-27 18:35:58 +01:00
Hunter Haugen
360f04dcc1
(MODULES-3414) Limit non-strict parsing to pre-3.5.0 only
...
Puppet 3.5.0 introduced strict variables and the module handles strict
variables by using the defined() function. This does not work on prior
versions of puppet so we must gate based on that version.
Puppet 4 series has a new setting `strict` that may be set to enforce
strict variables while `strict_variables` remains unset (see PUP-6358)
which causes this conditional to erroniously use non-strict 3.5-era
parsing and fail.
The new conditional corrects the cases such that strict variable
behavior happens on versions 3.5.0 and later.
2016-07-27 08:39:42 -07:00
Nick Berard
fcdd54de1d
Replaced -s
with -f
in ppa rspec tests
...
See 38263ac768
. The previous commit makes the tests fail.
2016-07-05 17:31:21 -07:00
OKUMURA Takahiro
459f515879
Fix regexp for $ensure params
...
/\Aabsent|present\Z/ match wrong values like 'absentaaa' or 'aaapresent'.
And add tests to the context of 'invalid ensure'.
2016-06-05 18:44:25 +09:00
David Schmitt
4a39afa703
Update tests to use the pool servers instead of ubuntu's
...
Using the ubuntu keyserver causes stability issues during CI runs,
hopefully the pool servers are less fragile.
2016-05-24 20:00:13 +01:00
David Schmitt
fff34ecad3
Remove useless, failing test; cleanup whitespace
2016-05-24 12:20:49 +01:00
David Schmitt
1e1e4b566e
Use hkps.pool.sks-keyservers.net instead of pgp.mit.edu
...
The MIT server is sometimes unreliable during tests. The pool should
provide a much stabler service.
2016-05-24 12:20:49 +01:00
Helen Campbell
b30cded624
Removal of a breaking test for Xenial
2016-05-23 17:02:26 +01:00
Philipp Wagner
e651d7d25c
Install software-properties-common for xenial
...
Instead of adding every newer release of Ubuntu, let's assume that the
package name that is used today will be used in the future, until the
next change is necessary.
2016-05-02 13:53:09 +02:00
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
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
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
matt.cover
08c8b58264
MODULES-2873 - Avoid duplicate package resources when package_manage => true
2016-02-02 08:54:43 -07:00
David Schmitt
10a8e79e7f
(FM-4049) Update to current msync configs [2c99161]
2016-01-27 14:53:40 +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
Andreas Mauf
6698cbe94b
MODULES-2889 - remove unneeded whitespace in source.list template
2015-12-14 10:20:40 +01: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
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
Morgan Haskel
9f43b2db26
MODULES-2446 - Fix pinning for backports
...
The 2.x series added a changed behavior for backport pinning to pin to
origin instead of release. Pinning to release is the correct behavior
for backports though.
2015-08-26 16:29:54 -07:00
Brett Delle Grazie
9ad4fd682d
MODULES-2269: Expose notify_update setting
...
* Expose the underlying notify_update setting of the apt::settings resource
This is because not all configuration file changes should trigger an apt::update notification
* apt::pin also shouldn't result in an apt-update call
Adding a pin configuration should apply to the next apt-get update call it shouldn't trigger one itself.
* Added documentation
* Add tests for apt::conf notify_update
2015-08-16 19:16:36 +01:00
Callahan, Michael Joseph
afa4d45ee9
Added an ensure parameter for user control of proxy presence. Defaults to undef to resist breaking any current setup.
...
added spec entry
Added validation
fixed ensure hash
2015-08-05 16:03:28 -04:00
Daniele Sluijters
2cf089576d
Merge pull request #545 from raoulbhatia/master
...
Use Debian's new official mirrors redirector
2015-07-23 14:10:47 +02:00
Morgan Haskel
cd37fc34f2
MODULES-2190 - Fix anchor issues
2015-07-21 10:19:15 -07:00
Raoul Bhatia
b8462bdc43
Use Debian's new official mirrors redirector
...
See https://www.debian.org/News/weekly/2015/05/#httpredir
2015-07-05 09:17:12 +02:00
Morgan Haskel
74bb26d148
hashes are not supported in selectors
2015-06-17 14:56:22 -07:00
Morgan Haskel
a09dcafb32
typo
2015-06-17 13:24:49 -07:00
Morgan Haskel
8d98105774
Don't add puppetlabs sources for lucid
...
They no longer exist
2015-06-17 11:59:40 -07:00
Hunter Haugen
40c130c4cf
Add helper to install puppet/pe/puppet-agent
2015-06-11 16:53:42 -07:00
Justin Stoller
6dba810090
(maint) allow setting PUPPET_VERSION in acceptance
2015-06-08 21:50:05 -07:00
Morgan Haskel
396f308e6a
Compatibility between 1.8.x and 2.x for apt::source
2015-06-08 11:19:45 -07:00
Morgan Haskel
d50fef82e8
Make apt::key compatible with 1.8.x
2015-06-04 09:41:27 -07:00
Hunter Haugen
48152d4a89
Don't stub puppetversion
...
The puppetversion fact still needs to represent puppet's version that is being used to test
2015-05-06 15:10:05 -07:00
Morgan Haskel
1be2560e1e
Stubbing File.file? is hard
2015-04-30 12:54:37 -07:00
Morgan Haskel
fe9741fe1d
Merge pull request #505 from puppetlabs/install-lsb-release
...
Clear up lsb-release error
2015-04-29 15:38:38 -07:00
Daniele Sluijters
1318344500
Give clearer instructions around lsb-release
2015-04-29 21:04:27 +02:00
Dustin Lactin
6e51be76ea
Added new apt_reboot_required fact, updated readme, and added unit tests
2015-04-29 11:36:51 -06:00
Morgan Haskel
21a2462a58
Compatibility for puppet < 3.5.0
2015-04-27 13:48:41 -07:00
Morgan Haskel
fff702270e
Update tests to work with rspec-puppet 2.x
...
Also enable future parser testing. Need to allow failures with future
parser for now since none of the published gems have the fix for
PUP-4379
2015-04-22 16:40:48 -07:00
Morgan Haskel
2802868f96
Iterate through multiple keys
2015-04-20 12:44:42 -07:00
Morgan Haskel
3a20254108
Don't purge by default. That seems unnecessarily destructive.
2015-04-14 11:03:17 -07:00
Daniele Sluijters
fe60980781
apt::conf: Don't require content ensure=>absent
.
2015-04-14 12:41:57 +02:00