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

Explicit Group Init in Boot Config #137

Merged
merged 11 commits into from
Nov 8, 2022
Merged

Explicit Group Init in Boot Config #137

merged 11 commits into from
Nov 8, 2022

Conversation

arcsector
Copy link
Contributor

Summary

Had to rebase a bit since my commits weren't attributed to my user, but the only commit needed is the last one. Essentially I'm just adding the -group flag to the boot start command since it's not there currently, and that causes some drift from the expected configs of the file permissions.

Changes

Changed roles/splunk/tasks/configure_splunk_boot.yml to include -group {{ splunk_nix_group }}

arcsector and others added 11 commits October 11, 2022 11:43
* added license files and test environments to .gitignore

* Added more license configuration options

* Disable THP using tuned

* new variables for version and build. updated to 9.0.0.1

* check if splunk_package_version is newer. regex gets full version

* Fixed many boot-start issues
* Adding DMC Playbook and Task

* DMC playbook merge with task - update README
Co-authored-by: Merrel Raney III <merrel.raney@fiscal.treasury.gov>
Co-authored-by: dtwersky <80541771+dtwersky@users.noreply.github.com>
@dtwersky
Copy link
Collaborator

dtwersky commented Oct 24, 2022

Good suggestion. I tested this, and it seems that when you restart the splunk service, it gets set to the primary group the splunk_nix_user is set to. the splunk_nix_group is only set as an additional group to that user. The primary group is automatically set by the OS to the same of the user name when the user is created initially.

Some further research is needed to get this straightened out.

My bad. I tested it after the user was already created. This seems to work fine if the user does not exist.

@dtwersky dtwersky added the bug Something isn't working label Oct 24, 2022
@arcsector
Copy link
Contributor Author

Awesome - thanks.

@jewnix
Copy link
Collaborator

jewnix commented Oct 25, 2022

Now I'm thinking if this should have been group instead of groups.

@arcsector
Copy link
Contributor Author

It definitely should be, but the issue with the splunk init boot config still requires a patch. I can add it to the PR if you'd like.

@dtwersky dtwersky merged commit 718fcbd into splunk:master Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants