Slide 1

Slide 1 text

Vagrant ͱ Chef Ͱ ϓϩάϥϚϒϧͳ ։ൃ؀ڥΛͭ͘Δ id:aereal 13೥9݄21೔౔༵೔

Slide 2

Slide 2 text

id:aereal @aereal aereal aereal.org 13೥9݄21೔౔༵೔

Slide 3

Slide 3 text

Ruby JavaScript Perl Io Zsh VimScript Lua Go 13೥9݄21೔౔༵೔

Slide 4

Slide 4 text

Ruby JavaScript Perl Io Zsh VimScript Lua Go 13೥9݄21೔౔༵೔

Slide 5

Slide 5 text

Web ΞϓϦέʔγϣϯ 13೥9݄21೔౔༵೔

Slide 6

Slide 6 text

•Model •DBI •View •JSON::XS •Text::Xslate •Controller •(Router::Simple) 13೥9݄21೔౔༵೔

Slide 7

Slide 7 text

•LWP::UserAgent, Furl •XML::*, YAML::Syck •Email::* •Image::Magick 13೥9݄21೔౔༵೔

Slide 8

Slide 8 text

ෳࡶͳґଘؔ܎ 13೥9݄21೔౔༵೔

Slide 9

Slide 9 text

ґଘͷղܾ 13೥9݄21೔౔༵೔

Slide 10

Slide 10 text

๭ Web αʔϏε 13೥9݄21೔౔༵೔

Slide 11

Slide 11 text

OS 13೥9݄21೔౔༵೔

Slide 12

Slide 12 text

ຊ൪ •CentOS ։ൃ •OS X •Windows •Linux (Debian) 13೥9݄21೔౔༵೔

Slide 13

Slide 13 text

ߏ੒؅ཧ 13೥9݄21೔౔༵೔

Slide 14

Slide 14 text

ຊ൪ •Chef •RPM ։ൃ •cpanm •Homebrew •apt •yum 13೥9݄21೔౔༵೔

Slide 15

Slide 15 text

ͱΓ͋͑ͣ cpanm --installdeps . 13೥9݄21೔౔༵೔

Slide 16

Slide 16 text

ͳΜ͔ࣦഊ͢Δ 13೥9݄21೔౔༵೔

Slide 17

Slide 17 text

cpanm --installdeps . 13೥9݄21೔౔༵೔

Slide 18

Slide 18 text

ͳΜ͔ࣦഊ͢Δ 13೥9݄21೔౔༵೔

Slide 19

Slide 19 text

cpanm \ --installdeps . 13೥9݄21೔౔༵೔

Slide 20

Slide 20 text

ͳΜ͔ࣦഊ͢Δ 13೥9݄21೔౔༵೔

Slide 21

Slide 21 text

΋͏΍ͩ 13೥9݄21೔౔༵೔

Slide 22

Slide 22 text

ͳΜͱ͔͢Δ 13೥9݄21೔౔༵೔

Slide 23

Slide 23 text

จॻΛ࢒͢ 13೥9݄21೔౔༵೔

Slide 24

Slide 24 text

•ܦҢɺจ຺Λ࢒͢ •ʮ݁ہͲ͏͢Ε͹͍͍͔ʯ͸ԕ͍ •Ϟνϕʔγϣϯͷফඅ •Ϟνϕʔγϣϯ͸༗ݶ •ʮͱʹ͔͘ؤுΔʯ 13೥9݄21೔౔༵೔

Slide 25

Slide 25 text

ϓϩάϥϚϒϧͳ ηοτΞοϓํ๏ 13೥9݄21೔౔༵೔

Slide 26

Slide 26 text

•୯७࡞ۀͷੵΈॏͶ •ΦϓγϣϯҾ਺ͷࢼߦࡨޡͱ͔ •ϩά͕࢒Δ •յΕͨ͜ͱ͕͙͢ʹΘ͔Δ 13೥9݄21೔౔༵೔

Slide 27

Slide 27 text

13೥9݄21೔౔༵೔

Slide 28

Slide 28 text

