summaryrefslogtreecommitdiffstats
path: root/lib/puppet/client.rb
Commit message (Collapse)AuthorAgeFilesLines
* Moving all of the client and server code into a single network/ directory. ↵luke2007-02-081-194/+0
| | | | | | In other words, more code structure cleanup. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2179 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving some of the stand-alone classes into the util/ subdirectory, to clean ↵luke2007-02-071-1/+1
| | | | | | up the top-level namespace a bit. This is a lot of file modifications, but most of them just change class names and file paths. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2178 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming "pelement" to "resource". The old name is a holdover from before ↵luke2007-01-311-1/+1
| | | | | | we had settled on "resource" as a term. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2137 980ebf18-57e1-0310-9a29-db15c13687c0
* Using the "trace" configuration parameter to determine whether a stack trace ↵luke2006-09-151-1/+1
| | | | | | should be printed, rather than just using "debug". I added the param a little while ago and was using it internally in Puppet::DevError, but I just now went through the whole configuration and switched to using it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1613 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the Daemon module back into the Client class, which fixes #247.luke2006-09-051-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1563 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging r1468 from the implementations branch with r1438 from when the ↵luke2006-08-141-3/+18
| | | | | | branch was first created. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1469 980ebf18-57e1-0310-9a29-db15c13687c0
* First commit of complete reporting support. The only existing report at ↵luke2006-06-291-0/+1
| | | | | | this point is the tagmail report. I expect reporting to get significantly modified from here, but it is a good start. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1339 980ebf18-57e1-0310-9a29-db15c13687c0
* Largely refactored how log destinations are handled, although it is not ↵luke2006-06-271-3/+5
| | | | | | exposed externally. Most of this work is related to handling a large number of small problems related to threading. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1315 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding HUP and USR1 hooksluke2006-06-261-2/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1308 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-181-2/+0
| | | | | | 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-181-12/+6
| | | | | | | | 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 #132, which involved creating a separate CA client and using it to ↵luke2006-05-021-1/+1
| | | | | | 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
* Fixing the docs a bit for the executables, adding a --daemonize option to ↵luke2006-04-301-0/+1
| | | | | | 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
* Adding in all of the patches necessary to make a prototype rails interface ↵luke2006-04-281-2/+14
| | | | | | 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
* Adding simple benchmarking, and using it in a few of the more obvious ↵luke2006-04-101-3/+16
| | | | | | places. Also, fixed a bug in Scope#gennode. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1098 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a couple of bugs in preparation for 0.15.2; mostly they were in the ↵luke2006-04-041-2/+2
| | | | | | testing system and resulted from changing :File to :Manifest in server/master git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1068 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing locking. It apparently was not working on OS X, and I was not ↵luke2006-02-121-3/+3
| | | | | | syncronizing access in threads -- i assumed locks themselves were a sufficient sync point. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@897 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some logging issuesluke2006-01-241-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@849 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the event-loop stuff to the repository and switching to using it. ↵luke2006-01-241-547/+47
| | | | | | Also, breaking many classes out into their own class files. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@848 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing most of the scheduling stuff. There is still a bit of work to do ↵luke2006-01-231-1/+8
| | | | | | in terms of how puppetd interacts with scheduling, but the bulk of the work is done. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@847 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small checksumming bug, reorganizing the client stuff a bit, and ↵luke2006-01-181-33/+108
| | | | | | adding freshness checking for the configuration, so the config is recompiled every time nor is it downloaded unless it has been recompiled git-svn-id: https://reductivelabs.com/svn/puppet/trunk@845 980ebf18-57e1-0310-9a29-db15c13687c0
* Made lots of small changes, mostly to help usability but also fixed a couple ↵luke2006-01-181-16/+19
| | | | | | of key bugs git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
* Converting transport format to YAML instead of Marshal, and caching the file ↵luke2006-01-121-28/+63
| | | | | | in a YAML format, also. This required a significant rework of both Transportable classes. Lastly, I am also now caching the list of classes in a class file in /etc/puppet. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@816 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing dependencies to not depend on file order. Added ↵luke2006-01-121-4/+6
| | | | | | Puppet::Type.{finalize,mkdepends,builddepends} git-svn-id: https://reductivelabs.com/svn/puppet/trunk@808 980ebf18-57e1-0310-9a29-db15c13687c0
* Supporting puppetmasterd running as a non-root user, and doing some basic ↵luke2006-01-101-1/+2
| | | | | | message cleanup git-svn-id: https://reductivelabs.com/svn/puppet/trunk@798 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging changes from the head of the rework1 branch, r 784luke2006-01-081-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@787 980ebf18-57e1-0310-9a29-db15c13687c0
* Undoing the merge that happened in 785luke2006-01-071-9/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging in refactoring from version 774 into version 784luke2006-01-071-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@785 980ebf18-57e1-0310-9a29-db15c13687c0
* Further progress towards the next release. Lots of small bugs fixed, the ↵luke2005-11-011-1/+8
| | | | | | paths look much better now, and Transportable is much cleaner. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@740 980ebf18-57e1-0310-9a29-db15c13687c0
* Central logging now works, although there appear to be a few kinks to work out.luke2005-10-281-0/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@732 980ebf18-57e1-0310-9a29-db15c13687c0
* general cleanup, as i move towards running it locallyluke2005-10-221-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@723 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some semantic tagging. It is not exactly full-featured yet, and it ↵luke2005-10-101-4/+10
| | | | | | is not used at all, but it was sufficient for some proof-of-concept stuff in preparation for the conference git-svn-id: https://reductivelabs.com/svn/puppet/trunk@716 980ebf18-57e1-0310-9a29-db15c13687c0
* Rearranging the packaging support a bit -- it is now more clear and ↵luke2005-09-241-1/+1
| | | | | | significantly easier to understand, maintain, and enhance. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@704 980ebf18-57e1-0310-9a29-db15c13687c0
* Many, many changes toward a completely functional system. The only current ↵luke2005-09-231-16/+21
| | | | | | problems with my home config are that apache's stupid init script does not do status and that packages are not working as non-root users (which makes sense). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@703 980ebf18-57e1-0310-9a29-db15c13687c0
* making "Type.new" private, and switching to "Type.create", so that i can ↵luke2005-09-161-0/+1
| | | | | | merge new objects with existing objects and such; converted all files, and tested them git-svn-id: https://reductivelabs.com/svn/puppet/trunk@674 980ebf18-57e1-0310-9a29-db15c13687c0
* adding extra checks to make sure networking is secure, and refactoring a ↵luke2005-09-151-27/+105
| | | | | | heckuva lot of test git-svn-id: https://reductivelabs.com/svn/puppet/trunk@671 980ebf18-57e1-0310-9a29-db15c13687c0
* all tests now pass on solaris 10x86; i had to do some stupid hacking with ↵luke2005-09-071-0/+1
| | | | | | base64 for it to work, and i am working getting a much better base class for all test classes git-svn-id: https://reductivelabs.com/svn/puppet/trunk@635 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing small bug in setting default portluke2005-09-061-6/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@625 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing bug where remote server name is ignoredluke2005-08-301-6/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@616 980ebf18-57e1-0310-9a29-db15c13687c0
* As Christian requested, I am no longer downcasing facts I receive from ↵Luke Kanies2005-08-291-1/+1
| | | | | | Facter. Also, removing some outdated files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@599 980ebf18-57e1-0310-9a29-db15c13687c0
* I did not have good puppetd tests, so I missed the fact that I was calling ↵Luke Kanies2005-08-291-73/+72
| | | | | | the wrong class in puppetd. Fixed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@597 980ebf18-57e1-0310-9a29-db15c13687c0
* This should be the commit that brings us to Beta 1. All tests pass, ↵Luke Kanies2005-08-281-5/+5
| | | | | | although I get some (gracefully handled) failures in tc_metrics.rb, and there is now a config file for the fileserver module, including authorization specification for it. I have also reworked error handling in the xmlrpc client and server so errors should propagate more correctly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@594 980ebf18-57e1-0310-9a29-db15c13687c0
* remote filecopying now worksLuke Kanies2005-08-231-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@586 980ebf18-57e1-0310-9a29-db15c13687c0
* Have done a significant reorganization of how clients work, also, along with ↵Luke Kanies2005-08-231-145/+215
| | | | | | some interesting trouble shooting on components git-svn-id: https://reductivelabs.com/svn/puppet/trunk@585 980ebf18-57e1-0310-9a29-db15c13687c0
* Created a Handler base class for all of the server handlers, which allows a ↵Luke Kanies2005-08-231-3/+2
| | | | | | lot of the manual work to now be automatic git-svn-id: https://reductivelabs.com/svn/puppet/trunk@582 980ebf18-57e1-0310-9a29-db15c13687c0
* moving all server handlers into a specific server subdirectoryLuke Kanies2005-08-231-5/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@579 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving all files into a consolidated trunk. All tests pass except the ↵Luke Kanies2005-08-231-8/+10
| | | | | | known-failing certificate test, but there appear to be some errors that are incorrectly not resulting in failurs. I will track those down ASAP. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@576 980ebf18-57e1-0310-9a29-db15c13687c0
* just fixed an incredibly ugly bug where @parent meant both parent array and ↵Luke Kanies2005-08-171-16/+41
| | | | | | parent class git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@559 980ebf18-57e1-0310-9a29-db15c13687c0
* all tests pass except a certificate test i do not know how to fixLuke Kanies2005-08-161-27/+93
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@553 980ebf18-57e1-0310-9a29-db15c13687c0