-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
[BREAKING] Sous-Chefs Adoption #767
Conversation
EnvironmentFile=-<%= @default_dir %>/<%= @program_name %> | ||
|
||
WorkingDirectory=<%= @path_home %> | ||
|
||
User=elasticsearch | ||
Group=elasticsearch | ||
User=<%= @es_user %> |
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.
Elasticsearch recommended these be overridden using systemd's "drop-in" file and not to customize their systemd unit, which is why the cookbook did things that way originally.
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.
Have you got an example of how we can do a drop-in file with Chef? The old way was slightly confusing.
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.
It was just a file resource with some content provided via that attribute. It's really not chef specific, but I think you're right that an example would be helpful...
- Update check-chef-metadata-action to version `0.0.4` - Add support for Amazon Linux 2022 - Comment out OpenSUSE Leap 15 and double instance suite from matrix [.github/workflows/ci.yml] - Update check-chef-metadata-action from version `0.0.3` to `0.0.4` - Add support for Amazon Linux 2022 - Comment out OpenSUSE Leap 15 and double instance suite from matrix - Add debug output on failure
81c0ff2
to
2b506a4
Compare
Released as: 5.0.0 |
directory new_resource.path_data do | ||
owner es_user.username | ||
group es_user.groupname | ||
mode '0755' |
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.
Shouldn't it be 750
?
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.
If you've got documentation that it should be. Happy for a PR 👍🏼
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.
to be more exact during a chef run:
* directory[/data] action create
- change mode from '0755' to '0750'
* directory[/data] action create
- change mode from '0750' to '0755'
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.
Ace, if you can make the PR, I'l merge it today 👍🏼
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.
You are setting 750 in the above resource, and 755 here.
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.
end | ||
end | ||
|
||
directory new_resource.path_data do |
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.
What will happen if path_data
is array here? Can this param be array at all in ES context? I doubt that. I'm happy to make a PR if you agree.
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.
We should probably only accept a String there then or iterate over the array. Happy with which ever approach you see fit 👍🏼
See below for possible breaking changes.
partials
Resovles
#765, #731, #729, #730,