I''m attempting to work with the puppetforge haproxy module.
The module uses concat and I get how it works, but I''m having some
problems
with the sequencing.
What the module does is:
For the listener:
order => "20-${name}" // ${name} is the name of the listening
service
For the balancermember
order => "20-${listening_service}-${name}" // listening_service is
== name
above and $name == the name of the member
on the surface this seems correct to generate a file with a parent child
relationship
listener1
member1
member2
listener2
member1
memeber2
From speaking with other folks who use the module this does seem to work!
When I use it though, the members appear where ever the hell they want to
in the file.
I believe this is because concat is using the ASCII value of the string,
and that ASCII value could be different, especially
if you''ve got differently named listeners.
So instead of listener1 and listener2, I might have "daverules" and
"d3"
Which throws the whole ordering out of wack.
Assuming that that I need to name my listeners as I have
My question to all is
#1 is my assessment correct?
#2 what''s the best way to solve this with concat?
What i''ve done is add a customizable $sequence to the class definition
and
set that
to like 20 for the first listener, 25 for all of its members, 30 for the
2nd listener and so on,
and that seems to work, but seems hacky.
Any tips here would be great.
thanks!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/95_mb-p9r0UJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.