Commit graph

703 commits

Author SHA1 Message Date
Morgan Haskel
dfdcfa0255 1.7.0 prep 2014-10-27 15:29:47 -04:00
Colleen Murphy
7c71390cd1 Merge pull request #377 from mhaskel/1.7.x-merge
Merge master back into 1.7.x
2014-10-27 08:54:24 -07:00
Morgan Haskel
2fdad79f74 Fix tests to reflect behavior fixed on 1.7.x
The facts don't really work with 2>&1 in the case of an error, so you
want 2>/dev/null instead.
2014-10-27 10:10:52 -04:00
Morgan Haskel
20ddb67714 Merge remote-tracking branch 'upstream/master' into 1.7.x-merge
Conflicts:
	lib/facter/apt_package_updates.rb
	lib/facter/apt_security_updates.rb
	lib/facter/apt_updates.rb
2014-10-27 09:57:46 -04:00
Travis Fields
bc7601dfed Fix issue with puppet_module_install, removed and using updated method from beaker core copy_module_to 2014-10-27 09:49:27 -04:00
Hunter Haugen
97556124da Remove stderr from stdout
Sometimes there are lib errors on platforms with malformed packages.
This shouldn't cause the facts to completely fail.
2014-10-27 09:49:27 -04:00
Raoul Bhatia
15fad7ec11 Fix "WARNING: case statement without a default case on line ..." 2014-10-24 12:59:15 +02:00
Raoul Bhatia
fb9b9185e4 Fix "WARNING: indentation of => is not properly aligned on line 9" 2014-10-24 12:50:43 +02:00
Raoul Bhatia
7f3acf40f9 Add "oldstable" to the default update origins for wheezy
Add "oldstable" to the default update origins to ensure
the updates keep working after wheezy+1 gets released

See unattended-upgrades 0.79.5+wheezy1 and https://bugs.debian.org/711826
2014-10-24 12:50:43 +02:00
Daniele Sluijters
5d96da0c6a Merge pull request #375 from raphink/dev/facts_perfs
Refactor facts to improve performance.
2014-10-16 10:07:25 +02:00
Raphaël Pinson
d090ae4ebb Refactor facts to improve performance:
* Add an apt_has_updates boolean fact
* Make other facts depend on it
2014-10-15 15:44:50 +02:00
Daniele Sluijters
be3abffb0e README: the facts depend on update-notifier 2014-10-14 13:42:59 +02:00
Daniele Sluijters
2b84dd142e Merge pull request #374 from bschlief/random_sleep
Add support for RandomSleep to 10periodic
2014-10-14 09:12:18 +02:00
Bryan M. Schlief
a6b560c9b4 Add support for RandomSleep to 10periodic 2014-10-13 14:19:11 -07:00
Daniele Sluijters
6619ad843f Merge pull request #372 from jbondpdx/revised-readme
DOC-249: Revised and updated apt readme
2014-10-08 17:24:49 -07:00
Hunter Haugen
d24c568779 Merge pull request #373 from mhaskel/metadata
Update pe compatibility
2014-10-08 15:19:32 -07:00
Morgan Haskel
b10415be63 Update pe compatibility 2014-10-08 18:18:39 -04:00
jbondpdx
b2c40388e5 DOC-249 Revised and updated apt readme
Revised and updated apt readme. Post-merge-conflict edition.
2014-10-08 11:09:54 -07:00
Colleen Murphy
3a8a5f75b8 Merge pull request #371 from mhaskel/force-yes
add --force-yes so deb7 doesn't hang
2014-10-07 09:37:06 -07:00
Morgan Haskel
c5edc86c3c add --force-yes so deb7 doesn't hang 2014-10-06 19:44:19 -04:00
Colleen Murphy
ac15a0e2f4 Merge pull request #369 from mhaskel/future_parser
Missed one case for _kick_apt needed for strict variables
2014-10-06 13:53:17 -07:00
Morgan Haskel
049e993511 Missed one case for _kick_apt needed for strict variables 2014-10-06 16:41:14 -04:00
Hunter Haugen
4b66a64940 Merge pull request #368 from mhaskel/future_parser
Fix for future parser support
2014-10-03 16:36:21 -07:00
Morgan Haskel
c41e71d0c2 Fix for future parser support 2014-10-03 19:30:33 -04:00
Hunter Haugen
873e49478d Merge pull request #367 from mhaskel/deb6_apt-key_workaround
apt-key doesn't add long keys in deb6
2014-10-02 15:37:17 -07:00
Morgan Haskel
a3d4822920 apt-key doesn't add long keys in deb6
You can feed the command the long key, but it truncates it to add the
key. This causes issues due to the short-key collision with the
puppetlabs key. So, test with a different key on debian 6.
2014-10-02 17:21:46 -05:00
Hunter Haugen
73867f03b5 Merge pull request #366 from mhaskel/fix_unit_tests
We aren't truncating in the type
2014-10-01 11:55:20 -07:00
Morgan Haskel
febda27623 We aren't truncating in the type
So don't check for truncated IDs in the type test.
2014-10-01 13:46:14 -05:00
Hunter Haugen
1e1f61a636 Merge pull request #365 from mhaskel/long_key_support
Don't truncate to short keys in the type
2014-10-01 11:43:09 -07:00
Morgan Haskel
87f3f1023c Don't truncate to short keys in the type
You should be able to create/delete keys using the long key to avoid
collisions, and truncating in the type makes that not work.
2014-10-01 13:40:25 -05:00
Morgan Haskel
43b894b12e Merge pull request #349 from wolfspyre/apt_update_tooling
Apt update tooling
2014-09-26 15:01:16 -04:00
Wolf Noble
7a192d7bea - add bits for updating apt
- fix spec tests to include osfamily fact
- add spec tests to verify current default behavior unimpacted.
- manage the update-stamp file in puppet via content rather than a served file.
- update custom fact to return -1 if the file doesn't exist
- add spec test for custom fact
- refactor to use a variable vs a collector/override
- document parameters a bit more verbosely
- remove empty unconstrained fact
- Add osfamily fact to backports tests to facilitate functional tests on non-debian hosts
2014-09-24 16:29:27 -07:00
Daniele Sluijters
761a4d26c7 Fix a test that broke with #326. 2014-09-24 15:27:06 -07:00
Daniele Sluijters
dde7f4e819 Merge pull request #326 from dabido/master
Builddep notifies apt-get update instead of requiring it
2014-09-24 15:01:17 -07:00
Morgan Haskel
483a0f86ab Merge pull request #363 from martinseener/ticket/1306-apt_force_fails_if_new_package_asks_how_to_handle_changed_config_files
apt::force: Added 2 parameters for automatic configuration file handling...
2014-09-24 14:58:13 -07:00
Martin Seener
93567aef4a apt::force: Added 2 parameters for automatic configuration file handling; fixes #modules-1306
when updating or installing newer packages with apt::force and you have changed previous
configuration files aptitude or apt-get will prompt what to do. You can suppress that
by pre-define the action with cfg_files parameter (new, old or unchanged and its backward
compatible if not defined). With a second optional parameter cfg_missing you can force
your provider to install missing configuration files as well.

