To all,
I am on puppet 2.7.3 and I'm working on a custom RabbitMQ type, that will
use composite namevar. I did not see any work out there already for
managing rabbitMQ bindings so I've started on one and I'm running into
problems with the composite namevar. I have a very basic type ( below ) but
when I run the puppet as an agent I still get the error "Error 400 on
SERVER: Could not render to pson: you must specify title patterns when
there are two or more key attributes"
Any help or pointers would be appreciated.
#Puppet Manifest:
rabbitmq_binding { 'testing':
source => "src",
destination => "dest",
}
# Puppet Type
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
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/7a95297f-19ee-49e4-9ce9-e5c737d8e2f5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.