summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
* 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
* fixing log messagesluke2006-05-031-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1172 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing log messagesluke2006-05-031-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1171 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a stupid bug i managed to introduce in 0.16.2 (probably) involving ↵luke2006-05-035-44/+89
| | | | | | importing files with classes in them. This is a better solution than what I had before the bug, anyway. Also, some documentation fixes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1167 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some naming problems with crons, and adding appropriate testsluke2006-05-031-7/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1166 980ebf18-57e1-0310-9a29-db15c13687c0
* Allowing dashes in class names, although grammar rules restrict it from ↵luke2006-05-021-1/+1
| | | | | | working anywhere except node names or in tag(). They are valid in host names, and many companies have them in the host names; in fact, this fix is for a company with this exact problem -- they cannot use puppet with their nodes because all their hosts have dashes in the host names. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1165 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching to just using "preserve" for file copying in file#handlebackupsluke2006-05-021-5/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1164 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #132, which involved creating a separate CA client and using it to ↵luke2006-05-024-25/+29
| | | | | | retrieve the certificates. There was more work to do because of the weird client/daemon/server heirarchy. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1160 980ebf18-57e1-0310-9a29-db15c13687c0
* Bug fixes from OS X for 0.16.3luke2006-05-015-5/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1156 980ebf18-57e1-0310-9a29-db15c13687c0
* Hopefully final bug fixes in preparation for 0.16.3luke2006-04-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1155 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing tests looking for pmapluke2006-04-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1154 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing TransObject#to_type so that it does not modify the object being convertedluke2006-04-301-15/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1153 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing test for service paths; only testing if it is a directory if it is ↵luke2006-04-301-5/+7
| | | | | | present. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1152 980ebf18-57e1-0310-9a29-db15c13687c0
* Added some code that could be used later to make sure the user and mode are ↵luke2006-04-301-2/+2
| | | | | | also copied on backups. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1151 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a check to make sure the mode is copied over.luke2006-04-301-1/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1150 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the docs a bit for the executables, adding a --daemonize option to ↵luke2006-04-302-14/+25
| | | | | | puppetd and puppetmasterd so they can still be daemonized with debugging or verbosity enabled, and causing puppetd to fail to start if a PID file exists (and not setting a pid file if running with --onetime enabled). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1149 980ebf18-57e1-0310-9a29-db15c13687c0
* Puppetd now has an option for listening -- just run the --listen option, and ↵luke2006-04-284-4/+9
| | | | | | it will start up with a pelement server. It will fail to start if the authconfig file (defaulting to /etc/puppet/namespaceauth.conf) is missing, since it defaults to access at this point. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1148 980ebf18-57e1-0310-9a29-db15c13687c0
* Making file copying significantly faster -- i found an extra call to ↵luke2006-04-283-19/+43
| | | | | | "describe" in file sources and an extra read/checksumming of the dest file git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1147 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #128. md5lite was being used instead of full md5. At this point, ↵luke2006-04-283-7/+10
| | | | | | md5lite cannot be used for source copies. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1146 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding in all of the patches necessary to make a prototype rails interface ↵luke2006-04-2815-87/+231
| | | | | | to puppet nodes work. The biggest change is that there is now a separate NetworkClient class for every Client subclass, because otherwise you get namespace collisions. Most everything other change is a relatively minor patch. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1145 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to track down the bugs reported this morning, so I added some more ↵luke2006-04-274-15/+20
| | | | | | test cases. I did find a bug in the filebuckets, fixed it, and added a test case. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1143 980ebf18-57e1-0310-9a29-db15c13687c0
* adding "clean" mode to puppetcaluke2006-04-261-0/+20
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1140 980ebf18-57e1-0310-9a29-db15c13687c0