Graylog2 Puppet install notes

Assuming Ubuntu 14.04 “Trusty” as the OS here… this should probably work on Debian 8 with just a change on the Mongo repo.

First, install puppet if you haven’t already.
sudo apt-get update && sudo apt-get install -y puppet

Next, add ES and Mongo official packages to the repo. Graylog generally requires newer versions of ES than are in the mainline Debian or Ubuntu repos.

wget -qO - | sudo apt-key add -

echo "deb stable main" | sudo tee -a /etc/apt/sources.list

sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10

echo "deb "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

apt-get update

Use this quick manifest:

puppet apply graylog.pp

Note that this doesn’t seem to install the graylog-ctl binary for some reason. Use systemd to start/stop/restart (graylog-server and graylog-web are the two you’re probably looking for). Remember that by default, Graylog will use port 9000 for the web interface.