Contenu connexe
Similaire à anybuild/Hosting casual #1
Similaire à anybuild/Hosting casual #1 (20)
anybuild/Hosting casual #1
- 12. anybuild - configuration
/etc/anybuild/
"## perl
$ "## cpanfile
$ &## versions.txt
"## php
$ "## definitions
$ $ "## 5.3.19-heteml
$ $ &## 5.4.11-heteml
$ "## pearfile
$ "## peclfile
$ &## versions.txt
"## python
"## ruby
$ "## Gemfile
$ &## versions.txt
&## sync-lang
- 15. こんな感じ
+----------+ +--------------+ LL runtimes +--------------+----------+
| build VM | built LL runtimes | | for Role A | Ahost001 | Ahost002 |
| | <--------------------- | | -------------> | | |
+----------+ | | +--------------+----------+
| | lang server | LL runtimes ^
| incremental update | (rsyncd) | for Role A |
+-------------------------------> | | ---------------------------------+
| |
| |
| | -+
+--------------+ |
| |
| LL runtimes | LL runtimes
| for Role B | for Role B
v v
+--------------+---------------+
| Bhost001 | Bhost002 |
+--------------+---------------+
- 18. Vagrantのpuppet
provisionerでもろもろ完了
# 手元で
[@mac puppet]# vi roles/web/files/etc/anybuild/perl/cpanfile
[@mac puppet]# git commit -m ‘お客さんの要望でHoge.pmを追加’
[@mac puppet]# VM_ROLE=web vagrant provision cent6_anybuild
!
# 本番サーバ全台で
[@web001 ~]# sudo /usr/local/anybuild/sync-lang pull