splunk / ansible-role-for-splunk

Splunk@Splunk's Ansible role for installing Splunk, upgrading Splunk, and installing apps/addons on Splunk deployments (VM/bare metal)
Apache License 2.0
146 stars 102 forks source link

No User/Group creation during Installation for non root User #142

Open gseyerl opened 1 year ago

gseyerl commented 1 year ago

Hi, thanks for the effort you put in those ansibel roles.

We are using an Identity Management System with centralized splunk user/group creation.

Therefore, it would be great for us to have a boolean variable (e.g. splunk_configure_nix) to turn off local user/group creation for non root users. The configure_facl.yml and configure_bash.yml roles would still be applyable in our usecase.

Best regards G

dtwersky commented 1 year ago

@gseyerl I would rather have ansible check if the user exists in the directory service, and based on that decide whether to create a local user or not. The getent module should be able to provide that information, have you tried using that to see if it'll work?

arcsector commented 1 year ago

I think this might have been fixed by https://github.com/splunk/ansible-role-for-splunk/pull/143