Skip to content

Instantly share code, notes, and snippets.

@ogaty
Last active January 9, 2019 13:38
Show Gist options
  • Save ogaty/2b8c51284f44ee84a43a640cc515c656 to your computer and use it in GitHub Desktop.
Save ogaty/2b8c51284f44ee84a43a640cc515c656 to your computer and use it in GitHub Desktop.
new linux server setup

GCP(ubuntu)版

id_rsa.natashのSSH鍵指定で勝手にユーザーまで作ってくれる

ホスト(galaxy)

phpとmariadbはansible-galaxyがイケてない
etckeeperもgalaxyからにしようかな

ansible-galaxy install anxs.build-essential
ansible-galaxy install geerlingguy.composer
ansible-galaxy install geerlingguy.redis

sshd指定

ポート変更、RSA認証許可
インスタンス立てる時にファイアウォール許可忘れてないか確認

apt、ppa

ココらへんはansibleにぶち込んだ

ansible

mybash、goss、etckeeper、redis、apache、swapなどなど入れる

swiss

gcpから

gsutil cp gs://ogatism-files/swetest/swetest2 /swiss/swetest2

ビルド前のファイルはいちいち持ってこなくていいよね

id_rsa.github、/key

とりあえず手で移動

scp -P 20123 -i /key/id_rsa.natasha /key/* maya1:/key/

diary

とりあえず手で設置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment