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

Optionally manage splunk user/group #223

Closed
nick-markowski opened this issue Apr 10, 2019 · 1 comment
Closed

Optionally manage splunk user/group #223

nick-markowski opened this issue Apr 10, 2019 · 1 comment

Comments

@nick-markowski
Copy link
Contributor

Bug: Changing the splunk user from the default (root on Linux) to another user will result in failures when the config files are ensured.

To reproduce, set splunk::params::splunk_user: 'splunk' #or any group/user for this matter

Fix: We should optionally manage the splunk user/group and default management to false:

params.pp:

Boolean $manage_splunk_user                = false,

install.pp:

if $splunk::enterprise::manage_splunk_user {
    group { $splunk::enterprise::splunk_user:
      ensure  => 'present',
      require =>  Package[$splunk::enterprise::enterprise_package_name],
    }
    user { $splunk::enterprise::splunk_user:
      ensure  => 'present',
      require =>  Group[$splunk::enterprise::splunk_user],
    }
  }

I can have a PR staged in short order

@nick-markowski
Copy link
Contributor Author

I'll re-open if/when I can better define the need for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant