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

Allow splunk_nix user/group to be configurable as system user/group #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/splunk/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ splunk_install_path: /opt # Base directory on the operating system to which splu
least_privileged: false # Do not change. This get automatically set in `tasks/main.yml` based on the version and install type.
splunk_nix_user: splunk
splunk_nix_group: splunk
splunk_nix_system_user: false # Whenther or not to create splunk nix user/group as a system user/group
local_os_user: false # Whenther or not to force creation of a user using the `luseradd` or not.
local_os_group: false # Whether or not to force creation of a group using the `lgroupadd` or not.
splunk_uri_lm: undefined
Expand Down
2 changes: 2 additions & 0 deletions roles/splunk/tasks/install_splunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- name: Add nix splunk group
group:
name: "{{ splunk_nix_group }}"
system: "{{ splunk_nix_system_user }}"
state: present
local: "{{ local_os_group }}"
become: true
Expand All @@ -17,6 +18,7 @@
name: "{{ splunk_nix_user }}"
group: "{{ splunk_nix_group }}"
home: "{{ splunk_home }}"
system: "{{ splunk_nix_system_user }}"
state: present
shell: /bin/bash
local: "{{ local_os_user }}"
Expand Down