Hiro2021467 / Vagrant-for-Splunk

Vagrant-for-Splunk
0 stars 0 forks source link

Slunkのインストールやセットアップが自動でできない #1

Open Hiro2021467 opened 1 year ago

Hiro2021467 commented 1 year ago

setup_splunk.shをVagrantfile内から起動することで、splunkのインストールなどが自動で行われてほしいが、下記のエラーが出てしまう


~~~ [省略]~~~

==> splunk: Running provisioner: shell...
SSH connection was reset! This usually happens when the machine is
taking too long to reboot. First, try reloading your machine with
`vagrant reload`, since a simple restart sometimes fixes things.
If that doesn't work, destroy your machine and recreate it with
a `vagrant destroy` followed by a `vagrant up`. If that doesn't work,
contact support.
Hiro2021467 commented 1 year ago

Ansibleを用いたshellスクリプトの実行を試す

splunk.vm.provision "ansible_local" do |ansible|
    ansible.playbook = "./setup_splunk.yml"
  end