-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Consul Watch: Ignore owner/group on windows machines #313
Conversation
imho it would be better to have the reverse, as windows is the edge case not *nix something like unless windows... |
@majormoses I totally agree. I just wanted to be consistent with rest of cookbook. I modified other places with linux condition to the same |
Since we're including the helper library, you can use this method: https://github.com/johnbellone/consul-cookbook/blob/master/libraries/helpers.rb#L18 unless windows?
owner new_resource.owner
group new_resource.group
mode '0640'
end |
good call on using the helper library functions I hadn't looked at that |
done .. |
Hi, Thanks |
@Ginja @jarosser06
So, 6913f6b should be reverted |
|
To use the helper methods in a resource block you first need to do this:
@johnbellone's solution would work too, as we inject the methods into the Node class: https://github.com/johnbellone/consul-cookbook/blob/master/libraries/helpers.rb#L147 |
This is fixed and released in 2.1.3. |
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. |
Same owner/group strategy as in https://github.com/johnbellone/consul-cookbook/blob/master/libraries/consul_definition.rb.