Signed-off-by: Martin Seener <martin@seener.de>

apt::force: Changed selectors used in force.pp to case statements; refs #module-1306

Signed-off-by: Martin Seener <martin@seener.de>

apt::force: rspec: fixed the failing tests and added validate_re for cfg_files and validate_bool for cfg_missing. Also removed default values for both case statements and only allow pre-defined values or true/false. Furthermore enhanced the README refs #module-1306

Was able to fix the failing rspec tests for the patch.
Thanks to Morgan Haskel.

Signed-off-by: Martin Seener <martin@seener.de>

Despite the puppetlabs-stdlib documentation says validation_re supports 3 arguments the tests failed telling that only 2 are supported. Fixed this by removing the 3 optional argument; refs #modules-1306

Signed-off-by: Martin Seener <martin.seener@barzahlen.de>

apt::force: updated readme refs #module-1306

Signed-off-by: Martin Seener <martin@seener.de>
2014-09-22 19:53:45 +02:00
Travis Fields
932c3a7e6b Merge pull request #362 from jbondpdx/apt-readme
MODULES-1259: added info on apt::update + edits to readme.md
2014-09-17 09:06:38 -07:00
jbondpdx
67f6355c2d MODULES-1259: added info on apt::update + edits to readme.md
Added apt::update information to the Readme file. Also general copy editing throughout for clarity and consistent style.
2014-09-16 16:51:24 -07:00
Morgan Haskel
622a05ab88 Merge pull request #360 from mhaskel/test
Merge 1.6.x into master
2014-09-15 14:27:27 -07:00
Morgan Haskel
6540b7ba24 Merge branch '1.6.x' into test 2014-09-12 17:24:49 -04:00
Daniele Sluijters
df8f80aedb Merge pull request #359 from haus/ticket/master/doc_1230_update_example_keys
(DOC-1230) Update all short key examples to use the long key id
2014-09-10 22:25:17 +02:00
Matthaus Owens
db556a0a5a (DOC-1230) Update all short key examples to use the long key id 2014-09-10 13:21:07 -07:00
Morgan Haskel
b99d713ea2 Merge pull request #358 from cyberious/1.6.x
Fix issue with puppet_module_install, removed and using updated method f...
2014-09-10 13:44:23 -04:00
Travis Fields
8fa73ac96f Fix issue with puppet_module_install, removed and using updated method from beaker core copy_module_to 2014-09-10 10:37:07 -07:00
Daniele Sluijters
0e804448a9 Merge pull request #357 from cmurphy/unpin-puppetlint
Unpin puppet-lint
2014-09-08 11:09:24 +02:00
Colleen Murphy
d92513261b Unpin puppet-lint
The issues associated with the 1.0.0 release of puppet-lint have been
resolved.
2014-09-07 11:12:28 -07:00
Daniele Sluijters
29e6e09d7a Merge pull request #350 from cmurphy/master
Remove Puppet 2.7 from travis matrix
2014-09-07 11:56:32 +02:00
Daniele Sluijters
bc55471caa Merge pull request #353 from Smartesting/add-support-for-linuxmint-operatingsystem
add support for LinuxMint operating system
2014-09-07 11:56:08 +02:00
Daniele Sluijters
32e2b6c480 Merge pull request #356 from digitalmediacenter/fix_puppet_lint_errors
Fix some Puppet Lint errors
2014-09-05 19:23:01 +02:00
Matthias Baur
1044886150 Fix some Puppet Lint errors 2014-09-05 18:51:39 +02:00