
98
6 章 Ansible による Mezzanine のデプロイ
例
6-1
Mezzanine playbook
中のタスクのリスト(続き)
sync the database, apply migrations, collect static content
set the site id
set the admin password
set the gunicorn config file
set the supervisor config file
set the nginx config file
enable the nginx config file
remove the default nginx config file
ensure config path exists
create tls certificates
install poll twitter cron job
6.2
デプロイされるファイル群の構成
以前に議論した通り、
Mezzanine
は
Django
上に構築されています。
Django
では、
Web
アプリ
ケーションはプロジェクトと呼ばれます。プロジェクトには名前を付けることができるので、ここ
では
mezzanine-example
としました。
作成する
playbook
は、
Vagrant
マシンにデプロイを行い、
vagrant
というユーザーのアカウン
トのホームディレクトリにファイル群をデプロイします。
デプロイ先のトップレベルのディレクトリは、
/home/vagrant/mezzanine-example ...