summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* Trying to get a netinfo provider for mounts working, but i give up. I am ↵luke2006-11-128-40/+97
| | | | | | 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-128-208/+311
| | | | | | 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
* Doing some refactoring in how state values are set. The primary motivation ↵luke2006-11-112-72/+113
| | | | | | was to provide the ability for the "newvalue" method to specify whether the provider should still be called, and if so, in what order (e.g., before or after). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1858 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the state class so that blocks are optional for values. This is ↵luke2006-11-111-29/+51
| | | | | | useful for cases where you want to specify values for validation but you want a method called on the provider instead. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1857 980ebf18-57e1-0310-9a29-db15c13687c0
* An intermediate commit. All of the classes that use parsedfile are ↵luke2006-11-119-150/+257
| | | | | | | | 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
* Adding module for parsing files. This module is only included into the ↵luke2006-11-101-0/+200
| | | | | | parsedfile provider base class, but it is cleaner to have it broken out like this. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1855 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix silly regexp mistake where lines with values containing '=' were parsed ↵lutter2006-11-101-1/+1
| | | | | | improperly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1854 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some warningsluke2006-11-105-17/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1853 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #324. Mkusers was not specifically ignoring the root user, and it is ↵luke2006-11-091-0/+3
| | | | | | now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1851 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #326 -- parseonly now just creates a simple Master without opening a portluke2006-11-092-6/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1849 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing #327; debian packages now correctly register their "latest" statusluke2006-11-092-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1848 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a simple report that just duplicates client logs onto the serverluke2006-11-091-0/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1847 980ebf18-57e1-0310-9a29-db15c13687c0
* Slightly more doc updatesluke2006-11-092-28/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1846 980ebf18-57e1-0310-9a29-db15c13687c0
* Small fixes here and there. The rails changes needs to be pushed through ↵luke2006-11-096-22/+146
| | | | | | the collection code, so I am committing so Blake can take a look at that. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1844 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing rrdgraph report (as marked in #334); also, expanding the docs on all ↵luke2006-11-094-48/+178
| | | | | | of the existing reports. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1839 980ebf18-57e1-0310-9a29-db15c13687c0
* The new rails files.shadoi2006-11-0916-92/+266
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1838 980ebf18-57e1-0310-9a29-db15c13687c0
* Rails stuff part 1shadoi2006-11-094-45/+73
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1837 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some sticky problems with checksums when just using the "check" ↵luke2006-11-084-19/+40
| | | | | | metaparam. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1836 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the code over from the oscar branch. I will now be doing all ↵luke2006-11-0828-339/+415
| | | | | | 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
* Fixing some Class.to_s handlingluke2006-10-202-8/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1823 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bugfixing, including finding out that the tagmail report ↵luke2006-10-183-9/+14
| | | | | | was leaving zombie processes lying around git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1816 980ebf18-57e1-0310-9a29-db15c13687c0
* Doing some work on the DSL. It behaves a little more like the real language ↵luke2006-10-182-22/+241
| | | | | | now, although overrides use the same syntax as normal resources, and there is no facility for specifying defaults git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1814 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug-fixes in preparation for 0.20.0luke2006-10-184-36/+41
| | | | 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
* Changing the realize() function to be just syntactic sugar for a collection ↵luke2006-10-182-14/+35
| | | | | | -- it literally creates a collector object now. The benefit of this is that it is late-binding, so file order does not affect whether a resource is available. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1810 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "realize" function that can be used to make one or more resource ↵luke2006-10-183-528/+597
| | | | | | non-virtual. It is just syntactic sugar for a collection by title. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1808 980ebf18-57e1-0310-9a29-db15c13687c0
* Hacking cron so that it works even though I have changed ParsedType. The ↵luke2006-10-181-3/+67
| | | | | | whole stupid thing needs to be rewritten from scratch, but this is the best i can do for 0.20. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1807 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding prefetch of providers to transactions. Nothing is using it yet. I ↵luke2006-10-181-0/+18
| | | | | | wrote it for cron jobs, but it is too much work to fix this for cron jobs right now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1806 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing virtual object collection. I apparently broke it when I added rails ↵luke2006-10-184-13/+13
| | | | | | collection back, and I never created any end-to-end tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1805 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing doc generation for objects w/out their own docsluke2006-10-171-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1804 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a bug that only occurred if a defined resource was already defined in ↵luke2006-10-172-5/+15
| | | | | | memory. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1803 980ebf18-57e1-0310-9a29-db15c13687c0
* sshkey now uses a providerluke2006-10-173-129/+116
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1802 980ebf18-57e1-0310-9a29-db15c13687c0
* Ported mount over to using providersluke2006-10-177-273/+301
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1801 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing ports to now use a providerluke2006-10-174-262/+250
| | | | 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-175-377/+447
| | | | | | 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
* First batch of fixes from running tests.luke2006-10-171-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1797 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching from calling "up" on the migration directly to using the "migrate" ↵luke2006-10-172-3/+15
| | | | | | method. It is still not checking versions or allowing external forcing of migration, but it is a start. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1795 980ebf18-57e1-0310-9a29-db15c13687c0
* Rewriting nearly all of the tests for the tidy type, and redoing the ↵luke2006-10-171-36/+104
| | | | | | internals of the testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1794 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing gennode; it was not actually adding the class code to the generated node.luke2006-10-161-13/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1792 980ebf18-57e1-0310-9a29-db15c13687c0
* Making all test suites executable, adding some tests for handling changing ↵luke2006-10-163-167/+191
| | | | | | files from one type to another, and fixing #304. The problem with #304 was only occurring when backing up to a filebucket (I can only think the example code was wrong) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1786 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #291 -- the problem was that instead of throwing an error on a ↵luke2006-10-163-13/+13
| | | | | | missing server, puppet was just exiting. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1785 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving all of the configuration parameters out of puppet.rb into ↵luke2006-10-161-0/+168
| | | | | | puppet/configuration.rb, and adding a PATH setting as requested in #307, although it does not include a default. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1784 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability to have hooks for configuration parameters. This will ↵luke2006-10-161-0/+9
| | | | | | simplify things like setting the shell path. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1783 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-164-0/+578
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1781 980ebf18-57e1-0310-9a29-db15c13687c0
* adding explicit load of ast/branch to its subclassesluke2006-10-153-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1780 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
* I was stupidly creating an error but not raising it.luke2006-10-111-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1767 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving methods around so they are alphabeticalluke2006-10-111-34/+34
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1764 980ebf18-57e1-0310-9a29-db15c13687c0