Last active
September 29, 2015 05:35
-
-
Save azumakuniyuki/4b9f8da0da9bae719541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mx.nyaan.jp/ | |
├── Ansible.mk ------- Ansible用Makefile | |
├── Makefile --------- いろいろ便利ターゲットがある | |
├── NodeLocal.mk ----- このディレクトリ特有のターゲットを書く | |
├── Rakefile --------- 改造したRakefile | |
├── Serverspec.mk ---- Serverspec用Makefile | |
├── Vagrant.mk ------- Vagrant用Makefile | |
├── ansible.cfg -> ./server/ansible-config | |
├── lib/ | |
│ ├── Makefile | |
│ ├── ansible_helper.rb --- インベントリを読込んだりいろいろ | |
│ └── spec_helper.rb ------ 殆ど改造してない | |
├── server/ | |
│ ├── 10-build-stage.yml -- Python入れたりsudo設定したりするPlaybook | |
│ ├── 11-selinux-off.yml -- setenforce 0 | |
│ ├── 20-deploy-user.yml -- メインのPlaybookを実行するユーザを作る | |
│ ├── 21-setup-repos.yml -- EPELとか入れる | |
│ ├── 22-add-network.yml -- eth1とか定義する | |
│ ├── 30-update-sshd.yml -- SSHdのポートを変えたり | |
│ ├── 41-vagrant-uid.yml -- vagrantユーザのuidを500以外に変更する | |
│ ├── 49-make-sslkey.yml -- 秘密鍵とかCSRとか作る | |
│ ├── 50-make-server.yml -- サンプル | |
│ ├── Makefile | |
│ ├── ansible-config ------ Ansibleの設定ファイル | |
│ ├── build-machines.yml -- メインのPlaybook | |
│ ├── group_vars/ | |
│ │ └── all ------------ 共通変数を定義する | |
│ ├── develop ------------- 開発機用インベントリ | |
│ ├── install ------------- rootで入る初期構築準備用インベントリ | |
│ ├── product ------------- 本番サーバ用インベントリ | |
│ ├── sandbox ------------- 練習サーバ用インベントリ | |
│ ├── staging ------------- ステージングサーバ用インベントリ | |
│ ├── log ----------------- ansible-configで指定するログファイル | |
│ ├── roles/ -------------- このディレクトリにロールを入れる | |
│ │ ├── Makefile | |
│ │ ├── bootstrap/ ----- メインのPlaybookで最初に実行するロール | |
│ │ ├── cleandown/ ----- メインのPlaybookで最後に実行するロール | |
│ │ ├── env/ ----------- 環境設定をするロールはここに入れる | |
│ │ │ └── selinux/ -- SELinuxをどうにかするロール | |
│ │ │ ├── defaults/ | |
│ │ │ ├── files/ | |
│ │ │ ├── handlers/ | |
│ │ │ │ └── main.yml | |
│ │ │ ├── meta/ | |
│ │ │ │ └── main.yml | |
│ │ │ ├── spec/ ----------------- Serverspecのテストコードを入れる | |
│ │ │ │ └── make-config.rb --- make-config.ymlの実行内容をテストする | |
│ │ │ ├── tasks/ | |
│ │ │ │ ├── main.yml --------- 他の*.ymlを読込むだけ | |
│ │ │ │ └── make-config.yml -- SELinuxを無効にするタスク | |
│ │ │ ├── templates/ | |
│ │ │ └── vars/ | |
│ │ │ └── main.yml | |
│ │ ├── rpm/ --------------------------- RPMで入れる何かはこのディレクトリ以下 | |
│ │ │ └── ruby/ --------------------- RPMでRubyを入れるロール | |
│ │ │ ├── handlers/ | |
│ │ │ │ └── main.yml | |
│ │ │ ├── meta/ | |
│ │ │ │ └── main.yml | |
│ │ │ ├── spec/ ----------------- Serverspecのテストコードを入れる | |
│ │ │ │ └── install-pkg.rb -- /usr/bin/rubyがあるかテスト | |
│ │ │ ├── tasks/ | |
│ │ │ │ ├── install-pkg.yml -- yum install rubyを実行 | |
│ │ │ │ └── main.yml --------- 他の*.ymlを読込むだけ | |
│ │ │ └── vars/ | |
│ │ │ └── main.yml | |
│ │ └── src/ --------------------------- ソースビルドで入れる何かを入れる | |
│ │ └── nginx/ --------------------- nginxをソースから入れるロール | |
│ │ ├── handlers/ | |
│ │ │ └── main.yml | |
│ │ ├── spec/ ------------------ tasks/*.ymlの実行結果テスト用 | |
│ │ │ ├── boot-script.rb ---- tasks/boot-script.ymlの結果をテスト | |
│ │ │ ├── compile-src.rb ---- tasks/compile-src.ymlの〃 | |
│ │ │ ├── create-user.rb ---- tasks/create-user.ymlの〃 | |
│ │ │ ├── install-pkg.rb ---- tasks/install-pkg.ymlの〃 | |
│ │ │ └── make-config.rb ---- tasks/make-config.ymlの〃 | |
│ │ ├── tasks/ | |
│ │ │ ├── boot-script.yml --- /etc/init.d/nginxを設置するなど | |
│ │ │ ├── compile-src.yml --- nginxをコンパイルしてインストール | |
│ │ │ ├── create-user.yml --- nginx用ユーザの作成とか | |
│ │ │ ├── get-archive.yml --- nginxのTar玉をダウンロードして開ける | |
│ │ │ ├── install-pkg.yml --- nginxのコンパイル前に必要なものを入れる | |
│ │ │ ├── main.yml ---------- 他の*.ymlをincludeで読込む | |
│ │ │ └── make-config.yml --- nginx.confとか各種設定をする | |
│ │ ├── templates/ | |
│ │ └── vars/ | |
│ │ └── main.yml ----------- nginx関連変数を定義 | |
│ └── spec/ ------------------------------- server/*.ymlのテスト用 | |
│ ├── 10-build-stage.rb -------------- server/10-build-stage.ymlの実行結果をテスト | |
│ ├── 11-selinux-off.rb -------------- server/11-seilnux-off.ymlの〃 | |
│ ├── 20-deploy-user.rb -------------- server/20-deploy-user.ymlの〃 | |
│ ├── 30-update-sshd.rb -------------- server/30-update-sshd.ymlの〃 | |
│ └── Makefile | |
└── tmp/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment