Skip to content

Instantly share code, notes, and snippets.

@alkampfergit
Created June 5, 2015 08:55
Show Gist options
  • Save alkampfergit/c242e936807ea941a1d6 to your computer and use it in GitHub Desktop.
Save alkampfergit/c242e936807ea941a1d6 to your computer and use it in GitHub Desktop.
Vagrant configuration for Greylog and hyper-v provider
Vagrant.configure(2) do |config|
config.vm.box = "tomassrnka/trusty64"
config.vm.hostname = "graylog"
config.vm.network :forwarded_port, guest: 9000, host: 9000
config.vm.network :forwarded_port, guest: 12900, host: 12900
config.vm.network :forwarded_port, guest: 12201, host: 12201, protocol: 'udp'
config.vm.network :forwarded_port, guest: 12201, host: 12201, protocol: 'tcp'
config.vm.provider "hyperv" do |v|
v.vmname = "greylog"
v.memory = 2048
end
$script = <<SCRIPT
echo 'Going to download Graylog...'
curl -s -L -O https://packages.graylog2.org/releases/graylog2-omnibus/ubuntu/graylog_latest.deb
dpkg -i graylog_latest.deb
rm graylog_latest.deb
graylog-ctl reconfigure
SCRIPT
config.vm.provision "shell", inline: $script
end
@alkampfergit
Copy link
Author

Adapted from the original vagrant file https://github.com/Graylog2/graylog2-images/tree/master/vagrant

Remember the issue with vagrant for windows 1.7.2 described here hashicorp/vagrant#5260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment