Branan Purvine-Riley
918a3767ff
Switch to the new puppetlabs_spec_helper gem
2012-05-31 15:32:03 -07:00
Branan Purvine-Riley
7450a5ffc0
Fix the spec test for apt::source
...
the $location paramater is meant to be a deb location, so it should be
formatted as a URI.
2012-05-25 15:32:49 -07:00
Nan Liu
d7a19f3219
Merge pull request #67 from branan/older_puppet_fix
...
Remove a trailing comma to fix older puppets
2012-05-25 14:36:59 -07:00
Branan Purvine-Riley
bf1bb27998
Remove a trailing comma to fix older puppets
2012-05-25 12:38:53 -07:00
Branan Purvine-Riley
95beb15266
Merge pull request #63 from rskvazh/master
...
Pin source with originator. Useful for pinning Launchpad PPA
2012-05-25 11:57:12 -07:00
Nan Liu
de276aeeb7
Merge pull request #64 from branan/rakefile_clean
...
Update Rakefile to my latest template version
2012-05-25 11:45:05 -07:00
Nan Liu
b63b5e19bc
Merge pull request #65 from branan/spec_fix
...
Fix spec tests
2012-05-25 11:26:47 -07:00
Branan Purvine-Riley
ebd05e5c51
Fix spec tests
2012-05-25 11:23:54 -07:00
Branan Purvine-Riley
4c77eed8ec
Update Rakefile to my latest template version
...
* Add a 'clean' task
* Fix an issue when there are no repository fixtures
2012-05-25 11:08:15 -07:00
Roman Skvazh
f5b3c5bcdf
Add functionality to pin source with originator "release o=..."
...
If you need to pin certain Launchpad PPA (ppa:rskvazh/php), you may do:
apt::pin { 'my-launchpad-repo':
priority => 700,
originator =>'LP-PPA-rskvazh-php',
}
2012-05-24 13:46:00 +04:00
Adrien Thebo
b97cb4ae28
Merge pull request #62 from xaque208/contribute
...
Retroactively add Zach Leslie as a contributor
2012-05-23 10:56:16 -07:00
Zach Leslie
4ea122feac
contribute
2012-05-23 10:24:00 -07:00
James Turnbull
5f1cf4a245
Merge pull request #61 from xaque208/pin_origin
...
Pin origin
2012-05-23 10:17:31 -07:00
James Turnbull
efb2ed2094
Merge pull request #60 from branan/ppa_filename
...
(#14657 ) Fix filename when there is a period in the PPA
2012-05-23 10:16:49 -07:00
Dan Bode
64e1bf9a2f
Merge pull request #59 from branan/spec_improvements
...
Spec improvements
2012-05-22 17:27:00 -07:00
Branan Purvine-Riley
83e20806b2
( #14657 ) Fix filename when there is a period in the PPA
2012-05-22 17:22:18 -07:00
Branan Purvine-Riley
0f9793bda8
Make gemfile and fixtures.yml hidden files for the sake of module tool
2012-05-22 15:20:14 -07:00
Branan Purvine-Riley
f420cb6314
add spec_prep, spec_clean, and spec_full rake tasks
...
These targets automate the fixtures directory using a configuration stored in
fixtures.yml. Because we can now handle the fixtures directory with a rake task,
the clone commands have been removed from the Travis config.
2012-05-22 15:00:43 -07:00
Branan Purvine-Riley
a4e1ee7508
fallback to the puppet modulepath if a module is missing from fixtures
2012-05-22 13:27:28 -07:00
Branan Purvine-Riley
fbe44e8b27
Remove recursive symlink from fixtures
2012-05-22 13:27:20 -07:00
Dan Bode
cdfad26d83
Merge pull request #56 from branan/travisci
...
Add files for travis CI
2012-05-22 09:21:52 -07:00
Zach Leslie
836f16e946
add .pref extension, which according to apt_preferences(5) may or may not be present, and is helpful if you are going to have an extension at all
2012-05-21 17:06:10 -07:00
Zach Leslie
f0d18b6ed7
use variable from params and also validate the purge_preferences_d
2012-05-21 15:56:29 -07:00
Zach Leslie
cfb6a35603
allow for purging preferences
2012-05-21 15:51:33 -07:00
Zach Leslie
6e9232a627
align =
2012-05-21 15:48:00 -07:00
Zach Leslie
3ac02c5c42
Preserve backwards compatibility
2012-05-21 15:03:30 -07:00
Zach Leslie
5d94369f15
pass ensure through so that we can remove pin prefs too
2012-05-21 14:52:36 -07:00
Zach Leslie
d28de44266
move pin out to a template
2012-05-21 14:49:30 -07:00
Zach Leslie
2d19d8664e
Add functionality to support apt pinning to more than just the release.
...
Write the pin preference filename as ${name} rather than ${release}, so
that we can pin more than one thing.
Change apt::source so that when pin is set, that it pins to the origin
rather than the release.
2012-05-21 14:19:18 -07:00
Zach Leslie
989b95a12d
Fixup name issue with apt::backports
...
The '.list' is not needed since the apt::source type handles this.
White space alignment.
2012-05-21 14:17:37 -07:00
Ryan Coleman
a2422f7f7b
Merge pull request #58 from nanliu/tb/ppa
...
Fix dependency issues introduced with anchor.
2012-05-09 13:12:42 -07:00
Nan Liu
2ce47f0652
Fix apt::dep spec tests.
...
Some of the existing tests were not verifying anything useful. This
update replace them with more meaningful tests.
2012-05-09 12:22:28 -07:00
Nan Liu
e3784987fc
Fix dependency issues introduced with anchor.
...
apt::ppa and apt::builddep requires apt class. The anchor introduced for
containment of apt-get update causes a dependency loop. apt::ppa appears
to depend on apt class sources.d direcory. While apt::builddep have no
clear reason for a dependency on apt class. This change refactor both
define type, so they no longer cause a dependency loop.
2012-05-09 12:04:17 -07:00
Dan Bode
f8cc762122
Merge pull request #57 from nanliu/tb/style
...
Fix style related issues in module.
2012-05-08 11:07:46 -07:00
Branan Purvine-Riley
05fba437a3
Add configuration for Travis CI
2012-05-08 11:01:31 -07:00
Nan Liu
322f3b68e7
Fix style related issues in module.
2012-05-08 10:47:43 -07:00
Dan Bode
9538d23305
Merge pull request #55 from nanliu/tb/containment
...
(#11966 ) apt module containment for apt_update.
2012-05-07 15:49:33 -07:00
Nan Liu
666a05dea1
( #11966 ) apt module containment for apt_update.
...
The update to separate Exec["apt-get update ${name}"] to single exec in
apt::update class resulted in apt-get update command to be dangled.
Previously if user specified Package['package_a'] <-
Apt::Resource['source_a'], the original refactor would no longer
guarantee apt-get update is executed before the package is installed.
This patch fixes the problem using the anchor resource and ensuring the
old behaviour is maintained and user can depend on apt-get update
command being invoked if they specify dependency on any apt::*
define resource type as well as the apt class.
2012-05-07 15:27:53 -07:00
Nan Liu
5d013aab09
Merge pull request #50 from branan/14221_forge_update
...
(#14221 ) update Modulefile for new release
2012-05-04 14:08:12 -07:00
Branan Purvine-Riley
3c43a97e6a
( #14221 ) update CHANGELOG for release
2012-05-04 14:05:57 -07:00
Branan Purvine-Riley
3b29220acd
( #14221 ) update Modulefile for new release
2012-05-04 13:59:10 -07:00
Branan Purvine-Riley
f3ef62a6c6
Merge pull request #53 from nanliu/tb/14321
...
(#14321 ) apt::pin resource support release.
2012-05-04 13:58:43 -07:00
Nan Liu
e8977deea1
( #14321 ) apt::pin resource support release.
...
apt::pin release should default to title, but should be able to
override. This update removes unnecessary "" around $name, and add spec
tests.
Conflicts:
spec/defines/pin_spec.rb
2012-05-04 13:56:35 -07:00
albac
feee023b24
Update manifests/pin.pp
2012-05-04 13:55:15 -07:00
Nan Liu
1c6b9d4a6a
Merge pull request #54 from branan/python-software-properties-in-apt-ppa
...
Move Package['python-software-properties'] to apt:ppa
2012-05-04 13:54:22 -07:00
Thomas Broyer
0ffe484c7c
Move Package['python-software-properties'] to apt:ppa
...
Also updates the apt-update in Apt::Ppa to use $apt::params::provider
instead of aptitude.
2012-05-04 13:46:08 -07:00
Branan Purvine-Riley
669f5b51fb
Merge pull request #49 from nanliu/tb/11966
...
(#11966 ) Only invoke apt-get update once.
2012-05-04 13:37:46 -07:00
Nan Liu
f13f3cfac7
( #11966 ) Change apt update to apt_update.
...
Based on code review change exec from apt update to apt_update.
2012-05-04 13:35:25 -07:00
Nan Liu
82967a22fa
( #11966 ) Update apt::ppa to use apt::update.
...
Change apt::ppa define type to also use the apt::update class to invoke
apt-get update once.
2012-05-04 13:35:25 -07:00
Nan Liu
3684f88372
( #11966 ) Only invoke apt-get update once.
...
Move apt-get update exec to a seperate class to minimize the number of
apt-get updates invoked by configuration changes.
* remove apt_update exec resource in apt class.
* remove apt-get-${name} in defines.
* apt::source notify Exec['apt update'].
* Remove dependency to Exec['apt_update'].
* fix rspec-puppet tests.
Conflicts:
manifests/source.pp
2012-05-04 13:35:13 -07:00