On Sep 4, 2013, at 7:05 AM, Igor Galić <[email protected]> wrote:
> > Hi folks, > > I'm writing on a puppet module to build a remap config (among other things). > right now I'm creating reverse_map rules automatically if reverse_map is > empty, simply by reversing map rules. > > It turns out to be highly naïve: > > map http://example.org http://web-backend-42 > map http://examples.com http://web-backend-42 > > How do I reverse_map that? Unfortunately, you don't. If there is no 1-to-1 mapping on the reverse, how would it know which one to choose ? Cheers, -- Leif
