puppetlabs/mcollective-plugins — pull request #31 by mmrobins (2011-12-29 18:12:36+00:00)
Title: (#10221) Update puppetd plugin to take advantage of new agent statuses

Ticket #9923 allowed the puppetd plugin to trigger agent runs even when
the agent was already daemonized, but it introduced some new state
information about the puppet agent, :idling and :stopped, that wasn't
consolidated very well with the current understanding of puppet state by
other areas on the plugin.

This commit consolidates that state information to reply[:status], and
adds the reply[:idling] and reply[:stopped], like the reply[:running]
and reply[:enabled], for backward compatibility and easy command line
manipulation of the status information.

The agent, application and ddl were all updated to take advantage of
this new state information.

See https://github.com/puppetlabs/mcollective-plugins/pull/29 for previous discussion on this code. I'm making this new pull request since it's been rebased and should merge with a single click.