Issue #12934 has been updated by Chris Price.

For PS folks who were asking about the error messaging around this... here's an 
example interaction:

root@pe-ubuntu-lucid:~# puppet agent --disable
    root@pe-ubuntu-lucid:~# puppet agent --test
    notice: Skipping run of Puppet configuration client; administratively 
disabled (Reason: 'reason not specified');                                      
                                                                    
    Use 'puppet agent --enable' to re-enable.                                   
                                 
    root@pe-ubuntu-lucid:~# puppet agent --enable
    root@pe-ubuntu-lucid:~# puppet agent --disable "I'm busy right now.  Check 
back later."
    root@pe-ubuntu-lucid:~# puppet agent --test
    notice: Skipping run of Puppet configuration client; administratively 
disabled (Reason: 'I'm busy right now.  Check back later.');                    
                                                                    
    Use 'puppet agent --enable' to re-enable.                                   
                                 
    root@pe-ubuntu-lucid:~# puppet agent --enable
    root@pe-ubuntu-lucid:~# 

I'm about to submit a pull request with the changes in it; however, it would be 
trivially easy to change the message if you guys have suggestions, so please 
let me know.
----------------------------------------
Feature #12934: Allow customizable message for administratively disabled agents
https://projects.puppetlabs.com/issues/12934#change-60906

Author: Chris Price
Status: Accepted
Priority: Normal
Assignee: Chris Price
Category: 
Target version: Telly
Affected Puppet version: 
Keywords: 
Branch: 


This ticket was created from #4836—breaking into two separate tickets because 
the requested functionality will be targeted at two separate versions of puppet.

----------------------------------------------------------------------
We'd like for

<pre>
puppet agent --disable
</pre>

to be able to accept a custom error message, e.g.:
<pre>
puppet agent —disable "micah is fixing stunnel template”
</pre>

Then, if you try to run the agent, you will get output that might look like 
this:

<pre>
notice: Puppet is administratively disabled because micah is fixing stunnel 
template; skipping run
</pre>

Some code that supports this behavior was already written ( 
https://github.com/puppetlabs/puppet/pull/216 , ticket #4836), but it was 
reverted because it changes the lockfile semantics which are relied upon by 
mcollective.  We'd like to re-introduce this for 3.x.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to