X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Frabbitmq%2Flib%2Fpuppet%2Ftype%2Frabbitmq_erlang_cookie.rb;fp=3rdparty%2Fmodules%2Frabbitmq%2Flib%2Fpuppet%2Ftype%2Frabbitmq_erlang_cookie.rb;h=c2e5898dce60060a6b58bb729b1558655cf24ebb;hb=24caa46729f80fbba4be8b9b26ebcb3acc4cb0fb;hp=0673cafd6ff1b53843d19e8b478de09567145bfe;hpb=c7e7bcc28cc5dc48a7e284a3c82f33df27d1f57d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/rabbitmq/lib/puppet/type/rabbitmq_erlang_cookie.rb b/3rdparty/modules/rabbitmq/lib/puppet/type/rabbitmq_erlang_cookie.rb index 0673cafd6..c2e5898dc 100644 --- a/3rdparty/modules/rabbitmq/lib/puppet/type/rabbitmq_erlang_cookie.rb +++ b/3rdparty/modules/rabbitmq/lib/puppet/type/rabbitmq_erlang_cookie.rb @@ -1,23 +1,13 @@ Puppet::Type.newtype(:rabbitmq_erlang_cookie) do - desc <<-DESC -Type to manage the rabbitmq erlang cookie securely + 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) + 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' + newvalues(/^\S+$/) + def change_to_s(current, desired) + "The rabbitmq erlang cookie was changed" end end @@ -39,6 +29,6 @@ DESC end newparam(:service_name) do - newvalues(%r{^\S+$}) + newvalues(/^\S+$/) end end