Skip to content

Instantly share code, notes, and snippets.

View git001's full-sized avatar

Aleks git001

View GitHub Profile
#!/bin/bash -e
# Neil Williams, reddit
# configuration that doesn't change much
REDDIT_REPO=git://github.com/git001/reddit.git
I18N_REPO=git://github.com/git001/reddit-i18n.git
APTITUDE_OPTIONS="-y" # limit bandwidth: -o Acquire::http::Dl-Limit=100"
# don't blunder on if an error occurs
set -e
@git001
git001 / ansible-out.txt
Created August 31, 2016 15:38
Output of a ansible run
TASK [ingress_add : Print ingress hostnames] ***********************************
ok: [<HOSTNAME>] => {
"check_router": {
"changed": true,
"failed": true,
"msg": "One or more items failed",
"results": [
{
"_ansible_item_result": true,
"_ansible_no_log": false,
@git001
git001 / app.yml
Created August 31, 2016 15:39
zone-specs
# data structure as an imput for several playbooks/roles
---
application_zone_spec:
zone_name: "customer-1_prod_ht"
organization_name: "e.g. ORG"
country: "e.g. COUNTRY"
subnets:
- subnet-1
- subnet-2
14:37:20.401 Imap::Mailbox::OpenConnectionTask OpenConnectionTask: Activated
14:37:20.408 *** Nach imap.xxx wird gesucht ...
14:37:20.408 conn Rechnername wird aufgelöst ...
14:37:20.423 *** Verbindung zu imap.xxx:143 wird aufgebaut ...
14:37:20.423 conn Verbindung zum IMAP-Server wird hergestellt ...
14:37:20.446 *** Connection established
14:37:20.446 *** Verbunden
14:37:20.446 conn Fähigkeiten werden überprüft ...
14:37:20.475 <<< * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Server ready.␍␊
14:37:20.475 conn Anfrage nach Verschlüsselung ...
oc get $(oc get secret -o name|egrep default-dockercfg) -o json
{
"kind": "Secret",
"apiVersion": "v1",
"metadata": {
"name": "default-dockercfg-6zf73",
"namespace": "aleks-test-auditd",
"selfLink": "/api/v1/namespaces/aleks-test-auditd/secrets/default-dockercfg-6zf73",
"uid": "1ecaf1d3-fe7c-11e6-94df-0a37fe677979",
"resourceVersion": "29345024",
@git001
git001 / ansible-hosts-calico
Created August 15, 2017 09:48
Example inventory file for Calico SDN on openshift
# this is the ansible inventory file from
# https://youtu.be/FsXuZCEWEhQ
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_ssh_user=root
os_firewall_use_firewalld=false
@git001
git001 / provision.sh
Created August 22, 2017 07:55
The provision script
#!/bin/bash
if [[ ${DEBUG} ]]; then
set -x
sudo pvs
sudo vgs
sudo lvs
fi
# extend root partition
@git001
git001 / rh-atomic.json
Last active August 22, 2017 08:06
packer json file
{
"variables": {
"access_key": "",
"secret_key": "",
"ami": "ami-f9738680",
"osName": "RHEL-Atomic",
"osVersion" : "7.4",
"keypair": "Aleks",
"vpc": "vpc-xxx",
"subnet": "subnet-xxx",
---
ffmpeg_bin: '/bin/ffmpeg'
profiles:
fullHDHighProfile: ' -r 30 -vcodec libx264 -pix_fmt yuv420p -crf 23 -s 1920x1080 -profile:v high -level 4 '
fullHD: ' -vcodec libx264 -pix_fmt yuv420p -crf 23 -s 1920x1080 '
HDready: ' -vcodec libx264 -pix_fmt yuv420p -crf 23 -s 1280x720 '
mobile: ' -vcodec libx264 -pix_fmt yuv420p -crf 23 -s 480x270 '
out_dir_base: '/home/videos'
out_dir_data: '/home/videos/transfer'
out_dir_snapshot_data: '/home/videos/transfer'
@git001
git001 / hosts-small.origin
Created August 17, 2018 17:36
Small okd ansible hosts file
[OSEv3:children]
masters
nodes
etcd
lb
glusterfs
[OSEv3:vars]