Skip to content

Instantly share code, notes, and snippets.

@Blaiserman
Blaiserman / fedora-atomic-host.md
Created June 18, 2017 10:39 — forked from jasonbrooks/fedora-atomic-host.md
running kubernetes on fedora atomic host

kubernetes all in one

grab an atomic host

$ vagrant init fedora/25-atomic-host
$ vagrant up
$ vagrant ssh
@Blaiserman
Blaiserman / NOTES.md
Created December 22, 2016 11:08 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content

@Blaiserman
Blaiserman / README.md
Created December 3, 2016 11:39 — forked from tknerr/README.md
Vagrant with Ansible Provisioner on Windows

Vagrant with Ansible Provisioner on Windows

Long story short, ansible does not work on a Windows control machine, so you basically have to:

  • either run ansible --connection=local ... in the target vm
  • set up a separate control vm where ansible is installed via shell provisioner

Below are Vagrantfile examples for both approaches

Within the Target VM

@Blaiserman
Blaiserman / vagrant-librarian-chef-windows.md
Created October 20, 2016 20:53
vagrant librarian chef windows
@Blaiserman
Blaiserman / Swarm.md
Created October 19, 2016 14:23 — forked from errordeveloper/Swarm.md
A quick guide to using Weave Net with Docker Swarm

Weave Net and Docker Swarm

This example show how-to setup a very simple Swarm cluster enabled with Weave Net.

## Infratructure

There are two hosts that have a recent version of Docker Engine running.

These hosts are named host1 and host2, and might have the following in /etc/hosts or you just substitute IP addresses in the commands shown below.

@Blaiserman
Blaiserman / check_docker_container.sh
Created October 17, 2016 20:03 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# The script checks if a container is running.
# OK - running
@Blaiserman
Blaiserman / cdh5_mr2_installation.md
Created October 8, 2016 16:00 — forked from ashrithr/cdh5_mr2_installation.md
Installing YARN (MR2) On CentOS

###Pre-Req's:

Installing Cloudera Repo on all nodes that you'll install hadoop daemons on:

sudo cat > /etc/yum.repos.d/cloudera.repo <<EOF
[cloudera-cdh5]
# Packages for Cloudera's Distribution for Hadoop, Version 5, on RedHat	or CentOS 6 x86_64
name=Cloudera's Distribution for Hadoop, Version 5
baseurl=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/
@Blaiserman
Blaiserman / deploy-cm-cdh-on-centos7
Created October 3, 2016 12:44 — forked from lilongen/deploy-cm-cdh-on-centos7
Centos 7 install/deploy Cloudera Manager and CDH using local repository and CDH local parcel
- prepare work
a. make cm node can ssh to all nodes without password
ssh-genkey, ssh-copy-id
b. hostname mapping
c. mysql server
d. postgresql
e. ntp
systemctl disable chrony
centos7 default enable chrony server, even enable ntpd, cuase chrony started, ntpd will not started
this will cause CDH ntp error, so need to disable chrony.
#!/bin/bash
# Installation:
#
# 1. vim /etc/ssh/sshd_config
# PrintMotd no
#
# 2. vim /etc/pam.d/login
# # session optional pam_motd.so
#
Font=Powerline Consolas
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117