Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default attributes ['config']['owner'] and ['config']['group'] #446

Merged
merged 1 commit into from
Jun 11, 2017

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented May 30, 2017

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.

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

These attributes are redundant in the default.rb attribute file since they cause
a confusion about what are default values of `owner` and `group` params
of `counsul_config` resource.

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, so we can
remove default attributes without any effect.
@legal90 legal90 requested review from johnbellone and Ginja May 30, 2017 22:06
@legal90 legal90 modified the milestone: v3.0.0 May 31, 2017
@legal90 legal90 merged commit b31a3d2 into sous-chefs:master Jun 11, 2017
@legal90 legal90 deleted the remove-redundant-attributes branch June 11, 2017 12:15
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When service_user is root and config user is consul, cookbook fails
1 participant