summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/package
Commit message (Collapse)AuthorAgeFilesLines
* maint: Fix pacman provider to work with Ruby 1.9Matt Robinson2011-05-241-1/+1
| | | | | | | | | | | | Ruby 1.9 doesn't allow the lambda to walk up the directory structure to require the spec helper This is the same issue as with commit: f6da3339f59bbd9243a03dc1e417b1fed7955c7e Also, you can't call each on a string in Ruby 1.9 directly since it doesn't implicitly do a split on \n like it did in older Rubies, but each_line works all the way back to 1.8.5 Reviewed-by: Nick Lewis <nick@puppetlabs.com>
* (#1853) Pacman package providerPaul Boyd2011-05-161-0/+94
| | | | | | | Adds support for use Archlinux's pacman package manager in Puppet. Originally written by Miah Johnson, with bug fixes from Thomas Hatch and myself.
* Merge branch '2.6.next' into 2.7.nextJosh Cooper2011-04-211-0/+1
|\ | | | | | | | | | | | | Manually resolved conflicts: lib/puppet/parser/resource.rb lib/puppet/parser/scope.rb spec/unit/parser/scope_spec.rb
| * Merge remote branch 'james/tickets/2.6.x/6681' into 2.6.nextJames Turnbull2011-04-141-0/+1
| |\ | | | | | | | | | | | | * james/tickets/2.6.x/6681: Fixed #6681 - Remove --force-yes option from aptitude is used
| | * Fixed #6681 - Remove --force-yes option from aptitude is usedJames Turnbull2011-03-121-0/+1
| | |
* | | Merge branch 'feature/master/4258-pkgutil' into 2.7.xMatt Robinson2011-04-141-0/+175
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feature/master/4258-pkgutil: (29 commits) (#4258) Fix pkgutil spec test to have the correct provider (#4258) Remove superfluous command check that called pkgutil (#4258) Fix fd leak opening pkgutil config files (#4258) Permit variations of -nv in both pkgutil.conf files (#4258) Stop file and config checks from breaking spec (#4258) Check wgetopts in pkgutil.conf (#4258) Fix hash duplication affecting canonical provider instance (#4258) Use pkgutil -a to reliably determine package common names/aliases (#4258) Update pkgutil spec for recent impl changes (#4258) pkgutil: bug fix: if shortname is not equal to package name (#4258) pkgutil provider: better handling of short package names (#4258) pkgutil provider: misc enhancements Add spec tests for pkgutil package provider * Fix exception on parse failure of pkgutil output * Fix exception when querying latest version for unknown package Fixing indentation Removing blastwave references and unused PAGER Changing indentation to 2-spaces as per 2.6+ style Single package queries made more robust when dealing with pkgutil noise Fixing wget verbose regex These regular expressions will not match anything. pkgutil doesn't output anything that can be matched. ...
| * | | (#4258) Remove superfluous command check that called pkgutilDominic Cleal2011-04-131-8/+4
| | | |
| * | | (#4258) Fix fd leak opening pkgutil config filesDominic Cleal2011-04-131-2/+3
| | | |
| * | | (#4258) Permit variations of -nv in both pkgutil.conf filesDominic Cleal2011-04-131-2/+4
| | | |
| * | | (#4258) Stop file and config checks from breaking specDominic Cleal2011-04-131-9/+11
| | | | | | | | | | | | | | | | | | | | Moved all file and config checks into healthcheck method which is then stubbed in the spec.
| * | | (#4258) Check wgetopts in pkgutil.confJuerg Walz2011-04-131-0/+7
| | | |
| * | | (#4258) Fix hash duplication affecting canonical provider instanceDominic Cleal2011-03-221-1/+1
| | | |
| * | | (#4258) Use pkgutil -a to reliably determine package common names/aliasesDominic Cleal2011-03-191-23/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Populate instances with both the real package name ("CSWsvn") and the alias name ("subversion") from separate "pkgutil -a" call. Fixed cases where pkgutil noise was parsed as aliased package names and also breaking "not in catalog" detection. Updated pkgutil_spec test to show various edge cases.
| * | | (#4258) pkgutil: bug fix: if shortname is not equal to package nameJuerg Walz2011-03-101-2/+2
| | | |
| * | | (#4258) pkgutil provider: better handling of short package namesJuerg Walz2011-03-081-1/+5
| | | |
| * | | (#4258) pkgutil provider: misc enhancementsJuerg Walz2011-02-221-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several enhancements and bug-fixes for the pkgutil package provider: - handle "Not in catalog" - fix "SAME" version detection - allow short package name (w/o CSW) to match (-> no need to specify a different package name for different operating systems, ex. "ruby") - use the "-u" command line switch for updates
| * | | * Fix exception on parse failure of pkgutil outputDominic Cleal2011-02-201-13/+6
| | | | | | | | | | | | | | | | * Fix exception when querying latest version for unknown package
| * | | Merge branch 'master' into tickets/master/4258-devDominic Cleal2011-02-191-2/+2
| |\ \ \
| * | | | Fixing indentationDominic Cleal2010-11-291-3/+3
| | | | |
| * | | | Removing blastwave references and unused PAGERDominic Cleal2010-11-291-10/+8
| | | | |
| * | | | Changing indentation to 2-spaces as per 2.6+ styleDominic Cleal2010-11-291-106/+106
| | | | |
| * | | | Single package queries made more robust when dealing with pkgutil noiseDominic Cleal2010-11-291-2/+8
| | | | |
| * | | | Fixing wget verbose regexDominic Cleal2010-11-271-1/+1
| | | | |
| * | | | Merge remote branch 'remotes/rgevaert/master' into tickets/masters/4258Dominic Cleal2010-11-271-3/+1
| |\ \ \ \
| | * | | | These regular expressions will not match anything. pkgutil doesn't output ↵rgevaert2010-11-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | anything that can be matched.
| | * | | | Add comments that explain what we are ignoring in the package and remove ↵rgevaert2010-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | legacy output
| * | | | | Merge branch 'master' of github.com:domcleal/puppet into master-oldDominic Cleal2010-11-2716-29/+36
| |\ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Ignoring lines from use_gpg and catalog fetchingDominic Cleal2010-11-151-0/+5
| | | | | |
| * | | | | Adding patch from Rudy Gevaert to fix not installed detectionDominic Cleal2010-11-151-3/+3
| | | | | |
| * | | | | Resolved a conflict in the pkgutil provider.Maciej Blizinski2010-07-221-15/+21
| |\ \ \ \ \
| | * | | | | pkgutil provider: Using the --single option which speeds up execution.Maciej Blizinski2010-07-221-0/+3
| | | | | | |
| | * | | | | pkgutil provider: The path to the admin file is /var/opt/csw/pkgutil/adminMaciej Blizinski2010-07-221-3/+3
| | | | | | |
| | * | | | | pkgutil provider: Correcting a typo in a message.Maciej Blizinski2010-07-221-1/+1
| | | | | | |
| | * | | | | Fixed #4258 - Added pkgutil package providerJames Turnbull2010-07-171-0/+117
| | | | | | |
| * | | | | | Using --single in the pkgutil provider.Maciej Blizinski2010-07-221-1/+4
| | | | | | |
| * | | | | | Adding pkgutil support.Maciej Blizinski2010-07-221-0/+111
| |/ / / / /
* | | | | | Merge branch '2.6.x' into nextMax Martin2011-04-131-0/+106
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2.6.x: Updated CHANGELOG for 2.6.8rc1 (#2331) Remove darwinports pkg provider, replace with rewritten macports provider Fixed #7082 - Added system support for groups (#7018) Give more context on the service type's assumptions. Wording tweaks. (#7018) explain internals better in service provider documentation maint: Fix sqlite3 require to really be optional maint: Fix sporadic sqlite error (#6818) Stop from getting Rails 3 named_scope deprecation warning (#6856) Copy dangling symlinks with 'links => manage' File resource. Conflicts (Resolved manually): lib/puppet/type/group.rb spec/unit/indirector/facts/inventory_active_record_spec.rb
| * | | | | (#2331) Remove darwinports pkg provider, replace with rewritten macports ↵Nigel Kersten2011-04-132-86/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | provider * Employs port -q installed, much faster than port list installed * Handles upgrades correctly now * Makes use of internal port revision for ensure => latest upgrades * Versionable, now works with ensure => specified_version * Does not handle port variants at all yet. * Does not allow manual specification of revision, only version * Test coverage expanded using newer syntax Paired-With: Daniel Pittman
* | | | | | Fixed #5684 - Move to Apache 2.0 licenseJames Turnbull2011-04-111-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For details of why we're moving please see: https://groups.google.com/d/topic/puppet-users/NuspYhMpE5o/discussion Removed explicit GPL licenses where appropriate Replaced selected GPL licenses with Apache 2.0 Replaced LICENSE with Apache 2.0 Updated README
* | | | | | maint: delete dead darwinport package providerDaniel Pittman2011-04-081-86/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DarwinPorts package provider was actually entirely broken; we are not shipping or supporting it with the 2.7 release. Plans exist to introduce a newer, functional MacPorts provider, but this dead code can be removed early. Paired-With: Nigel Kersten <nigel@puppetlabs.com>
* | | | | | Merge branch '2.6.x' into nextMax Martin2011-04-071-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2.6.x: (maint) Indentation fixes (#6490) Add plugin initialization callback system to core Fix #4339 - Locally save the last report to $lastrunreport Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yaml Fixed #3127 - removed legacy debug code Fixed #3127 - Fixed gem selection regex (#5437) Invalidate cached TypeCollection when there was an error parsing (#6937) Adjust formatting of recurse's desc (#6937) Document the recurse parameter of File type. (#6893) Document the cron type in the case of specials. (#5670) Don't trigger refresh from a failed resource Fixed #6554 - Missing $haveftool if/else conditional in install.rb breaking Ruby 1.9 Conflicts (Manually resolved): lib/puppet/application/agent.rb lib/puppet/application/apply.rb lib/puppet/configurer.rb lib/puppet/resource/type_collection.rb lib/puppet/type/file.rb spec/integration/configurer_spec.rb spec/unit/application/agent_spec.rb spec/unit/application/apply_spec.rb spec/unit/configurer_spec.rb spec/unit/indirector/report/yaml_spec.rb spec/unit/resource/type_collection_spec.rb Paired-with: Nick Lewis
| * | | | | Fixed #3127 - removed legacy debug codeJames Turnbull2011-04-051-1/+0
| | | | | |
| * | | | | Fixed #3127 - Fixed gem selection regexJames Turnbull2011-04-041-2/+3
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if the gem json_pure was installed and you requested the gem json then the regex matched too soon and falshly indicated that the json gem was already installed. Also updated to add the --no-ri and no-rdoc options and fix tests.
* | | | | (#6527) Fix uninstall problem and refactorMatt Robinson2011-03-221-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uninstall wasn't working properly because the instances method relied on the pip command having been defined by calling lazy_pip. This lazy_pip pattern is a nice way of getting around Puppet's problem of disqualifying providers at the beginning of a run because the command doesn't yet exist even though part way through the run the command might exist. Really, we need to fix puppet to lazily evaluate a provider command for validity only at the time the provider is needed. The refactoring also pointed out that query could just reuse the logic from instances. The tests were also refactored to use real resources instead of stubbed ones, and they reflect the implementation changes to instances. Paired-with: Richard Crowley <r@rcrowley.org>
* | | | | (#6527) Added pip package provider.Richard Crowley2011-03-221-0/+115
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | Python's pip package manager is analogous to RubyGems and should be included in Puppet. Reviewed-by: Matt Robinson <matt@puppetlabs.com>
* | | | Merge branch '2.6.x' into nextMatt Robinson2011-02-021-2/+2
|\| | | | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2.6.x: (46 commits) Augmentation of tests for prior commit Fix to fix for #5755 -- backref serialization issues in zaml Fixed #5564 - Added some more fqdn_rand documentation Fixed #4968 - Updated list of options turned on by --test in documentation (#5061) - allow special hostclass/define variables to be evaluated as defaults. (#6107) Fix an error when auditing a file with empty content Remove already initialized constant warning from file_spec.rb tests (#5566) Treat source only File checksums as syntax errors when used with content Rename variable used in File type validation to be more clear Remove invalid "timestamp" and "time", and add missing "ctime" File checksum types. Remove order dependency when specifying source and checksum on File type Bug #5755 -- ZAML generates extra newline in some hash backreferences. bug #5681 -- code fix to handle AIX mount output Bug #5681 -- parse AIX mount command output. Spec for #5681 to allow parsing of AIX mount output in mount provider Fixed #6091 - Changed POSIX path matching to allow multiple leading slashes Bug #6091 -- test leading double-slash in filenames are allowed. Fixed #6071 - Fixed typo and improved exec path error message Fixed #6061 - Allowed -1 as password min/max age Bug #6061 -- verify that negative {min,max}_password_age are accepted. ... Manually Resolved Conflicts: lib/puppet/util/zaml.rb spec/unit/util/zaml_spec.rb
| * | Feature #5855 -- fix withenv call in freebsd package providerfredrik-eriksson2011-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Qualify 'withenv' in the provider, since it is part of an entirely different part of puppet, not a method on this provider. This closes #5855. Signed-off-by: fredrik-eriksson <fredrik.eriksson@loopia.se> Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
* | | (#2866) yum should support downgrade.Dan Bode2010-11-231-1/+8
|/ / | | | | | | | | | | | | | | | | | | patch originally from Grzegorz Nosek with contributions on the test from Oliver Hookins. checks if the current version is greater than the should version, if so, calls yum downgrade. Reviewed-by: Matt Robinson
* | Reimplementation of functionality removed by prior commitMarkus Roberts2010-11-101-1/+9
| | | | | | | | | | This commit implements the base path-to-source functionality and adds an (adapted) version of Matt's code on top of it.
* | Refactor for CLAMarkus Roberts2010-11-101-13/+1
| | | | | | | | | | | | | | | | | | | | | | This commit removes code contributed by Ryan McBride, an author we have been unable to contact to sign a Contributor License Agreement. It also removes code writen by Matt Robinson (a Puppet Labs employee) which only made sense in the context of the removed code. The code in question comes from these commits: 6ac36eb4 Matt Robinson 55a9009c Ryan McBride