Browse Source

Add check_mk tasks and roles

pull/16/head
Tom 3 years ago
parent
commit
b5b06841d1
4 changed files with 90 additions and 2 deletions
  1. +0
    -2
      .gitignore
  2. +19
    -0
      roles/checkmk-agent/tasks/main.yml
  3. +61
    -0
      roles/checkmk-server/tasks/main.yml
  4. +10
    -0
      site.yml

+ 0
- 2
.gitignore View File

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

+ 19
- 0
roles/checkmk-agent/tasks/main.yml 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

+ 61
- 0
roles/checkmk-server/tasks/main.yml 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

+ 10
- 0
site.yml View File

@ -26,6 +26,16 @@
- librenms
- 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
hosts: helium.binary-kitchen.net
roles:


Loading…
Cancel
Save