Commit graph

67 commits

Author SHA1 Message Date
Patrick Gansterer
61a4fb6979 Fix gpg key checking warings after f588f26
Use the full fingerprint for all keys to silence the warning.
2015-03-16 19:34:24 +01:00
Morgan Haskel
399d3cae5a Update docs and test for $legacy_origin 2015-03-13 15:31:38 -07:00
Morgan Haskel
81bb96c898 Update docs and test for $legacy_origin 2015-03-13 14:56:53 -07:00
Mikko Pesari
3799e3a23c unattended_upgrades: Allow changing legacy_origin
This enables using Origins-Pattern in Ubuntu.
2015-03-13 14:50:16 -07:00
Morgan Haskel
97f70034c9 Merge pull request #459 from tphoney/modules-1675_check_gpg_version
initial commit for apt_key checking
2015-03-13 14:40:43 -07:00
Morgan Haskel
0c35704245 Make installation of software-properties optional
This is cherry-picked from the PPA cleanup happening for the 2.0.0 release.

Conflicts:
	manifests/params.pp
	manifests/ppa.pp
2015-03-13 13:38:38 -07:00
tphoney
f588f2651a initial commit for gpg key checking
better attempt at gpg version checking

adding in key length warning

removing version check, adding key check

adding tests

clean up the code

small changes

use commands

documentation updates
2015-03-12 18:25:26 +00:00
Frank Wall
08192b3927 fix hiera example in documentation 2015-02-24 14:38:43 +01:00
Spencer Krum
794740813d Remove travis badge 2015-02-19 13:55:24 -08:00
Merritt Krakowitzer
e8bef852ed (doc) Add documentation for apt::key parameters and apt::pin parameters
Add documentation for apt::key parameters and apt::pin parameters.
Fix minor spelling error
2015-02-03 18:59:54 +02:00
Patric Hafner
9545a85b06 Documentation: Fix typo and syntax for example of apt::unattended_upgrades 2015-01-29 14:48:47 +01:00
Morgan Haskel
3d25c08ec1 Trusted will be a reserved word in Puppet 4
Rename the new `trusted` parameter to `trusted_source`.
2015-01-21 10:54:37 -08:00
Merritt Krakowitzer
38582d02cd Add support for parameter trusted
* Add support for paramater trusted, valid options are 'true' and false.
defaults to false. True sets the value to trusted=yes.

trusted=yes can be set to indicate that packages from this source are
always authenticated even if the Release file is not signed or the
signature can't be checked.

* Update documentation
2015-01-13 17:41:20 +02:00
Daniele Sluijters
be3abffb0e README: the facts depend on update-notifier 2014-10-14 13:42:59 +02:00
Bryan M. Schlief
a6b560c9b4 Add support for RandomSleep to 10periodic 2014-10-13 14:19:11 -07: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
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
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
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
Matthaus Owens
db556a0a5a (DOC-1230) Update all short key examples to use the long key id 2014-09-10 13:21:07 -07:00
wilman0
538a9f9aab Update hold.pp
fix for default debian installations

all files in /etc/apt/preferences without _ will be silently ignore according to debian manpage. Addionally its not a good idea to write versionnumber in filename cause there is no way to delete this files if you increase versionumber

Update source_spec.rb

add a way to include debsrc only (useful for debian/ubuntu build server ... jenkins ect)

Update source_spec.rb

var rename

Update source.list.erb

add include_deb "switch"

Update source.pp

"include_deb" defaultvalue = true

Update hold_spec.rb

change the name of the preferences file (hold)

Update source_spec.rb

Update README.md

Doku: 'include_deb' included next to 'include_src' in examples

Update README.md

typo
2014-07-31 18:40:46 +02:00
Zachary Alex Stern
1a0406bf39 Fix readme typo. 2014-07-16 15:01:02 -07:00
Daniele Sluijters
943be409bd Merge pull request #319 from cloudbuy/master
add facts showing available updates
2014-06-27 14:28:19 +02:00
Damien Churchill
7eb9d00360 add facts showing available updates
Making use of the apt-check command from the 'update-notifier-common'
package (if available) display the number of available updates, number of
security updates as well as the update package names.
2014-06-27 11:21:58 +01:00
juniorsysadmin
d8df67f17f Update apt::source example in README.md for #311
This patch updates the apt::source example to include a comment (see #311)
2014-06-23 12:47:52 +10:00
Morgan Haskel
0da464de35 Merge pull request #287 from oc243/master
Implement fancy progress bars configuration.
2014-05-15 13:45:46 -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
Daniel Paulus
f62678b22e Add dpaulus to the contributors list 2014-05-05 14:39:25 +02:00
Daniel Paulus
36b7b8abff Updated readme to indicate danger of setting preference purge options 2014-05-03 00:06:23 +02: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
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
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
b2ae1cb08d Update the README about apt_key and apt::key. 2014-03-05 15:04:18 +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
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
Daniele Sluijters
b92eec5ea1 README: Fix white space / mixed indents.
(cherry picked from commit 47c8def0f7)
2014-02-25 09:48:54 -08:00
Daniele Sluijters
14bf004381 README/LICENSE: Fix licensing.
Closes #152

(cherry picked from commit 08c1283437)
2014-02-25 09:48:54 -08: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
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
Daniele Sluijters
47c8def0f7 README: Fix white space / mixed indents. 2014-02-21 18:43:18 +01:00
Daniele Sluijters
08c1283437 README/LICENSE: Fix licensing.
Closes #152
2014-02-21 18:43:18 +01:00
Martin Konrad
3aa293a53f Update out-of-date Debian signing key in remaining files. 2014-02-18 16:57:01 -05:00
Daniele Sluijters
ef7d149d5a apt::pin: Allow for packages to be an array. 2014-02-16 14:51:39 +01: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
Edwin Hermans
c07ab505c1 add an updates_timeout option to apt::params (PR fix) 2013-10-02 14:24:30 +02:00
Hunter Haugen
c00888f6d0 Merge pull request #131 from mbornoz/apt-preferences
apt::pin: handling all apt preferences properties
2013-07-01 17:46:24 -07:00
Mathieu Bornoz
62ba61fc3c Improve apt::pin example 2013-06-19 09:13:08 +02:00
Ken Barber
4dbd2c7948 Release 1.1.1
CHANGELOG & Modulefile updated.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-02 19:54:32 +01:00