Skip to content

Instantly share code, notes, and snippets.

View Thermi's full-sized avatar

Thermi Thermi

  • Switzerland
View GitHub Profile
@Thermi
Thermi / main.cf
Last active May 20, 2017 20:49 — forked from kitikonti/main.cf
# Only bind to 127.0.0.1 and ::1 so local SMTP clients (msmtp) can connect to it
inet_interfaces = localhost
# Use IPv4 and IPv6
inet_protocols = all
myorigin = $myhostname
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
@Thermi
Thermi / PKGBUILD
Created April 25, 2017 07:00
Current working status of the PKGBUILD for ocfs2-tools 1.8.5
# Maintainer: Thermi <noel at familie-kuntze dot de>
pkgname=ocfs2-tools
pkgver=1.8.5
pkgrel=1
pkgdesc="ocfs2 tool chain by Oracle, including mkfs, tunefs, fsck, debugfs and utilities for ocfs2"
arch=('x86_64' 'i686')
url="https://github.com/markfasheh/ocfs2-tools/"
license=('GPL2')
optdepends=('pacemaker' 'corosync')
@Thermi
Thermi / PKGBUILD
Created October 4, 2016 23:16
An improved version of the ansible-git PKGBUILD on the AUR
# Maintainer: Paul Nicholson <[email protected]>
# Contributor: Michel Blanc <[email protected]>
# Contributor: Scott Hansen https://github.com/firecat53
# Contributor: Buce <[email protected]>
# Contributor: Bartłomiej Piotrowski <[email protected]>
# Contributor: cgtx <[email protected]>
# Contributor: Daniel Wallace <[email protected]>
# Contributor: John Gosset <[email protected]>
# Contributor: Joshua Lund <[email protected]>
# Contributor: Matt Klich <[email protected]>
@Thermi
Thermi / es-cluster.yml
Created October 3, 2016 19:44
ansible playbook
# https://docs.ansible.com/ansible/playbooks_best_practices.html#content-organization
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/index.html
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/cloud-aws-best-practices.html
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/cloud-aws-testing.html
- hosts: master_nodes
roles:
- centos7-setup
- { role: elasticsearch, es_instance_name: "cluster-master-1", es_heap_size: "1g",
es_config: {
cluster.name: "monitoring-cluster",
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 8, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled).[49/2466]
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 39, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 56, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 86, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
@Thermi
Thermi / acme.service
Last active June 21, 2021 18:52
systemd service and timer unit
[Unit]
Description = update Let's Encrypt certificates
[Service]
ExecStart=/usr/bin/acmetool --batch reconcile
ExecStartPost=/usr/bin/systemctl reload nginx
ExecStartPost=/usr/bin/cp /var/lib/acme/live/thermi.strangled.net/haproxy /var/lib/znc/.znc/certs/znc_whole_chain.pem
ExecStartPost=/usr/bin/chown znc:znc /var/lib/znc/.znc/certs/znc_whole_chain.pem
ExecStartPost=/usr/bin/chmod 600 /var/lib/znc/.znc/certs/znc_whole_chain.pem