1 Puppet::Type.newtype(:rabbitmq_policy) do
2 desc 'Native type for managing rabbitmq policy'
14 newparam(:name, :namevar => true) do
20 desc 'Vhost for policy'
25 desc 'Regex match for policy'
33 if self[:ensure] == :present and ! self[:policy] and ! self[:match]
34 raise ArgumentError, 'must set policy and match' unless self[:policy] and self[:match]