ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 405d5748ecd9807347ad9d7e01bdd3c8f04b6a39
parent ab3cfd0377765707b0834648e3c33167b6523713
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Mon,  7 Sep 2020 22:17:51 +0300

ansible: Remove obsolete files

Diffstat:
ansible/inventory/group_vars/all/apt_install.yml | 8++++----
ansible/inventory/group_vars/all/influxdb.yml | 3---
ansible/inventory/group_vars/all/monit.yml | 7-------
ansible/roles/monit/handlers/main.yml | 6------
ansible/roles/monit/tasks/main.yml | 10----------
ansible/roles/monit/templates/cpu_ram.monit.j2 | 4----
ansible/roles/monit/templates/fs.monit.j2 | 2--
ansible/roles/monit/templates/ssh.monit.j2 | 4----
8 files changed, 4 insertions(+), 40 deletions(-)

diff --git a/ansible/inventory/group_vars/all/apt_install.yml b/ansible/inventory/group_vars/all/apt_install.yml @@ -1,7 +1,7 @@ --- apt_install__packages: [git, vim, rxvt-unicode-256color, screen, tmux, - fail2ban, mlocate, htop, sudo, ferm, strace, ltrace, file, monit, less, - nmon, colordiff, bash-completion, telnet, dstat, ca-certificates, curl, - sysstat, tcpdump, zsh, mosh, lsof, iotop, netcat, mtr-tiny, bwm-ng, - etckeeper, prometheus-node-exporter] + fail2ban, mlocate, htop, sudo, ferm, strace, ltrace, file, less, nmon, + colordiff, bash-completion, telnet, dstat, ca-certificates, curl, sysstat, + tcpdump, zsh, mosh, lsof, iotop, netcat, mtr-tiny, bwm-ng, etckeeper, + prometheus-node-exporter] diff --git a/ansible/inventory/group_vars/all/influxdb.yml b/ansible/inventory/group_vars/all/influxdb.yml @@ -1,3 +0,0 @@ ---- - -influxdb__tinc_ip: '192.168.166.1' diff --git a/ansible/inventory/group_vars/all/monit.yml b/ansible/inventory/group_vars/all/monit.yml @@ -1,7 +0,0 @@ ---- - -monit_mail_servers: - - host: 'mail.erethon.com' - port: 587 - -monit_fs_percentage: 75 diff --git a/ansible/roles/monit/handlers/main.yml b/ansible/roles/monit/handlers/main.yml @@ -1,6 +0,0 @@ ---- - -- name: Restart Monit - service: - name: monit - state: restarted diff --git a/ansible/roles/monit/tasks/main.yml b/ansible/roles/monit/tasks/main.yml @@ -1,10 +0,0 @@ ---- - -- template: - src: "{{ item.src }}" - dest: "/etc/monit/conf.d/{{ item.dest }}" - with_items: - - {src: "fs.monit.j2", dest: "fs"} - - {src: "ssh.monit.j2", dest: "ssh"} - - {src: "cpu_ram.monit.j2", dest: "cpu_ram"} - notify: Restart Monit diff --git a/ansible/roles/monit/templates/cpu_ram.monit.j2 b/ansible/roles/monit/templates/cpu_ram.monit.j2 @@ -1,4 +0,0 @@ -check system localhost - if memory usage > 85% then alert - if cpu usage (user) > 80% for 3 cycles then alert - if cpu usage (system) > 80% for 3 cycles then alert diff --git a/ansible/roles/monit/templates/fs.monit.j2 b/ansible/roles/monit/templates/fs.monit.j2 @@ -1,2 +0,0 @@ -check device rootfs with path / - if SPACE usage > {{ monit_fs_percentage }}% then alert diff --git a/ansible/roles/monit/templates/ssh.monit.j2 b/ansible/roles/monit/templates/ssh.monit.j2 @@ -1,4 +0,0 @@ -check process sshd with pidfile /var/run/sshd.pid - start program "/etc/init.d/ssh start" - stop program "/etc/init.d/ssh stop" - if failed port {{ sshd__ports[0] }} protocol ssh then restart