module-puppetlabs-apt/spec
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
..
acceptance Clean up test failures 2014-08-12 13:45:37 -04:00
classes add support for LinuxMint operating system 2014-08-29 16:23:21 +02:00
defines apt::force: Added 2 parameters for automatic configuration file handling; fixes #modules-1306 2014-09-22 19:53:45 +02:00
unit add facts showing available updates 2014-06-27 11:21:58 +01:00
spec.opts Sync files 2014-06-25 17:23:12 -07:00
spec_helper.rb Switch to the new puppetlabs_spec_helper gem 2012-05-31 15:32:03 -07:00
spec_helper_acceptance.rb Merge branch '1.6.x' into test 2014-09-12 17:24:49 -04:00