Skip to content

Instantly share code, notes, and snippets.

View AlexGluck's full-sized avatar

Alex Gluck AlexGluck

  • Moscow
View GitHub Profile
@AlexGluck
AlexGluck / ansible-role-test.sh
Last active July 20, 2018 13:36 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/usr/bin/env bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
@AlexGluck
AlexGluck / Install-OracleJava.yaml
Created March 15, 2019 14:04
Test playbook for install oracle java
---
- name: Install OracleJava
hosts: "localhost"
vars:
arch: ''
orajdk:
type: 'jdk'
version: 8
upd: ''
dlfolder: /tmp
#!/usr/bin/env bash
host="$1"
disconnect="$2"
local_tun_number="1"
home_tmp=
eval home_tmp=~"$USER"/.ssh/tmp.sockets
mkdir -p "$home_tmp"
@AlexGluck
AlexGluck / ansible-playbook.yml
Created October 30, 2019 13:51
How to use proxy per ansible task for ansible telegram notification.
---
- name: apache
hosts: "localhost"
tasks:
- name: send a message to chat in playbook
telegram:
token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX'
chat_id: '000000'
msg: "Ansible task finished"
environment:
@AlexGluck
AlexGluck / nexus-ingress.yaml
Last active June 9, 2022 10:33
ingress-nginx manifests for sonatype nexus docker repositories
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ingress-nginx-controller
data:
http-snippet: "proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nexus:100m inactive=30d max_size=2g use_temp_path=off;"
...
---