- [local] -> [admin] -> [prod]
- [admin] -> [prod] の鍵は事前に配置済み
$HOME/.ssh/configで設定- 踏み台サーバ(admin)、目的のサーバ(prod) どちらにも鍵認証でログイン
$HOME/.ssh/configだけだと実行終了時のDONEで固まる
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| import re | |
| import MeCab | |
| class Word(object): | |
| def __init__(self,surface,feature): | |
| self.surface = surface | |
| self.feature = feature |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| """ | |
| pykf_wrapper.py | |
| pykf を使いやすくするためのラッパー | |
| 使い方 |
Installing VMware Workstation from http://www.vmware.com/jp/products/desktop_virtualization/workstation/overview
Installing Packer from http://www.packer.io/downloads.html
To build packer yourself, install golang 1.1. http://skywir3.wordpress.com/2013/05/15/how-to-install-go-golang-1-1-in-linux-from-source-tar-gz-file/
| # A sample Gemfile | |
| source "https://rubygems.org" | |
| gem 'faker' | |
| gem 'faker-japanese' | |
| gem 'romankana' | |
| gem 'pry' |
| package "postgresql" do | |
| action :install | |
| end | |
| service "postgresql" do | |
| supports :status => true, :restart => true, :reload => true | |
| action [ :enable, :start ] | |
| end |
| #!/bin/bash | |
| # | |
| # 2nd_gig | |
| # | |
| # description: start, stop, restart 2nd_gig (Github IRC Gateway) | |
| # | |
| NAME=gig | |
| USER=yono | |
| DIR=/home/$USER/servers/2nd_gig |
| #!/bin/sh | |
| # | |
| #---------------------------------------------------------------------------------------- | |
| # Jenkins サーバへスクリプトの実行結果を通知するためのスクリプトです。 | |
| # | |
| # 以下のスクリプトを元にして、パイプで標準出力の結果を受け取るように修正しました | |
| # https://github.com/akiko-pusu/misc/blob/master/misc/jenkins_wrapper.sh | |
| # | |
| # Usage: | |
| # SCRIPT | jenkins_report.sh ${PIPESTATUS[0]} <jenkins_url> <job_name> |