These attributes are redundant in the default.rb attribute file because they cause
a confusion about how the default values of consul_config's owner and group params are actually determined.
Due to Poise inversion options, the node's attribute will always have a precedence.
They are designed to be used by cookbook end-users in their wrapper cookbooks.
Default values of ['service_owner'] and ['service_group'] are "consul" too, so we can
remove ['config']['owner'] and ['config']['group'] without any effect.
These attributes are redundant in the default.rb attribute file because they cause a confusion about how the default values of
consul_config
'sowner
andgroup
params are actually determined.Due to Poise inversion options, the node's attribute will always have a precedence. They are designed to be used by cookbook end-users in their wrapper cookbooks.
We already have default values defined in the resource itself: https://github.com/johnbellone/consul-cookbook/blob/eebc1299cefb6d766218904ea372566cc84bf373/libraries/consul_config.rb#L21-L26
Default values of
['service_owner']
and['service_group']
are "consul" too, so we can remove['config']['owner']
and['config']['group']
without any effect.Fixes #405