Skip to content

Instantly share code, notes, and snippets.

View congto's full-sized avatar
🥁
Focusing

Tô Thành Công congto

🥁
Focusing
View GitHub Profile
#!/bin/bash
touch /root/congto.txt
apt-get update -y
apt-get install git -y
root@u14-vagrant:~# docker inspect 951bfd6d073f
[
{
"Id": "951bfd6d073fe7502876d9842ebba76c9e2317bb25a5954b23004230491ecb22",
"Created": "2016-11-07T04:56:34.159173974Z",
"Path": "/hello",
"Args": [],
"State": {
"Status": "exited",
"Running": false,
@congto
congto / haproxy_corosync_pacemaker_ubuntu.md
Created March 11, 2017 11:26 — forked from Ham5ter/haproxy_corosync_pacemaker_ubuntu.md
Set up HAProxy with Pacemaker/Corosync on Ubuntu 16.04

Set up HAProxy with Pacemaker/Corosync on Ubuntu 16.04

This Document roughly describes a HAProxy Cluster Setup on Ubuntu 16.04 based on an example Configuration with 3 Nodes

This Document is still work in Progress the Following Stuff still needs to be done:

  • Explain the crm configure steps
  • explain Miscellaneous CRM Commands for Cluster Management
  • Add all the external ressources used.
  • Add a simple HAProxy Configuration for testing purpouse
@congto
congto / haproxy_corosync_pacemaker_ubuntu.md
Created March 11, 2017 11:26 — forked from Ham5ter/haproxy_corosync_pacemaker_ubuntu.md
Set up HAProxy with Pacemaker/Corosync on Ubuntu 16.04

Set up HAProxy with Pacemaker/Corosync on Ubuntu 16.04

This Document roughly describes a HAProxy Cluster Setup on Ubuntu 16.04 based on an example Configuration with 3 Nodes

This Document is still work in Progress the Following Stuff still needs to be done:

  • Explain the crm configure steps
  • explain Miscellaneous CRM Commands for Cluster Management
  • Add all the external ressources used.
  • Add a simple HAProxy Configuration for testing purpouse
@congto
congto / haproxy.conf
Created March 12, 2017 08:54
haproxy.conf 1.6 for ubuntu 14.04
root@u14-ctl1:~# cat /etc/haproxy/haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
defaults
log global
@congto
congto / ns_IPaddr2_Modify
Last active March 12, 2017 12:23
ns_IPaddr2_Modify
[root@controller1 fuel]# cat ns_IPaddr2
#!/bin/bash
#######################################################################
# Initialization:
: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
# Defaults
@congto
congto / local_settings.py
Created March 21, 2017 07:18
local_settings.py
# -*- coding: utf-8 -*-
import os
from django.utils.translation import ugettext_lazy as _
from horizon.utils import secret_key
from openstack_dashboard import exceptions
from openstack_dashboard.settings import HORIZON_CONFIG
@congto
congto / ghichep-cachet.md
Last active April 20, 2017 03:02
ghichep-cachet.md
@congto
congto / cobbler_CentOS7_minimal
Last active April 24, 2017 03:28
cobbler_CentOS7_minimal.ks
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use HTTP installation media
url --url="http://192.168.20.11/cblr/links/CentOS7-x86_64/"
# Root password
@congto
congto / openresty-ubuntu-install.sh
Created April 25, 2017 13:52 — forked from kingtuna/openresty-ubuntu-install.sh
Easy install openresty (used and tested on Ubuntu 14.04, 15.10 and 16.04)
#!/bin/bash
apt-get -y update
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev
wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz
tar zxvf openresty-1.11.2.1.tar.gz
cd openresty-1.11.2.1
./configure \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \