summaryrefslogtreecommitdiffstats
path: root/lib/puppet/agent.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixing the Agent so puppetrun actually works server-sideLuke Kanies2009-05-271-2/+2
| | | | | | | We weren't correctly propagating options through to the Configurer instance. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding an Agent::Runner class.Luke Kanies2009-02-061-0/+2
| | | | | | | 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>
* The Agent now uses its lockfile to determine running stateLuke Kanies2009-02-061-6/+1
| | | | | | | | This makes it so we can easily create and use lots of agent instances, rather than having a single global instance with shared state. Signed-off-by: Luke Kanies <luke@madstop.com>
* Creating and using a new Puppet::Daemon classLuke Kanies2009-02-061-14/+25
| | | | | | | | | | | | 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-061-168/+81
| | | | | | | | | | | | 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>
* Removing obsolete code and tests for the agent.Luke Kanies2009-02-061-89/+0
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Converting the catalog as neededLuke Kanies2009-02-061-11/+19
| | | | | | | Converting to a Resource catalog for transmission, then converting to a RAL catalog on the client. Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving the Agent locking code to a module.Luke Kanies2009-02-061-38/+18
| | | | | | | Also cleaning up the lock usage by yielding to a block when a lock is attained. Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving classfile-writing to the CatalogLuke Kanies2009-02-061-19/+2
| | | | | | | | This work was done by the Agent class before, but it's really related to the catalog, so that's where it is now. Signed-off-by: Luke Kanies <luke@madstop.com>
* Moving fact and plugin handling into modulesLuke Kanies2009-02-061-263/+77
| | | | | | | | | | 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>
* Removing the Agent code that added client-side factsLuke Kanies2009-02-061-9/+0
| | | | | | It's now moved to the Facter indirector terminus. Signed-off-by: Luke Kanies <luke@madstop.com>
* Renmaing Puppet::Network::Client::Master to Puppet::AgentLuke Kanies2009-02-061-0/+526
| | | | | | | | | Made minor changes, including removing the parent class. The functionality hasn't changed yet -- that comes in later patches -- but all but a couple of the older tests pass. Signed-off-by: Luke Kanies <luke@madstop.com>
* Revert "Adding the first bits of an Agent class."Luke Kanies2009-02-061-107/+0
| | | | This reverts commit bbd99cc87a775732f2fed3686962647a5c30c5b8.
* Revert "This is work that I've decided not to keep"Luke Kanies2009-02-061-390/+39
| | | | This reverts commit f57a5e88229578747dde2c90af3a696ad0172e72.
* This is work that I've decided not to keepLuke Kanies2009-02-061-39/+390
| | | | | | | 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 the first bits of an Agent class.Luke Kanies2009-02-061-0/+107
This class replaces the existing, all-knowing Client::Master class, and it will hopefully be more reasonable in scope. Signed-off-by: Luke Kanies <luke@madstop.com>