Sha256: 84e66f8f60e44a71ff4fc0593975f1790b7d9e4fc887f3a09dec93129931d990
Contents?: true
Size: 893 Bytes
Versions: 23
Compression:
Stored size: 893 Bytes
Contents
# # Simple module for logging messages on the client-side # module Puppet newtype(:notify) do @doc = "Sends an arbitrary message to the agent run-time log." newproperty(:message) do desc "The message to be sent to the log." def sync case @resource["withpath"] when :true send(@resource[:loglevel], self.should) else Puppet.send(@resource[:loglevel], self.should) end return end def retrieve :absent end def insync?(is) false end defaultto { @resource[:name] } end newparam(:withpath) do desc "Whether to not 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
Version data entries
23 entries across 23 versions & 1 rubygems