- Sa-ba-ku with
.env
$ export $(cat .env | grep -v ^# | xargs); ./sabaku.sh
-
Create YOUR
.env
- cf. .env.sample
-
Global install is required.
$ gem install itamae
# For Ed25519
$ gem install ed25519
$ gem install bcrypt_pbkdf
$ gem install dotenv
- If you wanna copy
/source_path/to
to remote machine's/target_path/to
, please write as below
remote_file '/target_path/to' do
source '/source_path/to'
content 'Describe detail'
owner 'root'
group 'root'
end
- My Itamae recipes
- Now the recipes are not best practice but bad practice
- The word
sabaku
which contains insabaku.sh
is Japanese verb word捌く(Sa-ba-ku)
, which meansto deal with foodstuff well
- I've been training as
Itamae
, that isSHUGYO-CHU
(under training)- So this repository name is
Itamae Shugyo
- So this repository name is
- best practice
- 冪等 (Idempotent) になるように修正する
- 例えば、AWS ならば swapfile の存否で分岐させる
- 粒度と DRY を意識したリファクタリング
- Some recipes for
arm (Raspberry Pi)
- A role for ConoHa
- git-lfs
- nginx
- redis
- tig
- mongodb
- heroku-cli
Add Server
withSSH Key
option- Login console by
root
(With either web browser or terminal) - Execute below commands
# adduser ubuntu
# echo ubuntu ALL=NOPASSWD: ALL >> /etc/sudoers
# mkdir /home/ubuntu/.ssh
# chown ubuntu:ubuntu /home/ubuntu/.ssh && chmod 700 /home/ubuntu/.ssh
# cp /root/.ssh/authorized_keys /home/ubuntu/.ssh
# chown ubuntu:ubuntu /home/ubuntu/.ssh/authorized_keys && chmod 600 /home/ubuntu/.ssh/authorized_keys
- Do Itamae with SSH Key
- Confirm server's IP Address