summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
Commit message (Collapse)AuthorAgeFilesLines
...
* Reverting changeset [2243]; this apparently causes chkconfig not to workluke2007-03-191-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2330 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #432 - you can now manage home dirs with users. You cannot yet purge ↵luke2007-03-192-20/+23
| | | | | | home directories, because there is still controversy over how that should be done. Also, allowdupe is now handled like a feature, which is, um, better. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2328 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug-fixes, prompted by test logs from David Schmittluke2007-03-193-6/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2316 980ebf18-57e1-0310-9a29-db15c13687c0
* Following Russ Allbery's advice and using the Candidate field in the ↵luke2007-03-191-1/+1
| | | | | | apt-cache output. Apparently I'm blind. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2312 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #487. I know use "apt-cache policy", instead of apt-cache showpkg, ↵luke2007-03-191-24/+5
| | | | | | because it clearly shows which version will be installed. This is basically impossible to test well, so I just added a test that verifies we always get a value back, although I cannot really test that it is the "right" value. Also, I modified the logging of packages so if there is a latest version, you will get the new version number, along with the old, in the log. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2310 980ebf18-57e1-0310-9a29-db15c13687c0
* The first round of fixes for failing tests.luke2007-03-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2296 980ebf18-57e1-0310-9a29-db15c13687c0
* Getting rid of a warning in the rpm providerluke2007-03-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2292 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #529 -- specified targets keep their values. The problem was that I ↵luke2007-03-181-1/+12
| | | | | | was using model[:target] instead of model.should(:target) and model.is(:target). The real problem was that my tests were using a parameter for tests but all of the real code uses properties. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2290 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing cron support (I hope). It now uses providers, and seems to work, at ↵luke2007-03-173-26/+130
| | | | | | least on my os x box. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2284 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly reworking the internals of the fileparsing code. It nowluke2007-03-143-30/+122
| | | | | | | | | | | | | | passes around an instance of a FileRecord, rather than just a hash, which I think makes it much easier to understand. Moved the sshkey parsed provider test to its own directory and made it better. This work is all being done so I can move cron jobs to using providers instead of the current unmaintainable state of affairs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2281 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch in #528 by ask.luke2007-02-281-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2243 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by cstorey from #521luke2007-02-271-3/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2235 980ebf18-57e1-0310-9a29-db15c13687c0
* Make up2date the default for RHEL <= 4, and confine it to RHEL; make yum the ↵lutter2007-02-272-2/+4
| | | | | | default for RHEL >= 5. Fixes trac #478 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2233 980ebf18-57e1-0310-9a29-db15c13687c0
* Actually commit the changes to lib/puppet that were supposed to be part of ↵mpalmer2007-02-263-8/+16
| | | | | | [2223] (Fuck svn and it's partial-repository-by-default behaviour) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2224 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #495.luke2007-02-201-14/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2216 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #510 by curzonj. Note that the right solution to this ↵luke2007-02-171-4/+4
| | | | | | problem is to use the ruby API, but it does not appear to be stable yet. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2211 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by Jeff McCune from #496luke2007-02-121-26/+20
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2187 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving some of the stand-alone classes into the util/ subdirectory, to clean ↵luke2007-02-071-4/+4
| | | | | | up the top-level namespace a bit. This is a lot of file modifications, but most of them just change class names and file paths. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2178 980ebf18-57e1-0310-9a29-db15c13687c0
* Disabling the netinfo mount providerluke2007-02-071-31/+31
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2171 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the state-rename branch. This includes the diff from version 2156 ↵luke2007-02-077-59/+57
| | | | | | to 2168. All states should now be properties, with backward compatibility for the types that restricted themselves to the methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2169 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing autogen so it passes on non-Darwin systems.luke2007-02-012-7/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2140 980ebf18-57e1-0310-9a29-db15c13687c0
* Revert 2125, and instead change the way the 'latest' version is selected ↵mpalmer2007-01-311-3/+4
| | | | | | from the sorted list of versions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2132 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #463. I redid all the autogen stuff so it can handle autogenerating ↵luke2007-01-293-22/+40
| | | | | | string values for stupid os x. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2114 980ebf18-57e1-0310-9a29-db15c13687c0
* Doing more work on #113. Mostly, just making sure remounts do not happen ↵luke2007-01-291-1/+6
| | | | | | spuriously very often. They will still have extra remounts when changing the value of "ensure", but that is not currently avoidable (similar to #199). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2109 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #113. I added support in the transaction for self-refreshing, which ↵luke2007-01-281-0/+10
| | | | | | just creates a special trigger for resources that have self-refreshing enabled. Logging is a bit different for them, so it is clear why they are refreshing. I still need to verify the remount methods work in the providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2107 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #454.luke2007-01-281-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2105 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #441.luke2007-01-281-4/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2104 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #457, as submitted by Jeff McCune.luke2007-01-251-23/+47
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2087 980ebf18-57e1-0310-9a29-db15c13687c0
* making yum the default packager for centosluke2007-01-241-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2086 980ebf18-57e1-0310-9a29-db15c13687c0
* Make rpm operations much faster by suppressing unneeded verificationlutter2007-01-221-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2075 980ebf18-57e1-0310-9a29-db15c13687c0
* Make the version string optional in the dpkg-query output parsing regex ↵mpalmer2007-01-121-2/+2
| | | | | | (Fixes: #425) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2070 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding #408.luke2007-01-051-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2055 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a few testing bugs that have crept in, and fixing a self-reference ↵luke2007-01-051-1/+4
| | | | | | problem when configuring, graphing, and setting graphdir manually. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2052 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't rely on the type to store the actual NVR of the package; breaks in the ↵lutter2007-01-051-3/+10
| | | | | | provider tests since they call the provider slightly differntly git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2048 980ebf18-57e1-0310-9a29-db15c13687c0
* Throwing warnings instead of exceptions when dpkg-query produces info we ↵luke2007-01-041-3/+5
| | | | | | cannot understand git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2043 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix yum update breakage - query should not change the name the user gave us; ↵lutter2007-01-031-9/+9
| | | | | | instead, the fully versioned pacakge name is now stored in the instance parameter git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2029 980ebf18-57e1-0310-9a29-db15c13687c0
* Tone down the debug spewage from yumlutter2007-01-031-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2028 980ebf18-57e1-0310-9a29-db15c13687c0
* The package name must match at the beginning of a line; otherwise we might ↵lutter2007-01-031-2/+2
| | | | | | get fooled by other yum spewage git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2025 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix trac #354, and some other oddities around installing multiple versions ↵lutter2007-01-021-4/+12
| | | | | | of the same package. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2018 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #396. Using the provider command instead of a direct exec, which ↵luke2007-01-021-17/+26
| | | | | | automatically captures stderr. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2014 980ebf18-57e1-0310-9a29-db15c13687c0
* A couple of small fixes to pass existing tests.luke2007-01-011-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2012 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some failing tests on fedora.luke2007-01-011-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2011 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by rainhead from #392.luke2006-12-301-5/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1998 980ebf18-57e1-0310-9a29-db15c13687c0
* A couple of small bug fixesluke2006-12-291-0/+208
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1982 980ebf18-57e1-0310-9a29-db15c13687c0
* Looks like providers work again on Solaris.luke2006-12-282-3/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1980 980ebf18-57e1-0310-9a29-db15c13687c0
* I have not yet finished testing, but most of the providers now successfully ↵luke2006-12-2829-152/+163
| | | | | | pass arrays to execute() instead of strings, which means that the vast majority of execution problems are now gone. I will finish testing tomorrow, hopefully, and will also hopefully be able to verify that the execution-related bugs are fixed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1979 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #384, by jgonzalezluke2006-12-191-7/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1956 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #372 and #374. All is not perfect, since OS X still cannot set UID, ↵luke2006-12-196-28/+36
| | | | | | but it is much better. There is still plenty of bug-fixing to do on other platforms, I expect. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1954 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix service.list, in particular for the redhat providerlutter2006-12-141-0/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1923 980ebf18-57e1-0310-9a29-db15c13687c0
* Reworking the package tests. Now providers are tested individuallyluke2006-12-144-4/+21
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1921 980ebf18-57e1-0310-9a29-db15c13687c0