summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
Commit message (Collapse)AuthorAgeFilesLines
...
* Applying patch in #572 by trombikluke2007-06-181-0/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2619 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing my stupid fix of Matt's work. I conflated :versionable and ↵luke2007-06-188-0/+16
| | | | | | :upgradeable. I have now added back all of the "has_feature :versionable" lines. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2618 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding fink package provider.luke2007-06-181-0/+87
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2617 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating the has_version work that Matt did -- the only thing he missed was ↵luke2007-06-189-16/+6
| | | | | | that the :versionable feature depends on the :latest method, and when that is present we can safely assume that a package is versionable. Also, created the :latest method on the dpkg provider, as requested in #647. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2615 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by trombik to fix #628.luke2007-06-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2614 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by trombik from #624.luke2007-06-181-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2613 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing the appdmg provider to load the package provider base class, and ↵luke2007-06-181-0/+1
| | | | | | trying to clean up the log-file opening in rails git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2609 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding appdmg package provider from #641.luke2007-06-181-0/+117
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2606 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding patch by Ghislain from #670, with slight modifications.luke2007-06-181-1/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2600 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the yum provider, and fixing the unit tests so the failures people ↵luke2007-06-172-8/+6
| | | | | | were experiencing will result in failed tests. This fixes #672. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2595 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing erroneous debug messageluke2007-06-151-2/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2589 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing (hopefully) the last two providers that had "resource.is" callsluke2007-06-142-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2582 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing sun package providerluke2007-06-141-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2581 980ebf18-57e1-0310-9a29-db15c13687c0
* A few small fixes here and there, and the rest of the zones commitluke2007-06-141-22/+69
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2577 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #666 by Rainhead and monachusluke2007-06-131-1/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2569 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #550 -- I had to list pass and dump as optional fields.luke2007-06-111-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2564 980ebf18-57e1-0310-9a29-db15c13687c0
* Oops; I forgot to add the base class for package providers. Also, cleaning ↵luke2007-06-111-0/+31
| | | | | | up the package provider code a touch git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2559 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding (slightly modified) urpmi support from #592 by Devinluke2007-06-081-0/+51
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2556 980ebf18-57e1-0310-9a29-db15c13687c0
* Finishing off the type/provider interface work, including adding package ↵luke2007-06-0819-59/+53
| | | | | | prefetch for all packages. The only not-done one is yum -- prefetch is set up for rpm, but not yum. We need to modify prefetching so that it also prefetches latest information, to avoid having to run yum so many times. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2555 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the few test failures that resulted from the changes to provider listingluke2007-06-051-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2552 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly reworked the type => provider interface with respect toluke2007-06-0414-100/+69
| | | | | | | | | | | | | | | | | | | | listing existing provider instances. The class method on both class heirarchies has been renamed to 'instances', to start. Providers are now expected to return provider instances, instead of creating resources, and the resource's 'instances' method is expected to find the matching resource, if any, and set the resource's provider appropriately. This *significantly* reduces the reliance on effectively global state (resource references in the resource classes). This global state will go away soon. Along with this change, the 'prefetch' class method on providers now accepts the list of resources for prefetching. This again reduces reliance on global state, and makes the execution path much easier to follow. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2551 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "source" attribute to providers, so eventually types will be able ↵luke2007-06-041-1/+1
| | | | | | to avoid duplication during listing by only listing one provider for each source (e.g., dpkg and aptitude should not both be listed). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2550 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing --show-available to --showall, as requisted by Jeremy Dreese on the ↵luke2007-05-311-1/+1
| | | | | | list git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2544 980ebf18-57e1-0310-9a29-db15c13687c0
* Switch the package type to use a :versionable feature, and convert all ↵mpalmer2007-05-3016-56/+16
| | | | | | providers to use the feature. Hope it doesn't break anything. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2543 980ebf18-57e1-0310-9a29-db15c13687c0
* Add a grammatically correct 'has_feature' alias, and switch to using it ↵mpalmer2007-05-302-2/+2
| | | | | | where appropriate in existing code git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2542 980ebf18-57e1-0310-9a29-db15c13687c0
* Clean up a really hairy code construct in the useradd providermpalmer2007-05-301-6/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2541 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing up2date name matching, as mentioned by Jeremy Dreese on the listluke2007-05-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2540 980ebf18-57e1-0310-9a29-db15c13687c0
* Mark all package providers that don't currently report themselves as being ↵mpalmer2007-05-306-0/+24
| | | | | | versionable as not supporting versioning; this way we get a more sensible error message when people try to specify a package version. See #647 for some discussion. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2538 980ebf18-57e1-0310-9a29-db15c13687c0
* Correct a problem with the dpkg provider's handling of the :purged state, ↵mpalmer2007-05-251-1/+1
| | | | | | and expand the package type's understanding of what purged actually means. Fixes #644 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2537 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the "is" related problems in yum and rpm support, but there are still ↵luke2007-05-142-6/+21
| | | | | | some package providers that use the "is" method (grep for "\.is[^_a-zA-Z]" in the package providers), and the util/posix.rb module has a call to obj.is. I will fix those soon. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2515 980ebf18-57e1-0310-9a29-db15c13687c0
* Attempting to fix the fact that the yum package provider calls [] on the ↵luke2007-05-141-1/+1
| | | | | | ensure property, and making the resulting error more readable git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2513 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #605 -- providers now refer to @resource or @resource_type.luke2007-05-0938-244/+244
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2501 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #607 -- parameters and properties now refer to a @resource rather ↵luke2007-05-091-1/+1
| | | | | | than a @parent. The @parent parameter is still set for now, for backward compatibility. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2500 980ebf18-57e1-0310-9a29-db15c13687c0
* Removed calls to is.ballman2007-05-091-7/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2489 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging of refactor-transacton to the trunk. This work removes the :is ↵ballman2007-05-092-3/+5
| | | | | | attribute from properties and relies on the provider to cache or return the current value of the property. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2487 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the remount stuff back to not repeating the mount options.luke2007-05-011-14/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2445 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing cron to correctly match blank lines, fixing #602luke2007-04-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2440 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching the mount command to always add the mount options, so that the ↵luke2007-04-301-8/+20
| | | | | | parsed provider can be used even in cases where /etc/fstab is ignored, like it is on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2431 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "rug" package provider from #609luke2007-04-301-0/+53
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2429 980ebf18-57e1-0310-9a29-db15c13687c0
* Possibly adding the ability to manage passwords on os x. I expect it does ↵luke2007-04-251-2/+9
| | | | | | not work, since there is probably no way to set up an encrypted password, but at least it now creates a user that can not log in by default. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2415 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability to manage passwords with the useradd providerluke2007-04-251-9/+18
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2414 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #587 -- just defaulting to root when there is no USER set in the ↵luke2007-04-201-1/+1
| | | | | | environment. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2403 980ebf18-57e1-0310-9a29-db15c13687c0
* Enhancing the docs a bit for the apple package provider.luke2007-04-201-1/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2399 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support for aptrpm from #227 as added by Ian Burrell, the rest of the ↵luke2007-04-191-0/+79
| | | | | | commit git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2398 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix for #565: Final merge of changes from source:branches/execute-refactor ↵mccune2007-04-031-3/+3
| | | | | | | | | | | | | | | into source:trunk Generated with svn merge -r 2378:HEAD https://reductivelabs.com/svn/puppet/branches/execute-refactor trunk CHANGES: - Puppet::Util#execute now takes hash key/value pairs as arguments after the command array. - Processes executed from the base service provider are now silenced. That is, their standard input, output, and error pipes are all directed to /dev/null. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2385 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a bug I apparently introduced in the testing that would have made ↵luke2007-03-282-17/+15
| | | | | | user management not work with netinfo. In the process, I am enabling validation on the nameservice subclasses. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2359 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing gems to automatically include dependenciesluke2007-03-271-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2355 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #553; -M is no longer added when home directories are managedluke2007-03-211-6/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2341 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small bug in testing whether instance methods are already defined.luke2007-03-211-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2338 980ebf18-57e1-0310-9a29-db15c13687c0
* Hopefully the last batch of commits before I release 0.22.2. Mostly just ↵luke2007-03-191-0/+9
| | | | | | get tests to pass. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2334 980ebf18-57e1-0310-9a29-db15c13687c0