Posts

Showing posts from 2018

Docker compose demonization with systemd

How to (auto)start infrastructure with docker-compose. Very useful for development needs as example for review server (pre-prod or test environment). Here about how to protect iptables when we use docker-compose .

AWS + StrongSwan

How to tunnel 2 AWS networks and don't use AWS services. Most of manual show how to do it, but without high availability. Here we can have asymmetric routing or any other.

CloudFlare API - list zone records

Easy and fast way get all domains or records via CloudFlare API

Moving WordPress redirects to nginx

We have pretty cool json from WordPress redirect table and we need move this action to nginx.

Merge and deploy letsencrypt certs with salt

Easy way merge two files on the fly. Storage can be any from list of salt supported.

Latest Ruby on Debian 8 with multi-site

Short notes, how to configure Ruby on Debian 8 and store Slate (helps you create beautiful, intelligent, responsive API documentation)

Salt (SaltStack) dynamic inventory

Salt (SaltStack inc.) pretty cool tools for automation with I use many years. Here example of agent-less (salt-ssh) usage with dynamic inventory (roster and Ansible inventory plugin).

Haproxy before InfluxDB

What we have: Telegraf with send stats to two influxdb servers and dashboard with we need point to only one server. Also we have Nagios as InfluxDB health monitoring.

Forwarding part of application to new version with Haproxy

Sometimes you need roll out part of application (after code refactoring, as example) to prod. Here pretty easy way how to do it with Haproxy

Mass redirect using Haproxy map file

After some migration between applications versions you need to keep backward compatibility. Here example of easy way how to redirect lot of links to new location for Haproxy.  (example for Nginx )

Mass redirect using Nginx map file

After some migration between applications versions you need to keep backward compatibility. Here example of easy way how to redirect lot of links to new location for Nginx. (Example for Haproxy )