1 Puppet::Type.newtype(:rabbitmq_erlang_cookie) do
3 Type to manage the rabbitmq erlang cookie securely
5 This is essentially a private type used by the rabbitmq::config class
6 to manage the erlang cookie. It replaces the rabbitmq_erlang_cookie fact
7 from earlier versions of this module. It manages the content of the cookie
8 usually located at "${rabbitmq_home}/.erlang.cookie", which includes
9 stopping the rabbitmq service and wiping out the database at
10 "${rabbitmq_home}/mnesia" if the user agrees to it. We don't recommend using
14 newparam(:path, namevar: true)
16 newproperty(:content) do
17 desc 'Content of cookie'
19 def change_to_s(_current, _desired)
20 'The rabbitmq erlang cookie was changed'
26 newvalues(:true, :false)
29 newparam(:rabbitmq_user) do
33 newparam(:rabbitmq_group) do
37 newparam(:rabbitmq_home) do
38 defaultto('/var/lib/rabbitmq')
41 newparam(:service_name) do