Closed aleoliva closed 5 years ago
Can you please attach the splunk_config.yml here or send it to me by mail? I need to reproduce.
Here is the zipped splunk_config.yml: splunk_config.zip
I could not reproduce your error with the config file you submitted here, but I have verified your config file and found several issues with it:
vagrant status
after changing something in the splunk_config.yml
file. This makes sure the config file changes are reflected in the ansible inventory.vagrant up
:
Bringing machine 'splkT_ds' up with 'virtualbox' provider...
Bringing machine 'splkT_cm' up with 'virtualbox' provider...
Bringing machine 'splkT_idx1s1' up with 'virtualbox' provider...
Bringing machine 'splkT_idx2s1' up with 'virtualbox' provider...
Bringing machine 'splkT_idx3s2' up with 'virtualbox' provider...
Bringing machine 'splkT_idx4s2' up with 'virtualbox' provider...
Bringing machine 'splkT_sh1' up with 'virtualbox' provider...
Bringing machine 'splkT_sh2' up with 'virtualbox' provider...
Bringing machine 'splkT_sh3' up with 'virtualbox' provider...
Bringing machine 'splkT_hf1' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
So, I renamed all the hosts to have a `-` insetad of the `_`
license_master
role on host splkT-cm
, but did not specify the splunk_license_file
. This also results in an error. I commented out the license_server role.monitoring_console
role on two servers. This is not supported and also throws an error during dserver setup. I commented out this role on the cluster master.splunk_environments:
- splunk_env_name: aleSplk_env1
You can define the environment name in the var splunk_env_name
in the section splunk_defaults:
. It does work with your config as well, but not using it is more clean. You can also get rid of the splunk_env_name
var in the hosts section like that.
Yes, it's true. I had two monitoring_console
roles defined.
After solve this point, I could go a bit further but the new error is:
fatal: [splkT-sh3]: FAILED! => {"msg": "The conditional check 'splunk_secret_share[splunk_install_app] == true' failed. The error was: error while evaluating conditional (splunk_secret_share[splunk_install_app] == true): 'splunk_secret_share' is undefined\n\nThe error appears to have been in '/home/linux/Vagrant/Splunkenizer/ansible/roles/splunk_software/tasks/main.yml': line 31, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: check for existing splunk.secret file\n ^ here\n"}
I cannot find documentation about where to place the splunk.secret
file
Thanks in advance. splunk_config.zip
The splunk.secret file will be picket up from the first installed server and placed into the auth
directory in the Splunkenizer
folder. The folder will be created automatically, when vagrant runs.
True and I had missed to set splunk_license_file
on _config/splunkconfig.yml, although I was installing a license_master
.
Solved, e.g.:
...
splunk_defaults:
splunk_license_file: Splunk_Enterprise.lic
...
splunk_hosts:
- name: splk-ds
roles:
- deployment_server
- license_master
shcluster: shc1
...
Hi Marco,
I face an error while creating a distributed Splunk environment. The error is on task
[baseconfig_app : (org_cluster_search_base) setting static unhashed pass4SymmKey on clustermaster stanza]
, using Splunkenizer version 1.2devel:Ansible version is:
The error is reproducible, additional details can be submitted if you need them.