Skip to content

Instantly share code, notes, and snippets.

View don-rumata's full-sized avatar

don Rumata don-rumata

View GitHub Profile
@don-rumata
don-rumata / nexus3-routing-rules.yml
Created September 5, 2025 22:18
Nexus3 routing rules 4 github releases and api.github.com
- name: GitHubReleases
description: Download GitHub Releases. Download source code archives via Git SHA1 or tag.
matchers:
- /[^/]+/[^/]+/releases/download/[^/]+/.+
- /[^/]+/[^/]+/archive/([0-9a-f]{40}|refs/tags/.+)\.(zip|tar\.gz)
mode: ALLOW
- name: GitHubAPI_ReleasesAndTags
description: Allow and cache GitHub API requests for releases and git tags
matchers:
- /repos/[^/]+/[^/]+/releases
@don-rumata
don-rumata / docker-compose.yml
Last active May 14, 2025 08:14
docker-compose.yml with zookeeper v3.9, kafka v4.0.0, kafka-ui v0.7.2
---
services:
zookeeper111:
image: ${ZOOKEEPER_IMAGE:-zookeeper}:${ZOOKEEPER_IMAGE_VERSION:-3.9}
container_name: ${ZOOKEEPER_CONTAINERNAME:-zookeeper}
env_file: .env
ports:
- "${ZOOKEEPER_PORT:-2181}:2181"
networks:
# - ${KAFKA_NETWORK:-kafka-net}
@don-rumata
don-rumata / netdom-join.yml
Created December 15, 2021 21:52
Install and configure AD authentication
---
- name: Install and configure AD authentication
hosts: all
become: yes
# become_method: sudo
vars:
domain_for_join: cchgeu
fqdn_for_join: cchgeu.ru
admin_group: depit-srv_admins
full_netdom_join_user: '{{ netdom_join_user }}@{{ fqdn_for_join }}'
@don-rumata
don-rumata / vsftpd.conf
Created August 3, 2021 13:51
/etc/vsftpd.conf 4 ruSO
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
@don-rumata
don-rumata / dokuwiki_plugins_custom.yml
Created July 22, 2021 16:58
Example 4 don_rumata.ansible_role_install_dokuwiki
- dokuwiki_plugin_name: apexcharts
dokuwiki_plugin_url: https://github.com/karl257/dokuwiki-plugin-achart/tarball/master
dokuwiki_plugin_dir_name: achart # /var/www/dokuwiki/lib/plugins/achart
dokuwiki_plugin_skip_directory_level: 1 # https://unix.stackexchange.com/a/365990
dokuwiki_plugin_web_page: https://www.dokuwiki.org/plugin:achart
@don-rumata
don-rumata / ping.yml
Created January 21, 2021 21:26
Simple Ansible ping any Linux and Windows
---
# WORK
- name: Ping
hosts: all
strategy: free
serial:
- "100%"
tasks:
- name: Ping 4 Windows
@don-rumata
don-rumata / install-home-assistant.yml
Last active January 22, 2021 22:53
Ansible playbook for install Home Assistant in Ubuntu 20.04 over python virtualenv
---
# WORK
# https://marvins.ru/avtomatizaciya/ubuntu-ustanovka-home-assistant.html
# https://github.com/home-assistant-ecosystem/home-assistant-ansible
- name: Install Home Assistant
hosts: all
strategy: free
serial:
- "100%"
vars:
---
# Тут ставим не через snap, а классическим способам с настройками баз и т.д.
# https://rocket.chat/docs/installation/manual-installation/ubuntu/
- name: Install Rocket.Chat server Classic
# hosts: all
hosts: rocketchat
strategy: free
serial:
- "100%"
roles:
@don-rumata
don-rumata / create-vbox-vm.sh
Created December 14, 2020 22:29
Create VM in VirtualBox
#!/usr/bin/env bash
VM_NAME="test-vm_$(date +%F_%H-%M-%S)"
# Если линков 2 и более - надо как-то их выбрать сортировкой или грепом. В общем - только для одного соединения.
IFNAME_WHEN_LINK_UP=$(grep up /sys/class/net/*/operstate | cut -d '/' -f 5)
# http://unix.stackexchange.com/a/121526 http://serverfault.com/a/224565
# Это чтобы знать где виртуальные винты создавать.
DEFAULT_MACHINE_FOLDER="$(vboxmanage list systemproperties | grep 'Default machine folder' | sed 's/ //g' | cut -d ':' -f 2)"
#!/usr/bin/env bash
# WORK
# LANG=ru_RU.UTF-8
# Собираем ГОТОВЫЙ бинарник coredns в пакет для установки с помощью fpm. Он уже должен быть установлен.
# https://github.com/jordansissel/fpm
# https://fpm.readthedocs.io/en/latest/installing.html
MAIN_SERVER="10.10.10.10"