•VM Λ্ཱͪ͛Δ •(Ҏલʹ΋΍͍ͬͯͨ) •ϋʔυ΢ΣΞ΋ਐԽ͕ͨ͠…… 13೥9݄21೔౔༵೔

Slide 29

Slide 29 text

13೥9݄21೔౔༵೔

Slide 30

Slide 30 text

୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ 13೥9݄21೔౔༵೔

Slide 31

Slide 31 text

୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ R.I.P. 13೥9݄21೔౔༵೔

Slide 32

Slide 32 text

•NFS ͰήετͱϦϙδτϦΛڞ༗͢Δ •Virtualbox ͷ shared folder ͸஗͍ •࠷େ20ഒ஗͍…… • http://docs-v1.vagrantup.com/v1/docs/nfs.html •MySQL ͳͲ͸ Cookbook Λ༻ҙ͢Δ 13೥9݄21೔౔༵೔

Slide 33

Slide 33 text

•perl-build Ͱ Perl 5.8.8 ΛೖΕΔ •tokuhirom/perl-build •CPAN Ϟδϡʔϧ͸ Cookbook ʹهड़ •όʔδϣϯΛࢦఆͯ͠Πϯετʔϧ͢Δ LWRP •ผʹ Carton Խ΋ਐΊ͍ͯΔ 13೥9݄21೔౔༵೔

Slide 34

Slide 34 text

• ./bin/server • vagrant up • vagrant ssh-config --host vagrant > .ssh_config • ssh "cd /repos; perl server.up $@" 13೥9݄21೔౔༵೔

Slide 35

Slide 35 text

•VM Λ্ཱͪ͛ͯ •ssh_config Λͭͬͯ͘ •SSH Ͱήετ OS ্ͰεΫϦϓτΛ࣮ߦ •Proclet 13೥9݄21೔౔༵೔

Slide 36

Slide 36 text

͙͢ʹ։ൃ͍ͨ͠!!! 13೥9݄21೔౔༵೔

Slide 37

Slide 37 text

•provisioning ·Ͱࡁ·ͤͨ box Λ഑Δ •ࣾ಺ϑΝΠϧαʔό •FTP ΞΫηε΋Մ 13೥9݄21೔౔༵೔

Slide 38

Slide 38 text

http://git.io/PBG-og ※༧ఆ஍ 13೥9݄21೔౔༵೔

Slide 39

Slide 39 text

՝୊ 13೥9݄21೔౔༵೔

Slide 40

Slide 40 text

•ೋॏ؅ཧͳͷ͸ͦͷ·· •ຊ൪ʹద༻͞ΕΔ Chef Ϩγϐͱ࿈ܞ •ϝϯς͍ͯ͠Δͷ͸ࣗ෼͚ͩ •஌ݟΛ޿Ί͍͖͍ͯͨ 13೥9݄21೔౔༵೔

Slide 41

Slide 41 text

ͳʹ͸ͱ΋͋Ε 13೥9݄21೔౔༵೔

Slide 42

Slide 42 text

Vagrant + Chef ࠷ߴ! 13೥9݄21೔౔༵೔

Slide 43

Slide 43 text

Vagrant + Chef ࠷ߴ? 13೥9݄21೔౔༵೔

Slide 44

Slide 44 text

NOT ۜͷ஄ؙ 13೥9݄21೔౔༵೔

Slide 45

Slide 45 text

•όʔδϣϯ੍໿͕ڧ͍ •CPAN Ϟδϡʔϧ •ϛυϧ΢ΣΞ •৽ͨʹ։ൃʹࢀՃ͢Δਓ͕Ұఆ਺͍Δ •Πϯλʔϯ •ҟಈ 13೥9݄21೔౔༵೔

Slide 46

Slide 46 text

࢖Θͣʹ͢Ήͷ͕ཧ૝ 13೥9݄21೔౔༵೔

Slide 47

Slide 47 text

•Carton •plenv / perlbrew •(Chef Solo) 13೥9݄21೔౔༵೔

Slide 48

Slide 48 text

ෳࡶ͞ͷ୅ঈΛ͸͔Ε 13೥9݄21೔౔༵೔

Slide 49

Slide 49 text

Fin. 13೥9݄21೔౔༵೔