Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696715
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/lib/puppet/type/rabbitmq_erlang_cookie.rb b/lib/puppet/type/rabbitmq_erlang_cookie.rb
index 0673caf..690c91b 100644
--- a/lib/puppet/type/rabbitmq_erlang_cookie.rb
+++ b/lib/puppet/type/rabbitmq_erlang_cookie.rb
@@ -1,44 +1,55 @@
Puppet::Type.newtype(:rabbitmq_erlang_cookie) do
desc <<-DESC
Type to manage the rabbitmq erlang cookie securely
This is essentially a private type used by the rabbitmq::config class
to manage the erlang cookie. It replaces the rabbitmq_erlang_cookie fact
from earlier versions of this module. It manages the content of the cookie
usually located at "${rabbitmq_home}/.erlang.cookie", which includes
stopping the rabbitmq service and wiping out the database at
"${rabbitmq_home}/mnesia" if the user agrees to it. We don't recommend using
this type directly.
DESC
newparam(:path, namevar: true)
newproperty(:content) do
desc 'Content of cookie'
newvalues(%r{^\S+$})
+
def change_to_s(_current, _desired)
'The rabbitmq erlang cookie was changed'
end
+
+ # rubocop:disable Style/PredicateName
+ def is_to_s(_value)
+ '[old content redacted]'
+ end
+ # rubocop:enable Style/PredicateName
+
+ def should_to_s(_value)
+ '[new content redacted]'
+ end
end
newparam(:force) do
defaultto(:false)
newvalues(:true, :false)
end
newparam(:rabbitmq_user) do
defaultto('rabbitmq')
end
newparam(:rabbitmq_group) do
defaultto('rabbitmq')
end
newparam(:rabbitmq_home) do
defaultto('/var/lib/rabbitmq')
end
newparam(:service_name) do
newvalues(%r{^\S+$})
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Aug 18, 9:07 PM (6 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3311257
Attached To
R198 puppet-puppet-rabbitmq
Event Timeline
Log In to Comment