-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Ensure we dont mess with windows permissions with Unix ones #321
Ensure we dont mess with windows permissions with Unix ones #321
Conversation
I don't like the case statements. Instead, how about setting the defaults for the file resource in the class?
|
Cool! Will do that way :) |
I've done something slightly different, instead of redefining the whole module File references I've moved the references to params.pp as they should and set the right ones over there, let me know if that's okay! |
manifests/install.pp
Outdated
@@ -12,14 +12,32 @@ | |||
]: | |||
ensure => 'directory', | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for style, can you compact all the vertical whitespace in the "windows" block to make it more obvious to the eye that these are all for windows, and then align arrows?
manifests/install.pp
Outdated
"${install_path}/consul-${consul::version}/${$binary_name}": | ||
owner => $binary_owner, | ||
group => $binary_group, | ||
mode => '0555'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just do ',' and not ';'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh crap, I missed that one, sorry!
Just style stuff (https://travis-ci.org/solarkennedy/puppet-consul/jobs/205823470) and I'll click the button! |
Done! Once this is merged I'll start working on integrating all this to the latest master so Windows works out of the box |
I'm not sure why the tests are failing... I looks like puppet-archive, but we pin in fixtures.yml, I'm not sure how a breaking change would get through... |
Can you try rebasing on master to see if the tests pass now? |
Hi, |
@lynxman it's all good. Do whatever you are git-comfortable with. |
Cool, Let me sort it out and will come back with passing tests :) |
This may be obsoleted by #352 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We found issues with unix file definitions on our Windows servers in which the file would be unreadable by Windows due to permissions disappearing, this fixes it.
Once this is merged I'll start working on getting this branch up to speed with master