Skip to content

Instantly share code, notes, and snippets.

@dginther
Created July 19, 2013 20:57
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 dginther/6042280 to your computer and use it in GitHub Desktop.
Save dginther/6042280 to your computer and use it in GitHub Desktop.
include:
- mysql
icinga-repo:
pkgrepo.managed:
- humanname: Icinga PPA
- ppa: formorer/icinga
- require_in: icinga-pkgs
icinga-pkgs:
pkg.installed:
- pkgs:
- icinga
- icinga-idoutils
- libdbd-mysql
#/etc/icinga/modules/idoutils.cfg:
# file.append:
# - text: |
# define module{
# module_name idomod
# module_type neb
# path /usr/lib/icinga/idomod.so
# args config_file=/etc/icinga/idomod.cfg
# }
/etc/default/icinga:
file.sed:
- before: no
- after: yes
- limit: ^IDO2DB=
ido2db:
- service:
- running
- enable: True
- watch:
- file: /etc/icinga/ido2db.cfg
icinga:
- service:
- running
- enable: True
- watch:
- file: /etc/icinga/icinga.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment