Make elasticsearch max indexes configurable via attribute