summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
* Simplifying the splitpath method a bit, altho it is still strangely slowluke2006-12-161-12/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1943 980ebf18-57e1-0310-9a29-db15c13687c0
* Simplifying the the Puppet::Type[] methodluke2006-12-161-7/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1942 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing the benchmarking a little bitluke2006-12-161-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1941 980ebf18-57e1-0310-9a29-db15c13687c0
* Go back to restype and remove STI classes, they were more trouble than they ↵shadoi2006-12-154-26/+9
| | | | | | were worth. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1940 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing some of the error output. This gets rid of the duplicated ↵luke2006-12-152-8/+4
| | | | | | information that occurred when definitions or nodes were duplicately defined, and it tightens the error output a bit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1938 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some selectability to host creation for testing. Using ↵luke2006-12-151-10/+40
| | | | | | find_or_create_by results in lots of saves instead of one big one at the end, which causes initial saving to be much slower. To switch between them, just modify the value of "create" at the top of Host.store. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1936 980ebf18-57e1-0310-9a29-db15c13687c0
* I like to checkin one-liners a lot. I'm cool. shadoi2006-12-151-2/+1
| | | | | | | set the type when we create the object, might be a bit faster git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1935 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't use find_or_create_by_title since titles aren't unique.shadoi2006-12-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1934 980ebf18-57e1-0310-9a29-db15c13687c0
* Remove old files, don't require pp anymoreshadoi2006-12-153-49/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1933 980ebf18-57e1-0310-9a29-db15c13687c0
* Some rails modificationsluke2006-12-153-64/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1931 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't dump out debugging stuff.shadoi2006-12-151-2/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1930 980ebf18-57e1-0310-9a29-db15c13687c0
* Don't symbolize the param namesshadoi2006-12-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1929 980ebf18-57e1-0310-9a29-db15c13687c0
* acts_as_taggable pluginshadoi2006-12-145-0/+119
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1927 980ebf18-57e1-0310-9a29-db15c13687c0
* New rails stuff redux.shadoi2006-12-1414-53/+259
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1925 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix service.list, in particular for the redhat providerlutter2006-12-142-5/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1923 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing painfully difficult to find bug in defining exported resourcesluke2006-12-141-2/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1922 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-134-234/+5
| | | | | | on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1918 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the next round of bugs, mostly little things but I had to modify ↵luke2006-12-133-4/+19
| | | | | | transactions so they are willing to delete implicit resources even if they have dependencies, else we would often not be able to purge files at all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1917 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
* You can now use the "resources" type to purge resources. I still need to ↵luke2006-12-132-8/+10
| | | | | | modify transactions so they do not purge resources that have relationships. Also, apparently the noop metaparam was never actually working; now it is, and there is a test for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1915 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a metatype to manage resources of a specified type. For now, this ↵luke2006-12-122-2/+70
| | | | | | metatype just supports purging unmanaged resources. Also, fixed a few tests here and there git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1912 980ebf18-57e1-0310-9a29-db15c13687c0
* Working some on the export/collect problem. It actually works now, but ↵luke2006-12-128-48/+85
| | | | | | there are not yet sufficient tests for it, so I will leave the bug open until we have got the new work in place. I also added a "rails" feature, so I do not have to keep testing whether ActiveRecord is defined. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1911 980ebf18-57e1-0310-9a29-db15c13687c0
* Almost all tests now pass. I have basically reached the point where I was ↵luke2006-12-115-16/+45
| | | | | | before I integrated graphing, except that all of the relationship handling is now inside the transaction, and any kind of recursion (including file) is *tons* easier to model and manage. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1905 980ebf18-57e1-0310-9a29-db15c13687c0
* Most tests now pass in the whole system, but there are still about 8 cases ↵luke2006-12-114-2/+16
| | | | | | that do not work. I am working on those now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1904 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the explicit load for most types in type.rbluke2006-12-102-11/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1903 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the reference to the symlink typeluke2006-12-101-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1902 980ebf18-57e1-0310-9a29-db15c13687c0
* Most of the graph handling is now done, and all of the recursive types ↵luke2006-12-1013-266/+292
| | | | | | (basically just file, tidy, and component) now correctly use the generation mechanisms in the transactions, instead of sticking them in their @children array. Now I just need to go through the rest of the tests and make sure everything passes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1901 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the symlink type finally.luke2006-12-101-189/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1900 980ebf18-57e1-0310-9a29-db15c13687c0
* Another intermediate commit. Most of the graphing work itself is now done, ↵luke2006-12-0910-312/+350
| | | | | | but I am in the middle of converting files to use the graphs and at the same time am writing some actually decent tests for the file recursion stuff. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1899 980ebf18-57e1-0310-9a29-db15c13687c0
* Most of the graphing work is now done. I have also added the generator work ↵luke2006-12-019-327/+257
| | | | | | in transactions, but I need to migrate files to using it. Until that migration is done, files will not work correctly for many cases. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1896 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing link to fsconfig referenceluke2006-12-011-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1895 980ebf18-57e1-0310-9a29-db15c13687c0
* Intermediate commit -- I am ready to start pushing the graph stuff into the ↵luke2006-11-265-23/+248
| | | | | | types and transactions, which will break everything for a little while. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1894 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding GRATR and the beginnings of graph integration.luke2006-11-1721-0/+2891
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1892 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #342. Classes needed to have their namespaces set to their fully ↵luke2006-11-171-1/+5
| | | | | | qualified names, so that contained code and definitions looked for definitions starting with that fq name. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1890 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing backwards compatibility in mounts -- they were not correctly copying ↵luke2006-11-162-2/+2
| | | | | | the path over to the name git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1888 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing configuration storage -- there was a check being done that caused ↵luke2006-11-152-11/+12
| | | | | | false values to get converted to nil values, which failed in the database git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1885 980ebf18-57e1-0310-9a29-db15c13687c0
* Another small fix, just for solarisluke2006-11-131-0/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1878 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixes to the test system, and a couple of small fixes to the main code. ↵luke2006-11-134-287/+289
| | | | | | 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
* Temporarily reverting all of the recent rails work so that I can release 0.20.1luke2006-11-1321-338/+140
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1873 980ebf18-57e1-0310-9a29-db15c13687c0
* adding svn keyword to notify type and reindentingluke2006-11-131-27/+28
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1872 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the caveat so that the log message is always provided during a run.luke2006-11-131-11/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1871 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #339 for real this time -- fixing the log messageluke2006-11-131-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1870 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #339, and the bigger problem it concealed. Metaparams are now only ↵luke2006-11-132-0/+8
| | | | | | added to resources that do not explicitly set them. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1869 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing some debugging, and trying to track down a bug where symlinks get ↵luke2006-11-131-1/+0
| | | | | | recreated for now reason git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1867 980ebf18-57e1-0310-9a29-db15c13687c0
* Ported sshkey over, yay.luke2006-11-135-48/+64
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1866 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a NetInfo provider for hosts. Yay!luke2006-11-135-69/+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-136-61/+95
| | | | | | 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-136-114/+199
| | | | | | thinking about how to fix them. Stupid /etc/services. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1863 980ebf18-57e1-0310-9a29-db15c13687c0