Skip to content

Instantly share code, notes, and snippets.

Avatar

Thermi Thermi

View GitHub Profile
View 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 Apr 25, 2017
Current working status of the PKGBUILD for ocfs2-tools 1.8.5
View PKGBUILD
# 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 Oct 4, 2016
An improved version of the ansible-git PKGBUILD on the AUR
View PKGBUILD
# Maintainer: Paul Nicholson <brenix@gmail.com>
# Contributor: Michel Blanc <mblanc@erasme.org>
# Contributor: Scott Hansen https://github.com/firecat53
# Contributor: Buce <dmbuce@gmail.com>
# Contributor: Bartłomiej Piotrowski <b@bpiotrowski.pl>
# Contributor: cgtx <carl@carlgeorge.us>
# Contributor: Daniel Wallace <danielwallace@gtmanfred.com>
# Contributor: John Gosset <john.gosset@gmail.com>
# Contributor: Joshua Lund <josh@joshlund.com>
# Contributor: Matt Klich <matt.klich@readytalk.com>
View es-cluster.yml
# 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",
View ansible fail
[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 Jun 21, 2021
systemd service and timer unit
View acme.service
[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