Consul doesn't allow a custom group name
Zendesk: https://gitlab.zendesk.com/agent/tickets/92972
One of our customers has a highly regulated environment where users and groups must match a predefined format, and the usernames and group names don't match. All of our services allow setting a user and group such as registry['user'] = 'foo'
and registry['group'] = 'bar'
.
However, the Consul recipes don't acknowledge a consul['group']
configuration and instead re-uses the consul['user']
value for group. This causes a problem in the customer's environment since usernames and group names don't match up.
I think all we need to do is add a consul['group']
attribute and then use it in the enable.rb
recipe rather than reusing the user.