Skip to content

Instantly share code, notes, and snippets.

View onegreyonewhite's full-sized avatar
🖖
Creating beautiful things...

Sergei Kliuikov onegreyonewhite

🖖
Creating beautiful things...
View GitHub Profile
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@onegreyonewhite
onegreyonewhite / readme.md
Last active April 6, 2024 17:52
Example of script inventory

Example of script inventory

This is an example script for implementing dynamic inventory in Ansible. It could have been written in bash, but python is much easier to read.

How to use

  1. Copy inventory script to any path like $HOME/test_inventroy.py
  2. Make file executable: chmod +x $HOME/test_inventroy.py
  3. Change store to your needs.
@onegreyonewhite
onegreyonewhite / readme.md
Created December 1, 2022 09:30 — forked from ubergesundheit/readme.md
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

We will assume the following:

@onegreyonewhite
onegreyonewhite / build-ubuntu-rootfs.sh
Created April 13, 2018 07:29 — forked from smithclay/build-ubuntu-rootfs.sh
ubuntu bootstrap for user mode linux: minimal
#!/bin/sh
# This script creates a user-mode linux machine based on Ubuntu.
# Created by Clay Smith, May 2017
#
# based on: https://gist.github.com/aputs/6247216
# and https://gist.github.com/AVGP/5410903
set -x
@onegreyonewhite
onegreyonewhite / README.md
Created April 10, 2018 06:47 — forked from seignovert/README.md
[Server] Install Gitlab and Mattermost with Let's Encrypt on Ubuntu 16.04

Gitlab and Mattermost installation

Inital DNS and contact emails

Add A record for the following website:

  • git.example.com
  • forum.example.com

And add email redirection for these emails:

  • support.git@example.com
  • forum@example.com
@onegreyonewhite
onegreyonewhite / local.conf
Created August 26, 2016 02:28 — forked from amotoki/local.conf
local.conf (Mitaka) - Almost all services are enabled with Neutron
[[local|localrc]]
#OFFLINE=True
RECLONE=True
HORIZON_BRANCH=stable/mitaka
KEYSTONE_BRANCH=stable/mitaka
NOVA_BRANCH=stable/mitaka
NEUTRON_BRANCH=stable/mitaka
GLANCE_BRANCH=stable/mitaka
CINDER_BRANCH=stable/mitaka
#!KAMAILIO
#
# sample config file for dispatcher module
# - load balancing of VoIP calls with round robin
# - no TPC listening
# - don't dispatch REGISTER and presence requests
#
# Kamailio (OpenSER) SIP Server v3.2
# - web: http://www.kamailio.org
# - git: http://sip-router.org