PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/notify.rb |
#
# Simple module for logging messages on the client-side
module Puppet
Type.newtype(:notify) do
@doc = "Sends an arbitrary message, specified as a string, to the agent run-time log. It's important to note that the notify resource type is not idempotent. As a result, notifications are shown as a change on every Puppet run."
apply_to_all
newproperty(:message, :idempotent => false) do
desc "The message to be sent to the log. Note that the value specified must be a string."
def sync
message = @sensitive ? 'Sensitive [value redacted]' : self.should
case @resource["withpath"]
when :true
send(@resource[:loglevel], message)
else
Puppet.send(@resource[:loglevel], message)
end
return
end
def retrieve
:absent
end
def insync?(is)
false
end
defaultto { @resource[:name] }
end
newparam(:withpath) do
desc "Whether to show the full object path."
defaultto :false
newvalues(:true, :false)
end
newparam(:name) do
desc "An arbitrary tag for your own reference; the name of the message."
isnamevar
end
end
end