ansible-role-for-splunk
ansible-role-for-splunk copied to clipboard
Enhancement: Add support for splunk.secret to be passed as a variable
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).
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
Other code needs to be updated, otherwise all pass4symmkey and sslPasswords won't be able to decrypt and your server probably won't start.