Commit graph

996 commits

Author SHA1 Message Date
Ken Barber
3abad192fa Merge pull request #15 from bodepd/proxysupport
(#12529) Add parameter to support setting a proxy for apt
2012-02-08 15:20:32 -08:00
Dan Bode
50f3cca0c6 (#12529) Add parameter to support setting a proxy for apt
This commit adds two class parameter to apt that can be used to
specify a proxy to use with apt.

  - proxy_host
  - proxy_port
2012-02-08 15:06:53 -08:00
Dan Bode
0d32fee292 Merge pull request #14 from haus/ticket/12094_add_spec_tests
Ticket/12094 add spec tests
2012-02-08 09:44:38 -08:00
Matthaus Litteken
d522877cdd (#12094) Replace chained .with_* with a hash
The hash passing to the with method is cleaner and closer to puppet code, so
all of the with_$param have been replaced with with($hash). This also
includes two minor whitspace changes to unstable.pp and source.pp.
This also replaces the ternary switch on param_set with a hash merge,
which is cleaner and will support more use cases.
2012-02-08 09:24:43 -08:00
Matthaus Litteken
8cf1bd0289 (#12094) Remove deprecated spec.opts file
Rspec no longer uses the spec.opts file, and this particular file also uses
options for rspec that are no longer honored or available, like loadby. So this
commit removes the file. Users that want to customize rspec behavior should use
a .rspec file in the repository root or in their home directory.
2012-01-23 13:38:09 -08:00
Matthaus Litteken
2d688f4cdc (#12094) Add rspec-puppet tests for apt
This commit adds full coverage for the apt module as it currently exists. It
adds rspec-puppet tests for the defines (apt::builddep, apt::force, apt::pin,
apt::ppa, apt::source) and classes (apt, debian::testing, debian::unstable,
apt::params, apt::release).
2012-01-23 13:37:42 -08:00
Matthaus Litteken
0fb5f78379 (#12094) Replace name with path in file resources
When the name is used with a file resource, it becomes difficult to test the
resource using rspec-puppet, as the name parameter gets aliased to path. So to
maintain consistency between tests and manifests, this replaces all name
parameters in file resources with the equivalent path parameter.
2012-01-23 13:25:52 -08:00
Dan Bode
f04eb5ab71 Merge pull request #4 from webfactory/pin_before_source
Suggested fix for #10449
2012-01-15 21:47:45 -08:00
Dan Bode
3f2df6b860 Merge pull request #12 from haus/11953_fix_apt_force_version
(#11953) Apt::force passes $version to aptitude
2012-01-13 17:17:15 -08:00
Matthaus Litteken
f759bc039a (#11953) Apt::force passes $version to aptitude
Previously, even if $version were passed to apt::force, aptitude would just
install the default version of the package available. This updates the aptitude
call to use the version string if it exists. If no version is passed, or if it
is false, no version is added to the aptitude call.  This also updates the
rspec-puppet tests for the define, to reflect the changes to the exec.
2012-01-13 15:29:47 -08:00
Matthaus Litteken
30b6748f02 Merge pull request #11 from bodepd/11413_apt_force_query_fix
11413 apt force query fix
2012-01-13 15:09:45 -08:00
Dan Bode
f2265b470b Merge pull request #8 from cwarden/source-example-improvement
include_src parameter in example; Whitespace cleanup
2012-01-13 12:25:42 -08:00
Dan Bode
f71db53130 (#11413) Add spec test for apt::force to verify changes to unless
In the Previous commits, the query being done by the
apt::force install command was not strict enough and
could lead to false positives.

These queries represented by the unless parameter have been
resolved in another commit. This commit accompanies that commit
and adds basic unit tests to correspond to the changes.
2012-01-13 12:04:09 -08:00
Matthias Pigulla
2f5d317177 (#11413) Update dpkg query used by apt::force
This patch fixes the query used by apt::force to
determine rather or not the package is installed.

Previously, the expression was not specific enough and
could not lead to false positives in cases where a package
name is contained within another package name (puppet could be
incorrectly determined as being installed if puppet-common is
installed)

This commit resolves that by improving the query expression.
2012-01-13 11:59:24 -08:00
Matthaus Litteken
ee5d762351 Merge pull request #9 from bodepd/10451_fix_apt_update_refresh
10451 fix apt update refresh
2012-01-04 10:30:31 -08:00
Dan Bode
cf6caa1f15 (#10451) Add test coverage to apt::ppa
This commit adds test coverage for apt::ppa.

This test coverage is suficient to verify the
code changes that resolve the issue with
aptitude update not being called when ppas were
added (#10451).
2012-01-03 17:03:24 -08:00
Christian G. Warden
0dd697d7cf include_src parameter in example; Whitespace cleanup
In the apt::source example, include the include_src parameter.  Clean-up
whitespace in the example to be consistent with the style guide.
2011-12-20 13:45:43 -08:00
Garrett Honeycutt
a7d7a6ca6c Merge pull request #7 from cwarden/patch-1
fix typos in "repositories"
2011-12-20 12:33:29 -08:00
Christian G. Warden
b662eb8644 fix typos in "repositories" 2011-12-20 12:06:24 -08:00
Matthias Pigulla
1be745705c Fix (#10451) - apt::ppa fails to "apt-get update" when new PPA source is added 2011-11-02 15:40:10 +01:00
Matthias Pigulla
864302a091 Set the pin priority before adding the source (Fix #10449) 2011-11-02 10:28:38 +01:00
Matthaus Litteken
749c3e185d Merge pull request #3 from rnavarro/master
Fixed the infinite ppa add bug.
2011-08-26 14:39:11 -07:00
Robert Navarro
1de4e0a294 Refactored as per mlitteken
* 1af9a13c40 (commitcomment-539287)
2011-08-24 22:52:42 -04:00
Robert Navarro
1af9a13c40 Added some crazy bash madness to check if the ppa is installed already. Otherwise the manifest tries to add it on every run! 2011-08-18 02:37:54 -03:00
Spencer Krum
52ca73e964 (#8720) Replace Apt::Ppa with Apt::Builddep
Probably a copy & paste error

Reviewed-by: Matthaus Litteken <matthaus@puppetlabs.com>
Signed-off-by: Spencer Krum <spencer@puppetlabs.com>
2011-08-02 15:12:34 -07:00
Monty Taylor
5c05fa0f91 added builddep command. 2011-07-24 18:19:22 -04:00
Dan Bode
a11af502cd added the ability to specify the content of a key
Allows us to pass key_content when we specify a source.
2011-06-03 08:14:56 -07:00
Dan Bode
c42db0fa0f Fixes ppa test. 2011-05-30 10:43:15 -07:00
Dan Bode
77d2b0dd05 reformatted whitespace to match recommended style
of 2 space indentation.
2011-05-30 10:25:11 -07:00
Dan Bode
27ebdfc57f ignore swap files. 2011-05-30 10:25:11 -07:00
Dan Bode
377d58a7af added smoke tests for module. 2011-05-30 10:25:11 -07:00
Dan Bode
18f614b89b reformatted apt::ppa according to recommended
style.

removed require apt in favor of marking a
dependency.

converted release define into a class since
the resources are singletons.
2011-05-30 10:25:11 -07:00
Dan Bode
d8a1e4ee9d Created a params class to hold global data.
- Removes coupling between global data and
  resources from apt class.
- Makes it easier to organize things into stages.
2011-05-30 10:24:58 -07:00
Dan Bode
636ae8541d Added two params for apt class
both of these params facilitate options that 
ease the management of apt repos in dev
environments

1. disable_keys - allows repos without properly
signed keys
2. always_apt_update - refreshes via apt update
every time that puppet runs.
2011-05-29 18:43:01 -07:00
Jeff Wallace
148fc7342c Update LICENSE. 2011-04-18 11:36:04 -04:00
Scott McLeod
ed2d19e2f3 Support ability to add more than one PPA 2011-04-17 21:43:33 -04:00
Ben Godfrey
420d537ac1 Add call to apt-update after add-apt-repository in apt::ppa 2011-03-11 18:14:31 +00:00
Ben Godfrey
945be77019 Add package definition for python-software-properties 2011-03-11 17:10:25 +00:00
Ben Godfrey
71fc425176 Abs paths for all commands 2011-03-11 17:02:50 +00:00
Ben Godfrey
627718fd34 Merge branch 'master' of github.com:afternoon/puppet-apt 2011-03-11 16:42:45 +00:00
Jeff Wallace
45bc6b1962 Merge branch 'master' of github.com:evolvingweb/puppet-apt 2011-03-11 16:42:04 +00:00
Jeff Wallace
60a4b716b9 Merge branch 'master' of github.com:evolvingweb/puppet-apt 2010-07-12 10:01:43 -04:00
Jeff Wallace
9d51cd1589 Adding LICENSE 2010-07-12 10:01:08 -04:00
Jeff Wallace
71796e39e1 Heading fix in README 2010-05-06 10:50:59 -07:00
Jeff Wallace
87777d8551 Typo in README 2010-04-27 16:39:50 -04:00
Jeff Wallace
f848bac607 First commit 2010-04-27 16:38:28 -04:00