Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Itamae シュッと
Search
pecosantoyobe
February 14, 2015
Technology
1
2.5k
Itamae シュッと
オープンセミナー2015@広島で Itamae について LT という名のショートセッションをしてしまった際のスライド。
pecosantoyobe
February 14, 2015
Tweet
Share
More Decks by pecosantoyobe
See All by pecosantoyobe
Down and Dirty with Chrome Developer Tools を雑にやってみて知ったこと
pecosantoyobe
1
120
morning mail
pecosantoyobe
1
960
Atom
pecosantoyobe
1
180
EditorConfig の紹介をするだけ
pecosantoyobe
0
390
Other Decks in Technology
See All in Technology
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
330
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
160
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
コンテナセキュリティのためのLandlock入門
nullpo_head
2
320
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
1
110
オプトインカメラ:UWB測位を応用したオプトイン型のカメラ計測
matthewlujp
0
170
[Ruby] Develop a Morse Code Learning Gem & Beep from Strings
oguressive
1
150
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
210
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
How GitHub (no longer) Works
holman
311
140k
BBQ
matthewcrist
85
9.4k
How to train your dragon (web standard)
notwaldorf
88
5.7k
RailsConf 2023
tenderlove
29
940
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
The Invisible Side of Design
smashingmag
298
50k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Transcript
*UBNBFŢœŕͱ Φʔϓϯηϛφʔ!ౡ
*UBNBFʹ͍ͭͯௐͨ͜ͱ ΛŢœŕͱؒͰհ͢Δ -5Ͱ͢
ࣗݾհ w ݹୡ࠸ w 1SPHSBNNFS!0SBOHF4ZTUFN
ߏཧྺ w ͖͔͚ͬɺSFCVJMEGN w ೖ$IFG4PMPͰ$IFGͷษڧΛ࢝ΊΔ w ձࣾͰͭͷαʔϏεͷαʔόʔͷߏཧΛ $IFGͰͬͯΈͨ
$IFGศར͚ͩΕͲɺ ͬͺΓ͍͠ͳ
ͦͯ͠ൃڰ
None
None
w ࠓͷͱ͜ΖࣗͷؔΘΔنͩͱϨγϐΛ͚ͨΓɺ ࠶ར༻ͨ͠Γ͢Δஈ֊͡Όͳ͍ؾ͕͢Δ w $IFGɺΦʔόʔεϖοΫ͔͠Εͳ͍ w ϛυϧΣΞͷߏͦΜͳʹෳࡶͰͳ͍͠ɺ ͭͷϑΝΠϧʹॻ͔Ε͍ͯΔ΄͏͕Θ͔Γ͍͢ن w
ొਓ͕ଟ͍Α͏
*UBNBF
– https://github.com/itamae-kitchen/itamae l4JNQMFBOEMJHIUXFJHIUDPOpHVSBUJPO NBOBHFNFOUUPPMJOTQJSFECZ$IFGz
*UBNBF w !SZPUBSBJ͞Μ͕࡞ऀ w $IFGͷΑ͏ͳ%4-ͰΠϯϑϥίʔυΛهड़ w $IFGͬͯͨͳΒֶशίετ͍ w $IFGͷϨγϐͱޓੑͳ͍ w
ΤʔδΣϯτϨε w ႈੑ w WͷϦϦʔεɺ݄ w 4QFDJOGSB্ʹ࣮ w 04ͷҧ͍࣮ߦܗࣜͷҧ͍Λٵऩͯ͘͠ΕΔίϚϯυ࣮ߦϨΠϠʔ
*UBNBF w ొਓ͕গͳ͍ DPPLCPPLT SFDJQFT SPMFT FOWJSPONFOUT $IFG4FSWFS #FSLTIFMG SFDJQFT
Chef Itamae
*OTUBMM $ gem install itamae
3FDJQF $ cat recipe.rb package ‘apache2’ service ‘apache2’ do action
[:enable, :start] end remote_file ‘/etc/apache2/sites-available/default’ do source ‘files/apache2/default’ notifies :reload, ‘service[apache2]’ end user ‘craete deploy user’ do username ‘deploy’ password ‘secret’ # SHA-512 でハッシュ化したもの end
"QQMZ MPDBM TTI WBHSBOU $ sudo itamae local recipe.rb $
itamae ssh —―host tfrkd.org recipe.rb $ itamae ssh —―host default —―vagrant recipe.rb
3FTPVSDF w EJSFDUPSZ w FYFDVUF w pMF w HJU w
HSPVQ w MJOL w MPDBM@SVCZ@CMPDL w QBDLBHF w SFNPUF@EJSFDUPSZ w SFNPUF@pMF w TFSWJDF w UFNQMBUF w VTFS 13 resource type
ͦͷଞ w 0IBJ͕͑Δ w ରαʔόͷใΛ͍Ζ͍ΖऔಘͰ͖Δ w PIBJΦϓγϣϯ w /PEF"UUSJCVUFT͕͑Δ w
ϨγϐதͰՄมʹ͍ͨ͠ͱ͜Ζʹ w JODMVEF@SFDJQF w ଞͷϨγϐΛJODMVEF w EFpOJUJPOT w FYFDVUFSFTPVSDFͩΒ͚ʹͳͬͨͱ͖ʹ·ͱΊͯ৽͍͠SFTPVSDFΛ࡞Γ͍ͨ ͱ͖ͱ͔
1MVHJO w HFNʹͯ͠#VOEMFSͰཧ w 3FDJQFͱ3FTPVSDF
4FBSDI1MVHJOT w HJUIVCDPNTFBSDI VUG㾎RJUBNBFQMVHJO w SVCZHFNTPSHTFBSDI VUG㾎RVFSZJUBNBFQMVHJO ໋໊نଇ JUBNBFQMVHJOSFTPVSDFTFOHJSJ JUBNBFQMVHJOSFDJQFUPOKJSV
ใݯ w IUUQTHJUIVCDPNJUBNBFLJUDIFOJUBNBF w (JU)VCϦϙδτϦ w IUUQTHJUIVCDPNJUBNBFLJUDIFOJUBNBFXJLJ w υΩϡϝϯτ(JU)VC8JLJ
w IUUQTXXXHPPHMFDPKQTFBSDI RJUBNBF w (PPHMFݕࡧ w IUUQTRJJUBDPNUBHTJUBNBF w 2JJUB
ใݯ IUUQTTQFBLFSEFDLDPNSZPUBSBJ JUBNBFJOGSBBTDPEFYJBO[IVBOHRVFSFOIVJ
ࡶஊ w $IFGͬͯͨΓɺ3VCZʹೃછΈͷ͋Δɺܰྔͳαʔόʔߏ ཧπʔϧ͕ཉ͍͠ͳͱ͍͏ਓʹ͓͢͢Ί w "OTJCMF͍͍ΑͶ w 3FTPVSDF͕গͳ͍ w
࠷ݶ͋Δɻࠓޙʹظ w υΩϡϝϯτ͕ेʹॻ͔Ε͍ͯͳ͍ w ίʔυΛಡΉඞཁ͕গ͋͠Δ
ࡶஊ w σΟϨΫτϦߏͱ͔Ͳ͜ʹԿΛͲ͜ʹஔ͔͘໎͏ w ଞͷߏཧπʔϧ͕ഓ͖ͬͯͨͷΛࢀߟʹ͢Δ w ίϛϡχςΟʹΑΔϓϥάΠϯ·ͩ͋Μ·Γͳͦ͞͏ w ฒྻ࣮ߦ
w 3BLFpMF $BQJTUSBOPͳͲͰ
Ͳ͏