This Vagrant setup can be used to test the Chef / Graylog / Icinga2 demo that has been presented at the OSDC 2015 conference.
You need to have Vagrant installed.
$ vagrant plugin install vagrant-triggers
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus
$ vagrant up monitor
$ vagrant up webserver
Service | URL | Username | Password | Notes |
---|---|---|---|---|
Graylog | http://localhost:9000/ | admin | admin | - |
Icinga2 | http://localhost:8080/icinga/ | admin | admin | Needs manual setup via browser! |
Webapp | http://localhost:8081/ | - | - | - |
You have to manually set up the Icingaweb2 app by visiting the URL and answering some questions. You can mostly just use the defaults.
Find database credentials and database names in chef.json
and make
sure to use 127.0.0.1
instead of localhost
for the database server
setting!
There is a script to run chef-client on webserver
.
Just login to webserver
via vagrant ssh webserver
and execute
/vagrant/run-chef-client.sh
to trigger a Chef run.
The webapp cookbook can be found in cookbooks/webapp
. Tweak that
to see the different results in Graylog.
Also try to break it to see errors in Graylog as well.