splunk / splunk-ansible

Ansible playbooks for configuring and managing Splunk Enterprise and Universal Forwarder deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set_as_deployment_client role does not support deploying pass4symmkey

alexhaydock opened this issue · comments

Rather than the current approach to configuring a Splunk instance as a deployment client, which involves auth-ing as admin and thus deploying using a valid Splunk admin password for the DS MGMT interface:

command: "{{ splunk.exec }} set deploy-poll {{ splunk.deployment_server }}:{{ splunk.svc_port }} -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"

I would like to propose that an alternative mechanism is used, which would write the deployment server info to deploymentclient.conf directly.

This also allows for the use of pass4symmkey to authenticate a client which I think would be highly beneficial:

[deployment]
pass4SymmKey = helloworld

I might be missing something about why this decision has been made though so if anyone could enlighten me then that would be much appreciated. Otherwise I will try and craft a PR that might start to solve this issue (and #670 at the same time).