summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Another round of bug fixing. Now everything passes except mounts, at least ↵luke2006-12-131-0/+3
| | | | | | on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1918 980ebf18-57e1-0310-9a29-db15c13687c0
* Never default to rpm provider; use up2date on RedHat. This also works on ↵lutter2006-12-132-1/+1
| | | | | | RHEL5, which does not have up2date, the provider properly fails over to using yum git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1916 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing backwards compatibility in mounts -- they were not correctly copying ↵luke2006-11-161-1/+1
| | | | | | the path over to the name git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1888 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixes to the test system, and a couple of small fixes to the main code. ↵luke2006-11-131-170/+170
| | | | | | Also, disabled the "port" type, because I cannot seem to model it correctly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1875 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small syntax error in the port providerluke2006-11-131-2/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1874 980ebf18-57e1-0310-9a29-db15c13687c0
* Ported sshkey over, yay.luke2006-11-132-47/+35
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1866 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a NetInfo provider for hosts. Yay!luke2006-11-134-68/+96
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1865 980ebf18-57e1-0310-9a29-db15c13687c0
* Hosts now work again, and it should be straightforward to create a netinfo ↵luke2006-11-133-54/+44
| | | | | | provider, too. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1864 980ebf18-57e1-0310-9a29-db15c13687c0
* Ports are still broken, but I need to work on something else while I am ↵luke2006-11-132-106/+150
| | | | | | thinking about how to fix them. Stupid /etc/services. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1863 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to get a netinfo provider for mounts working, but i give up. I am ↵luke2006-11-125-36/+81
| | | | | | leaving it in place but marked as highly experimental. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1860 980ebf18-57e1-0310-9a29-db15c13687c0
* Mounts work again, at least with the parsedfile provider. I still need to ↵luke2006-11-122-185/+133
| | | | | | create a netinfo provider, but it should be short and easy. And, painfully, I still need to port the other six or so subclasses to this new provider. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1859 980ebf18-57e1-0310-9a29-db15c13687c0
* An intermediate commit. All of the classes that use parsedfile are ↵luke2006-11-112-89/+168
| | | | | | | | assuredly broken, since I have basically completely rewritten it. These classes have been a thorn in my side almost since I created them, yet they have been significantly less functional that I wanted. So, I decided to do the rewrite I have been putting off, just to spend all of the maintenance time now so I do not spend 3 days on them every release. Tomorrow I will be porting all of the existing types (including cron, hopefully) over to this new base. This will also make it possible to add other types of providers to these classes; we should be able to reuse the netinfo provider for os x types, and we should be able to create a cron provider that writes to /etc/crontab instead of user crontabs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1856 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some warningsluke2006-11-102-8/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1853 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing #327; debian packages now correctly register their "latest" statusluke2006-11-091-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1848 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the code over from the oscar branch. I will now be doing all ↵luke2006-11-081-1/+0
| | | | | | development in the trunk again, except for larger changes, which will still get their own branch. This is a merge of the changes from revision 1826 to revision 1834. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1835 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug-fixes in preparation for 0.20.0luke2006-10-181-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1813 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #318.luke2006-10-181-0/+45
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1812 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #319.luke2006-10-181-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1811 980ebf18-57e1-0310-9a29-db15c13687c0
* sshkey now uses a providerluke2006-10-171-0/+56
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1802 980ebf18-57e1-0310-9a29-db15c13687c0
* Ported mount over to using providersluke2006-10-171-0/+174
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1801 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing ports to now use a providerluke2006-10-171-0/+139
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1800 980ebf18-57e1-0310-9a29-db15c13687c0
* Working on migrating the parsedtypes to using providers for the parsing ↵luke2006-10-172-0/+252
| | | | | | aspects. This just converts the hosts; I will convert the others next. This is all work from the sync-retrieve-refactor branch, modified to work with trunk. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1799 980ebf18-57e1-0310-9a29-db15c13687c0
* correcting warning about spaces before parensluke2006-10-161-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1782 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding patch from Jeff McCune, #317luke2006-10-161-0/+101
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1781 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some documentation to the programmer's documentation introducing the ↵ajax2006-10-141-1/+1
| | | | | | concept of providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1776 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing code from [1754] -- I stupidly did not even do a parse check, and I ↵luke2006-10-091-6/+6
| | | | | | had to refactor the patch because parameters do not have code associated with their values. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1755 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #234 from David Schmitt. This is also untested, and the ↵luke2006-10-091-1/+14
| | | | | | patch is slightly modified. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1754 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding modified patch from #256 -- apt now uses "responsefile" for the ↵luke2006-10-091-0/+17
| | | | | | preseed file. This is untested, though, since I do not know how to test it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1753 980ebf18-57e1-0310-9a29-db15c13687c0
* going through all of the other providers and making sure any reference to a ↵luke2006-09-196-13/+7
| | | | | | state uses the :should value, not the :is value. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1627 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the same bug in the netinfo provider -- it was retrieving the "is" ↵luke2006-09-191-11/+9
| | | | | | value instead of the "should" value git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1625 980ebf18-57e1-0310-9a29-db15c13687c0
* applying patch from #275. aptitude -q works fine on my testing release, but ↵luke2006-09-191-1/+2
| | | | | | apparently stable does not support it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1623 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding patch from #235luke2006-09-151-38/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1612 980ebf18-57e1-0310-9a29-db15c13687c0
* collecting output from blastlist, for later useluke2006-09-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1603 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #267. The problem was that the user provider was retrieving the @is ↵luke2006-09-155-13/+10
| | | | | | value instead of the @should value, because it was using [] instead of the should method. I fixed the FakeModel to behave a bit more like real types, so that it keeps track of the is/should values, and also to keep track of which attributes are valid, since I immediately ran into another problem stemming from the use of the fakemodel. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1599 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying the provider base class so that it defines a method for every used ↵luke2006-09-0616-225/+69
| | | | | | command (e.g., you call "commands :rpm => 'rpm'", and it defines an "rpm" method. I then pushed this throughout the package providers, which are the heaviest users of commands. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1571 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding aptitude support, including a new util::package module that provides ↵luke2006-09-062-3/+26
| | | | | | a method for package version sorting, and a couple of smaller bug fixes. This fixes #237. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1570 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding hasrestart parameter to servicesluke2006-09-051-19/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1569 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding further gentoo support -- finalized portage support, plus conf and ↵luke2006-09-051-23/+19
| | | | | | init info for puppetd git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1564 980ebf18-57e1-0310-9a29-db15c13687c0
* A small fix to the install/update aspects of packaging.luke2006-09-051-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1560 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the package type so that :ensure is always used for version ↵luke2006-09-059-24/+19
| | | | | | specification, rather than :version, which is now deprecated. This provides much more consistency. I have not tested on all platforms yet, but I want to enable testing on Gentoo, also. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1559 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying a patch from Jose Gonzalez Gomez; apparently this makes package ↵luke2006-09-051-1/+1
| | | | | | updating work git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1557 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding portage support again, since it was added in the branch i revertedluke2006-09-051-0/+124
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1556 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing all of the changes I made towards refactoring in the last couple of ↵luke2006-09-057-903/+0
| | | | | | days. They have all been moved into the sync-retrieve-refactor branch. This branch will soon become 0.19.0, and will not include that refactoring. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1555 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing a small amount of work in cron. I have decided that this is too ↵luke2006-09-052-1/+168
| | | | | | last-minute, and not important enough to hold up the release. I want to get this refactoring done, but it is clearly not the 4 hour job I hoped it was. It will have to be in another release, I think. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1553 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing functional mount support. All that's left in this chunk of work ↵luke2006-09-051-0/+171
| | | | | | is cron. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1552 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding first version of the portage provider, as contributed by Jose ↵luke2006-09-041-0/+124
| | | | | | Gonzalez Gomez git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1551 980ebf18-57e1-0310-9a29-db15c13687c0
* Ports now work with a providerluke2006-09-041-0/+139
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1550 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing SSHKey support.luke2006-09-032-2/+58
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1548 980ebf18-57e1-0310-9a29-db15c13687c0