Skip to content

Instantly share code, notes, and snippets.

View tnaoto's full-sized avatar

Naoto TAKAHASHi tnaoto

View GitHub Profile
@tnaoto
tnaoto / gist:5148313
Last active December 14, 2015 20:59 — forked from hamakn/gist:5131299
require 'zlib'
require 'archive/tar/minitar'
include Archive::Tar
tgz = Zlib::GzipReader.new(File.open('test.tgz', 'rb'))
Minitar.unpack(tgz, 'x')
knife solo init <cookbook>
cd <cookbook>
vi Berksfile
berks install --path cookbooks/
knife cookbook create <recipe> -o site-cookbook/
#Wordpress構築チートシート
#元ネタ:https://gist.github.com/ysaotome/2235302
#対決相手:http://tily.github.io/jtf2013/
###############################################
# 環境変数を定義 WEB/APPサーバおよびDBサーバの双方で実行
###############################################
## MySQL管理ユーザのパスワード
export MYSQL_ROOT_PASS='mysql##123'
## Wordpressデータベース名
@tnaoto
tnaoto / shell
Created March 9, 2014 07:34
openstack用のks
install
cdrom
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
firewall --enabled --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone --utc Asia/Tokyo
[general]
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
CONFIG_MYSQL_INSTALL=y
CONFIG_GLANCE_INSTALL=y
CONFIG_CINDER_INSTALL=y
CONFIG_NOVA_INSTALL=y
CONFIG_NEUTRON_INSTALL=y
CONFIG_HORIZON_INSTALL=y
CONFIG_SWIFT_INSTALL=n
CONFIG_CEILOMETER_INSTALL=y
@tnaoto
tnaoto / gist:11341117
Created April 27, 2014 09:07
icehouse
[general]
CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub
CONFIG_MYSQL_INSTALL=y
CONFIG_GLANCE_INSTALL=y
CONFIG_CINDER_INSTALL=y
CONFIG_NOVA_INSTALL=y
CONFIG_NEUTRON_INSTALL=y
CONFIG_HORIZON_INSTALL=y
CONFIG_SWIFT_INSTALL=n
CONFIG_CEILOMETER_INSTALL=y
[general]
# Path to a Public key to install on servers. If a usable key has not
# been installed on the remote servers the user will be prompted for a
# password and this key will be installed so the password will not be
# required again
CONFIG_SSH_KEY=
# Set to 'y' if you would like Packstack to install MySQL
CONFIG_MYSQL_INSTALL=y
@tnaoto
tnaoto / gist:0c9a378eb01cb76e0d35
Created December 21, 2014 15:21
/etc/ecs/ecs-init
#!/bin/sh
#
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the
# "License"). You may not use this file except in compliance
# with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#