Add check_mk tasks and roles

This commit is contained in:
Tom 2018-06-13 16:47:18 +02:00
parent e5e92ebb44
commit b5b06841d1
4 changed files with 90 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,6 +1,4 @@
.vault_pass .vault_pass
site.retry site.retry
playbooks/*.retry
inventory/*.hosts
ansible.log ansible.log
*.swp *.swp

View File

@ -0,0 +1,19 @@
---
- name: Download Check_MK Agent
get_url:
dest: /opt/check-mk-agent_1.4.0p33-1_all.deb
mode: 0755
validate_certs: no
url: https://forseti.binary.kitchen/bk/check_mk/agents/check-mk-agent_1.4.0p33-1_all.deb
- name: Install Check_MK Agent dependencies
apt: name={{ item }}
with_items:
- xinetd
- name: Install Check_MK Agent
apt:
deb: "/opt/check-mk-agent_1.4.0p33-1_all.deb"
state: present

View File

@ -0,0 +1,61 @@
---
- name: Download Check_MK
get_url:
dest: /opt/check-mk-raw-1.4.0p33_0.stretch_amd64.deb
mode: 0755
url: https://mathias-kettner.de/support/1.4.0p33/check-mk-raw-1.4.0p33_0.stretch_amd64.deb
- name: Install Check_MK dependencies
apt: name={{ item }}
with_items:
- cron
- debconf
- time
- traceroute
- curl
- dialog
- dnsutils
- fping
- graphviz
- apache2
- libdbi1
- libevent-2.0-5
- libgd3
- libltdl7
- libnet-snmp-perl
- libpango1.0-0
- libperl5.24
- libreadline7
- libsnmp-perl
- libuuid1
- patch
- binutils
- rpm
- php
- php-cgi
- php-cli
- php-gd
- php-mcrypt
- php-sqlite3
- php-pear
- rsync
- smbclient
- rpcbind
- lcab
- snmp
- unzip
- xinetd
- libfreeradius3
- libpcap0.8
- libgsf-1-114
- libglib2.0-0
- poppler-utils
- libffi6
- libssl1.0.2
- name: Install Check_MK
apt:
deb: "/opt/check-mk-raw-1.4.0p33_0.stretch_amd64.deb"
state: present

View File

@ -26,6 +26,16 @@
- librenms - librenms
- racktables - racktables
- name: Setup Check_MK server
hosts: forseti.binary.kitchen
roles:
- checkmk-server
- name: Install Check_MK Agent
hosts: forseti.binary.kitchen
roles:
- checkmk-agent
- name: Setup ldap server - name: Setup ldap server
hosts: helium.binary-kitchen.net hosts: helium.binary-kitchen.net
roles: roles: