This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Author: Guillaume Subiron | |
# | |
# Block using shorewall-drop-wrapper.sh | |
# https://gist.github.com/maethor/2661311b394c5a610a3d258e54d8ac2a | |
# | |
[Definition] | |
# Option: actionstart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: backup-servers | |
tasks: | |
- name: Install rdiff-backup | |
apt: pkg=rdiff-backup state=installed | |
- name: Install borgbackup | |
apt: pkg=borgbackup state=installed | |
- hosts: all | |
vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## This is an example borgbackup configuration file. | |
## | |
## Here you can find all the possible borgbackup options, details of | |
## what the options provide and possible settings. The defaults are set | |
## as the commented out option, uncomment and change when | |
## necessary. Options which are uncommented in this example do not have | |
## defaults, and the settings provided are recommended. | |
## | |
## The defaults are useful in most cases, just make sure to configure the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- | |
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent: | |
# | |
# borg handler script for backupninja | |
# requires borgbackup | |
# | |
# Guillaume Subiron, Sysnove, 2016 | |
# | |
# Copyright 2016 Guillaume Subiron <[email protected]> | |
# This work is free. You can redistribute it and/or modify it under the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Guillaume Subiron, Sysnove, 2016 | |
# | |
# Description : | |
# | |
# This script uses shorewall drop and shorewall allow to manage a blacklist. | |
# | |
# Instead of allowing an IP everytime we call shorewall allow. This script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Guillaume Subiron, Sysnove, 2016 | |
# Inspired by Benjamin Sonntag's https://github.com/octopuce/octopuce-goodies/blob/master/letsencrypt-renew/letsencrypt-auto-renew.sh | |
# | |
# Description : | |
# | |
# This script generates or regenerates SSL certificates using acme-tiny | |
# to sign the certificate signing requests found in /etc/letsencrypt/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Guillaume Subiron, Sysnove, 2014 | |
# | |
# Description : | |
# | |
# This plugin checks if all installed daemons are running. | |
# Works on Debian. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: Update packages list | |
apt: update_cache=yes | |
when: ansible_os_family == 'Debian' | |
- name: List packages to upgrade (1/2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# | |
# Copyright (c) 2014 Guillaume <maethor> Subiron (http://www.sysnove.fr/) | |
# Plugin: check_nginx_status | |
# | |
$colors = array( | |
'read' => '#5a3d99', | |
'write' => '#ff0000', | |
'wait' => '#e5ca44', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Guillaume Subiron, Sysnove, 2013 | |
# | |
# Description : | |
# | |
# This plugin checks if we're running the newest installed kernel. | |
# Works on Debian. | |
# |
NewerOlder