http://www.zusaar.com/event/489108
- @hamakn
- @jacopen
- @tnaoto
- @yssk22
http://www.zusaar.com/event/489108
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データベース名 |
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 |
[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 |
#!/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/ | |
# |