summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing #166. Function names are no longer reserved words.luke2006-06-083-420/+411
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1245 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #158. I did not add a force option, since I always back files up ↵luke2006-06-083-7/+70
| | | | | | before I replace them. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1244 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #154. Basically just accepted the patch that fixes master.rb and ↵luke2006-06-081-1/+1
| | | | | | added a test case for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1242 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #155. It is now valid to have arrays with no values, although you ↵luke2006-06-082-171/+187
| | | | | | will still likely get erratic behaviour elsewhere in the system, depending on what you do with this. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1240 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #159 -- packages now have a default value for ensure (:installed).luke2006-06-081-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1239 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing largely complete Solaris zone support. I still need to add ↵luke2006-06-061-157/+247
| | | | | | static filesystem support, but everything else should work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1236 980ebf18-57e1-0310-9a29-db15c13687c0
* removing one of the stack traces from error outputluke2006-06-061-51/+29
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1235 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #163. Strings can now correctly escape dollar signs.luke2006-06-051-12/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1234 980ebf18-57e1-0310-9a29-db15c13687c0
* Intermediate commit; most of the core zone functions now work, and some of ↵luke2006-06-022-92/+234
| | | | | | the configuration functions work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1233 980ebf18-57e1-0310-9a29-db15c13687c0
* temporary commit so i can transfer my testing to a faster, sparc boxluke2006-06-011-26/+148
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1231 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #160. Fixing the error in Puppet::Type#[]= and scope.newobjectluke2006-06-012-11/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1230 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #161. Basically, AST::ObjectDef now catches when users specify a ↵luke2006-06-011-8/+25
| | | | | | name as a parameter instead of the name before the colon and modify the results accordingly. This catches this kind of problem, and the normal name handling picks up everything else. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1229 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #162. Node names must now be comma-separated.luke2006-05-312-191/+200
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1228 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding an "execute" method to Puppet::Util, and including the module in ↵luke2006-05-282-0/+17
| | | | | | element.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1227 980ebf18-57e1-0310-9a29-db15c13687c0
* adding zone management stub; switching to my home vm for testingluke2006-05-281-0/+182
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1226 980ebf18-57e1-0310-9a29-db15c13687c0
* Did some work on making sure object removal actually works, thus stopping ↵luke2006-05-257-72/+49
| | | | | | some potential memory leaks. Also explicitly removed objects in more places, again hopefully forestalling memory leaks. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1224 980ebf18-57e1-0310-9a29-db15c13687c0
* Reworking cron; adding many unit tests, and making it much more like a ↵luke2006-05-252-113/+212
| | | | | | ParsedType (although still not quite the same). Too many of my tests were invalid; I think those are all fixed now, and it appears to work as desired. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1223 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #138, all of it, I think. Environment settings are now allowed, ↵luke2006-05-191-11/+77
| | | | | | although all bets are off in terms of parsing existing environment settings in crontabs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1217 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a small fix to cron tabs; they will at least parse tabs that have env ↵luke2006-05-191-0/+12
| | | | | | settings in them, although you still cannot, at this point, set them. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1216 980ebf18-57e1-0310-9a29-db15c13687c0
* First version of puppetrun. It seems to mostly work, but I need to test it ↵luke2006-05-191-0/+1
| | | | | | with greater parallelization. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1214 980ebf18-57e1-0310-9a29-db15c13687c0
* Added the last of the tests for the runner, along with the necessary work in ↵luke2006-05-183-5/+16
| | | | | | puppetd to be able to start it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1213 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a lot of structure to puppet.rb to make it easier to manage multiple ↵luke2006-05-186-20/+117
| | | | | | | | objects in a single process, including making it easy to add threads. Added some testing for all of that. Also added a "runner" server, meant to be started within puppetd, so that clients can have runs triggered from a central host git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1212 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing user[:groups] management when the user is absentluke2006-05-181-9/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1211 980ebf18-57e1-0310-9a29-db15c13687c0
* Allowing empty filesluke2006-05-182-446/+453
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1207 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #146. I think I mostly just fixed the error message; I do not think ↵luke2006-05-182-34/+32
| | | | | | there was another bug there. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1206 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing stupid debian rails mistakeluke2006-05-171-11/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1205 980ebf18-57e1-0310-9a29-db15c13687c0
* Making sure file recursion works for all valid inputsluke2006-05-161-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1204 980ebf18-57e1-0310-9a29-db15c13687c0
* Wrapping the host storage into a transaction. It might have a slight ↵luke2006-05-151-9/+15
| | | | | | performance improvement, but, ah, unlikely. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1200 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding code to try for the rails gem if the library cannot be found ↵luke2006-05-153-6/+24
| | | | | | normally, and adding some protections in case there are problems git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1198 980ebf18-57e1-0310-9a29-db15c13687c0
* failing more intelligently in init if ActiveRecord is missingluke2006-05-151-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1196 980ebf18-57e1-0310-9a29-db15c13687c0
* Making sure yum fails on unknown packagesluke2006-05-151-0/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1195 980ebf18-57e1-0310-9a29-db15c13687c0
* removing extraneous loggingluke2006-05-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1194 980ebf18-57e1-0310-9a29-db15c13687c0
* I believe I have finalized export/collection support. I still want to go ↵luke2006-05-153-29/+85
| | | | | | through all of the code and s/collectable/exported/g (thanks to womble for that term). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1193 980ebf18-57e1-0310-9a29-db15c13687c0
* I had to redo how the scopes handled collectable objects (which I will soon ↵luke2006-05-148-41/+150
| | | | | | change to being called "exported objects"). All seems to work now, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1192 980ebf18-57e1-0310-9a29-db15c13687c0
* Made a *huge* performance difference in storing hosts -- down from about 25 ↵luke2006-05-134-18/+19
| | | | | | seconds per host to about 5 seconds on my machine. I will almost definitely still use forking or something to make this not affect the clients git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1191 980ebf18-57e1-0310-9a29-db15c13687c0
* I appear to have object collection working, incredibly. This commit does ↵luke2006-05-138-438/+527
| | | | | | the collection from the database up to adding the objects to the current scope, which is what sends it to the client. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1190 980ebf18-57e1-0310-9a29-db15c13687c0
* The "collectable" syntax now works end-to-end -- the parser correctly ↵luke2006-05-1310-514/+531
| | | | | | recognizes it, the AST objects retain the settings, the scopes do the right conversion, the interpreter stores them all in the database, and then it strips the collectable objects out before sending the object list to the client git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1189 980ebf18-57e1-0310-9a29-db15c13687c0
* adding a few more fields to the host tableluke2006-05-131-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1188 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding initial rails support. One can now store host configurations using ↵luke2006-05-137-24/+277
| | | | | | ActiveRecord into a database (I have only tested sqlite3). Tomorrow will be the grammars used to retrieve those records for object collection. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1187 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some small changes towards fixing #140 and #83, but this work needs ↵luke2006-05-136-23/+73
| | | | | | to take a back seat to object collection, so i will come back to it later. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1186 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #141. It was a problem related to the recent parser changes I made.luke2006-05-122-11/+22
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1185 980ebf18-57e1-0310-9a29-db15c13687c0
* removing some extraneous loggingluke2006-05-121-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1184 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating doc system to add the list of valid values to the doc string, and ↵luke2006-05-106-17/+61
| | | | | | tweaking a few docs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1183 980ebf18-57e1-0310-9a29-db15c13687c0
* Slight modifications to package parsing on *bsd. It should be better about ↵luke2006-05-091-5/+6
| | | | | | catching the version number, and unparseable lines are now just warnings, not errors. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1182 980ebf18-57e1-0310-9a29-db15c13687c0
* Preliminary commit of the first phase of the parser redesign. The biggest ↵luke2006-05-095-150/+227
| | | | | | difference is that overrides should now work for definitions (although i do not yet have a test case -- i will add one on the next commit). The way this is implemented is by having scopes translate themselves at eval time, but in two phases -- the first phase does the overrides, and the second phase does the evaluation of definitions and classes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1180 980ebf18-57e1-0310-9a29-db15c13687c0
* Making trigger logs much clearer -- you now get info logs indicating how ↵luke2006-05-052-8/+34
| | | | | | many dependencies changed, and debug logs indicating what those dependencies are git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1178 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing how events work. Events are now responded to inline, while an ↵luke2006-05-053-122/+167
| | | | | | object is being applied. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1177 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing default for pattern to include the binary if it is includedluke2006-05-041-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1176 980ebf18-57e1-0310-9a29-db15c13687c0
* Small bug fixesluke2006-05-042-2/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1174 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the problem that lutter ran into; the issue seems to be that Facter ↵luke2006-05-041-2/+9
| | | | | | could not find the ipaddress on the server. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1173 980ebf18-57e1-0310-9a29-db15c13687c0