Friday, June 06, 2014

Deploying your own mosquitto instance for Owntracks (and more!)

I've spent a bit of effort creating a mosquitto cookbook; so it's easy to get up and running.

I've previously covered how you setup owntracks, but that relied on someone else spinning up a server for you.

The simplest possible deployment:


{
  "run_list": ["recipe[mosquitto]", "recipe[mine]"],
  "mosquitto": {
    "listeners": [
      {"port": 1883, "addr": "127.0.0.1"}
    ]
  }

}


Don't forget to start the service

service 'mosquitto' do
  action :start
end


There's plenty more you can configure. If you wanted to try it out on different platforms (Raspberry Pi, Mac, etc), please do - all pull requests welcome!

No comments: