Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Created December 4, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cecilemuller/ee10bc0209b204d0f5c3b35c7bf27655 to your computer and use it in GitHub Desktop.
Save cecilemuller/ee10bc0209b204d0f5c3b35c7bf27655 to your computer and use it in GitHub Desktop.
Vagrant: Mosquitto
Vagrant.configure(2) do |configs|
configs.vm.define "mosquitto", autostart: true do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = true
config.vm.network "forwarded_port", guest: 1883, host: 1883
config.vm.provider "virtualbox" do |vb|
vb.name = "Mosquitto"
vb.memory = 512
end
config.vm.provision "shell", privileged: true, :inline => <<-SHELL
sudo apt-get update
sudo apt-get install mosquitto -y
systemctl status mosquitto
SHELL
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment