Created
April 16, 2017 20:34
-
-
Save nicksan2c/f4dde68bdb7f8635af46c41860843d21 to your computer and use it in GitHub Desktop.
Install Splunk on Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
config.vm.network "forwarded_port", guest: 8089, host: 8089 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo dpkg -i /vagrant/splunk-6* | |
sudo /opt/splunk/bin/splunk start --accept-license | |
sudo /opt/splunk/bin/splunk enable boot-start | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment