I hereby claim:
- I am lorentzca on github.
- I am lorentzca (https://keybase.io/lorentzca) on keybase.
- I have a public key ASD3TgppFzs5SyzJCQXrnu_MhWdO3Xhgy3VAqy0RMs378Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM lorentzca/vault_on_centos7 | |
COPY ./config.hcl /root/config.hcl |
FROM centos:7 | |
RUN \ | |
yum install -y wget unzip && \ | |
cd /usr/local/bin && \ | |
wget https://releases.hashicorp.com/vault/0.4.1/vault_0.4.1_linux_amd64.zip && \ | |
unzip vault_0.4.1_linux_amd64.zip && \ | |
rm vault_0.4.1_linux_amd64.zip |
#!/bin/sh | |
# install depend packages | |
sudo yum install -y epel-release wget | |
sudo yum install -y perl-DBD-MySQL | |
sudo yum install --enablerepo=epel -y perl-Config-Tiny perl-Log-Dispatch perl-Parallel-ForkManager | |
# install mha-node | |
wget --no-check-certificate -O /tmp/mha4mysql-node-0.56-0.el5.noarch.rpm https://72003f4c60f5cc941cd1c7d448fc3c99e0aebaa8.googledrive.com/host/0B1lu97m8-haWeHdGWXp0YVVUSlk/mha4mysql-node-0.56-0.el5.noarch.rpm | |
sudo rpm -ivh /tmp/mha4mysql-node-0.56-0.el5.noarch.rpm |
#!/bin/sh | |
# | |
# consul - this script manages the consul agent | |
# | |
# chkconfig: 345 95 05 | |
# description: consul_0.6.0 | |
# processname: consul | |
### BEGIN INIT INFO | |
# Provides: consul |
#!/bin/sh | |
sudo yum install -y wget unzip | |
# add consul binary | |
wget --no-check-certificate -O /tmp/consul.zip https://releases.hashicorp.com/consul/0.6.0/consul_0.6.0_linux_amd64.zip | |
sudo unzip /tmp/consul.zip -d /usr/local/sbin | |
sudo rm -f /tmp/consul.zip | |
sudo chmod 755 /usr/local/sbin/consul |
{ | |
"bootstrap_expect": 1 , | |
"server": true, | |
"data_dir": "/var/consul", | |
"bind_addr": "127.0.0.1", | |
"client_addr": "0.0.0.0" | |
} |
#!/bin/bash | |
# | |
# chkconfig: - 58 74 | |
# description: masterha_manager is master monitoring and running failover automatically in case of master down | |
# processname: masterha_manager | |
# pidfile: /var/lib/mysql/master1.pid | |
# config: /etc/masterha_default.cnf | |
# source profile | |
. /etc/profile |
#!/usr/bin/ruby | |
require 'uri' | |
require 'open-uri' | |
require 'net/http' | |
open('http://data.iana.org/TLD/tlds-alpha-by-domain.txt') {|f| | |
f.each_line {|line| | |
next line if %r(^#) =~ line | |
url = "http://kunishima.#{line}" |
check process consul | |
with pidfile "/var/run/consul.pid" | |
start program "/etc/init.d/consul start" | |
stop program "/etc/init.d/consul stop" |