LoginSignup
6
4

More than 5 years have passed since last update.

OpsWorks Chef12でRailsのレイヤーを作成する

Last updated at Posted at 2016-08-27

OpsWorksのChef 11ではRailsやPHPなどのビルトインレイヤーがあり、プロビジョニング、デプロイのレシピが全部準備されていて便利だったのだが、Chef 12ではそれがなくなってしまった。

Chef 11のビルトインレイヤー相当のものを全部自分で作るのは大変なので、探したところStackOverflowのこの記事が見つかった。
http://stackoverflow.com/questions/36319906/opsworks-chef-12-recipes

どうやらこちらにOpsWorks Chef 12用のRailsのクックブックがあるらしい。
https://supermarket.chef.io/cookbooks/opsworks_ruby

読んでみると下記の通りライフサイクルに対してレシピをセットアップすればChef 11と同等のことができるとのこと。

opsworks_ruby::setup - attach to Setup
opsworks_ruby::configure - attach to Configure
opsworks_ruby::deploy - attach to Deploy
opsworks_ruby::undeploy - attach to Undeploy
opsworks_ruby::shutdown - attach to Shutdown

サポートしているサーバはnginx + unicorn。
DBは

  • MariaDB
  • MySQL
  • PostgreSQL
  • Sqlite3

ドキュメントがちゃんと書いてあるので、これを見れば大体分かりそう。
https://supermarket.chef.io/cookbooks/opsworks_ruby

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4