Server IP : 111.118.215.189 / Your IP : 18.219.247.127 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/ruby/vendor_ruby/puppet/face/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
require 'puppet/indirector/face' require 'puppet/util/instrumentation/indirection_probe' Puppet::Indirector::Face.define(:instrumentation_probe, '0.0.1') do copyright "Puppet Labs", 2011 license "Apache 2 license; see COPYING" summary "Manage instrumentation probes. Deprecated" description <<-EOT This subcommand enables/disables or list instrumentation listeners. (DEPRECATED) This subcommand will be removed in Puppet 4.0. EOT get_action(:find).summary "Invalid for this subcommand." search = get_action(:search) search.summary "Retrieve all probe statuses." search.arguments "<dummy_text>" search.render_as = :pson search.returns <<-EOT The statuses of all instrumentation probes EOT search.short_description <<-EOT This retrieves all instrumentation probes EOT search.notes <<-EOT Although this action always returns all instrumentation probes, it requires a dummy search key; this is a known bug. EOT search.examples <<-EOT Retrieve the state of the probes running in the remote puppet master: $ puppet instrumentation_probe search x --terminus rest EOT action :enable do summary "Enable all instrumentation probes." arguments "<dummy>" returns "Nothing." description <<-EOT Enable all instrumentation probes. After being enabled, all enabled listeners will start receiving instrumentation notifications from the probes. EOT examples <<-EOT Enable the probes for the running master: $ puppet instrumentation_probe enable x --terminus rest EOT when_invoked do |name, options| Puppet::Face[:instrumentation_probe, '0.0.1'].save(nil) end end action :disable do summary "Disable all instrumentation probes." arguments "<dummy>" returns "Nothing." description <<-EOT Disable all instrumentation probes. After being disabled, no listeners will receive instrumentation notifications. EOT examples <<-EOT Disable the probes for the running master: $ puppet instrumentation_probe disable x --terminus rest EOT when_invoked do |name, options| Puppet::Face[:instrumentation_probe, '0.0.1'].destroy(nil) end end get_action(:save).summary "API only: enable all instrumentation probes." get_action(:save).arguments "<dummy>" get_action(:destroy).summary "API only: disable all instrumentation probes." get_action(:destroy).arguments "<dummy>" end