summaryrefslogtreecommitdiffstats
path: root/lib/puppet/agent
Commit message (Collapse)AuthorAgeFilesLines
* Adding an Agent::Runner class.Luke Kanies2009-02-061-0/+65
| | | | | | | This will eventually be used by puppetrun, but for now is just called by the old-school Runner handler. Signed-off-by: Luke Kanies <luke@madstop.com>
* Creating and using a new Puppet::Daemon classLuke Kanies2009-02-061-1/+0
| | | | | | | | | | | | This replaces the short-lived EventManager class, all of the service- and timer-related code in puppet.rb, and moves code from agent.rb, server.rb, and other places into one class responsible for starting, stopping, pids, and more. The Daemon module is no longer in existence, so it's been removed from the classes that were using it. Signed-off-by: Luke Kanies <luke@madstop.com>
* Splitting the Agent class into Agent and ConfigurerLuke Kanies2009-02-064-153/+6
| | | | | | | | | | | | Once I went to add runinterval support to the Agent class, I realized it's really two classes: One that handles starting, stopping, running, et al (still called Agent), and one that handles downloading the catalog, running it, etc. (now called Configurer). This commit includes some additional code, but 95% of it is just moving code around. Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving the Agent locking code to a module.Luke Kanies2009-02-061-0/+38
| | | | | | | Also cleaning up the lock usage by yielding to a block when a lock is attained. Signed-off-by: Luke Kanies <luke@madstop.com>
* Refactoring how the Facter integration worksLuke Kanies2009-02-061-26/+3
| | | | | | | | I moved all of the extra Fact modifications into the Facts class, and then moved the calls of those new methods into the Facter terminus. Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving fact and plugin handling into modulesLuke Kanies2009-02-063-1/+98
| | | | | | | | | | This doesn't change functionality, it just simplifies the agent class. I've also started the work to get the catalog handling done using REST/the Indirector. Signed-off-by: Luke Kanies <luke@madstop.com>
* Revert "This is work that I've decided not to keep"Luke Kanies2009-02-062-33/+20
| | | | This reverts commit f57a5e88229578747dde2c90af3a696ad0172e72.
* This is work that I've decided not to keepLuke Kanies2009-02-062-20/+33
| | | | | | | so I'm just applying it here so it continues to show up in the history in case I ever want to look at it again. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a new Agent::Downloader class for downloading files.Luke Kanies2009-02-061-0/+78
This will handling downloading facts and plugins. Signed-off-by: Luke Kanies <luke@madstop.com>