rabbitmq_binding { 'testing':
source => "src",
destination => "dest",
}
Puppet::Type.newtype(:rabbitmq_binding) do
desc 'rabbitmq_binding creates a puppet type for managing rabbitMQ binding'
def self.title_patterns
[ [
/^(.*):(.*)$/, # pattern to parse <source>:<destination>
[
[:source, lambda{|x| x} ],
[:destination, lambda{|x| x} ]
] ]
]
end
newparam( :source ) do
isnamevar
end
newparam( :destination ) do
isnamevar
end
end