Hello!
My situation is I'm doing a new installation of Splunk on a windows instance with an existing splunk.secret.
Question: Is there a command line flag to pass the splunk.secret during the initial installation?
My process in the past was to install Splunk without launching in order to prevent passwords from being generated. Then copy the splunk.secret over and start Splunk. It has been a while though and I think something changed, because Splunk writes a password to server.conf even if it isn't started for the first time. Now I have to remove the password with another command before starting it.
Install Splunk the way that you plan to. Start Splunk. See what the pat is where it creates the splunk.secret file. Stop Splunk. Remove EVERYTHING. Reinstall Splunk. BEFORE YOU START SPLUNK, drop the splunk.secret file. Start Splunk.