View gistf87-podman-bridge.conflistile1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cniVersion": "0.4.0", | |
"name": "podman", | |
"plugins": [ | |
{ | |
"type": "bridge", | |
"bridge": "cni-podman0", | |
"isGateway": true, | |
"ipMasq": false, | |
"ipam": { |
View sync-all.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
EL_VERSION=7 | |
LOG=/tmp/.sync-attempt-out.$$ | |
TIMESTAMP_FILE=/var/tmp/.sync-newer.$$ | |
YUM_BASE=/data/yum${EL_VERSION} | |
YUM_REPOS_DIR=/etc/yum${EL_VERSION}.repos.d | |
YUM_CONF=/etc/yum_${EL_VERSION}.conf |
View 06-fluentd-daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Source: fluentd-elasticsearch/templates/service-account.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: es-fluentd | |
namespace: monitoring | |
labels: | |
app: fluentd | |
kubernetes.io/cluster-service: "true" |
View node1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
INTERFACE=eth0 | |
NETMASK_CIDR='/24' # 255.255.255.0 | |
LOAD_BALANCER_IP=192.168.1.100 | |
LOAD_BALANCER_DNS=api-k8s-lab | |
LOAD_BALANCER_PORT=6443 | |
CP_PORT=6443 | |
CP0_HOSTNAME=k8s-lab1 |
View key_dist.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import atexit | |
import functools | |
import gzip | |
import itertools | |
import logging | |
import os | |
import socket | |
import sys |
View find_stale_metrics.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import optparse # argparse not available since most systems still have python 2.6 (argparse is in 2.7) | |
import os | |
import sys | |
import time | |
# helper function to return the parent dir given a dir | |
parent_of = lambda p: os.path.sep.join( p.split( os.path.sep )[:-1] ) |
View post-install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $1 -ne 0 ]]; then | |
echo "ERROR: failed install, backing out changes" | |
mdadm --stop /dev/md{0,1,2,3} | |
mdadm --zero-superblock /dev/sd{a,b}{1,4,5,6} | |
sgdisk --zap /dev/sdb | |
exit | |
fi |
View centos75-minimal.ks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install | |
skipx | |
text | |
eula --agreed | |
lang en_US.UTF-8 | |
keyboard us | |
timezone Europe/London | |
# Use network installation |
View prep-graphite-db.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import hashlib | |
import hmac | |
import random | |
import sqlite3 | |
import string | |
from base64 import b64encode | |
from itertools import izip, starmap |
View osmaps-mobac.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import itertools | |
import json | |
import math | |
import os | |
import re | |
import sys | |
import urllib2 |
NewerOlder