Created
December 4, 2017 14:49
-
-
Save cecilemuller/ee10bc0209b204d0f5c3b35c7bf27655 to your computer and use it in GitHub Desktop.
Vagrant: Mosquitto
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
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