ansible-role-for-splunk icon indicating copy to clipboard operation
ansible-role-for-splunk copied to clipboard

Enhancement: Add support for splunk.secret to be passed as a variable

Open chrisbalmer opened this issue 3 years ago • 2 comments

I'd like to be able to pass the splunk.secret as a variable instead of a file so it can be pulled from a secret storage (i.e. HashiCorp Vault, 1Password, etc).

chrisbalmer avatar Mar 13 '21 11:03 chrisbalmer

You can also do this with the builtin ansible copy module:

- name: Push the secrets file
  tags: install
  copy:
    content: '{{ splunk_secret' }}'
    dest: '{{ splunk_home }}/etc/auth/splunk.secret'
  notify:
    - restart splunk

shparker1977 avatar Apr 22 '21 19:04 shparker1977

Other code needs to be updated, otherwise all pass4symmkey and sslPasswords won't be able to decrypt and your server probably won't start.

peterchenadded avatar Sep 10 '21 11:09 peterchenadded