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
ansible実践 / ansible-my-use-case
Search
VTRyo
April 19, 2018
Technology
0
350
ansible実践 / ansible-my-use-case
2018/4/19 サポーターズ勉強会資料
github:
https://github.com/VTRyo/ansible-samples
blog:
https://tech.vtryo.me
VTRyo
April 19, 2018
Tweet
Share
More Decks by VTRyo
See All by VTRyo
一人から始めたSREチーム3年の歩み - 求められるスキルの変化とチームのあり方 - / The three-year journey of the SRE team, which started all by myself
vtryo
8
7k
2ヶ月かかるDBアップグレード検証を最大2週間に短縮した自作Go製CLIツール「Platinum」を紹介する / Introducing Go CLI tool "Platinum" for shortened DB upgrade validation
vtryo
3
1.2k
MySQLテーブル毎のデータサイズ集計をDatadog × Prometheus Exporter × Kubernetesを使って自動化する / Automate data size aggregation for each MySQL table using Datadog, Prometheus Exporter and Kubernetes
vtryo
0
340
自分だけの、誰も想像できないキャリアの育て方 ~懇親会で実践できる!偶然から始めるキャリアプラン~ / Career planning starting by luckly
vtryo
2
1.2k
なぜSREをはじめるのは難しいのか / Why is it hard to start SRE?
vtryo
1
540
Datadogでシステムとアプリケーション情報を民主化をはじめよう / System and Application information democratize with datadog
vtryo
2
3.2k
サービスと開発者に最も近いProduct SREsとして 取り組んでいるコト / Work as Product SREs closest to services and developers
vtryo
0
2.8k
一人から始めるプロダクトSRE / How to start SRE in a product team, all by yourself
vtryo
5
13k
へんなSlackスタンプMeetup
vtryo
0
390
Other Decks in Technology
See All in Technology
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
18k
Cracking the Coding Interview 6th Edition
gdplabs
14
28k
JavaにおけるNull非許容性
skrb
2
2.6k
あなたが人生で成功するための5つの普遍的法則 #jawsug #jawsdays2025 / 20250301 HEROZ
yoshidashingo
2
280
Pwned Labsのすゝめ
ken5scal
1
400
Perlの生きのこり - エンジニアがこの先生きのこるためのカンファレンス2025
kfly8
2
270
OPENLOGI Company Profile
hr01
0
60k
Oracle Database Technology Night #87-1 : Exadata Database Service on Exascale Infrastructure(ExaDB-XS)サービス詳細
oracle4engineer
PRO
1
170
組織におけるCCoEの役割とAWS活用事例
nrinetcom
PRO
4
120
Amazon Q Developerの無料利用枠を使い倒してHello worldを表示させよう!
nrinetcom
PRO
2
110
Active Directory攻防
cryptopeg
PRO
8
5.4k
わたしがEMとして入社した「最初の100日」の過ごし方 / EMConfJp2025
daiksy
14
4.9k
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
34
3.1k
A Tale of Four Properties
chriscoyier
158
23k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Designing for Performance
lara
604
68k
Making Projects Easy
brettharned
116
6k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Six Lessons from altMBA
skipperchong
27
3.6k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
4 Signs Your Business is Dying
shpigford
182
22k
Transcript
A N S I B L E ࣮ ફ I
N F R A / S R E RY O
࣍ • ࣗݾհ • ͲΜͳαʔόΛཧ͍ͯ͠Δʁ • ࣮ࡍʹӡ༻͍ͯ͠ΔσΟϨΫτϦߏ • ࣄྫू
ɹɾvagrant + ansible ɹɾdocker + ansible ɹɾansible-vault ɹɾAWS + ansible
͓ Β ͤ • ͭͿ͍ͯ͘ΕΔͱ࣭ͱͯ͠रͬͨΓ͠·͢ • #spzcolab ΑΓٞ͘͢͠
͓ Β ͤ • https://github.com/VTRyo/ansible-samples ҎԼͷϦϙδτϦΛݩʹΛਐΊ·͢
ࣗ ݾ հ
ࣗ ݾ հ HUGOͰϒϩά
ࣗ ݾ հ ৽ଔͰSESʹೖͬͨ΅͘ ແࣄग़
ࣗ ݾ հ sp.17aʲήετ: 3s_hvʳ ָ͍͠ɺۀޮԽېࢭͷϒϥοΫSESاۀ͔Βͷग़ Sier4͚͔࣍ΒJob Change!!
Ͳ Μ ͳ α ʔ ό Λ ཧ ͯ͠
͍ Δʁ Ұ෦͓Έͤ͠·͢
Ͳ Μ ͳ α ʔ ό Λ ཧ ͯ͠
͍ Δʁ ࣗࣾϓϩμΫτΛྫʹ
࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ
Ϋ τ Ϧ ߏ ͳΔ͘ϕετϓϥΫςΟεʹد͍ͤͯΔ ɾมϑΝΠϧͷgroup_vars ɾରαʔόΛهड़ͨ͠hosts ɾrolesʹϛυϧΣΞ܈
࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ
Ϋ τ Ϧ ߏ HSPVQ@WBST ɾ֤ڥ͝ͱʹϑΝΠϧΛ ɹΘ͚ͯ͋Δɻ ɾhostsͷάϧʔϐϯάʹ ɹج͍ͮͯಡΈࠐ·ΕΔ
࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ
Ϋ τ Ϧ ߏ )PTUT ɾhostsڥ͝ͱʹ ɾhostsάϧʔϐϯά
࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ
Ϋ τ Ϧ ߏ 3PMFT ɾ֤ϛυϧΣΞΛ֨ೲ ɾαʔόʹΑͬͯҟͳΔ ɹόʔδϣϯ͋Δ
࣮ ࡍ ʹ ӡ ༻ ͯ͠ ͍ Δ σΟ Ϩ
Ϋ τ Ϧ ߏ αʔό͝ͱʹ࣮ߦ͍ͤͨ͞λεΫ͕ҧ͏ͱ͖ʁ ɾྫ͑CentOSͱamazonlinuxͱͰذ͍ͨ͠ͱ͖
ࣄ ྫ ू ͓͔ͪͶʁ
ࣄ ྫ ू 7BHSBOU BOTJCMF ɾChefͰߏ͞Εͯͯෆศ ɾ୭ϝϯςͰ͖ͳ͍ ɾςϯϓϨʔτίϐϖͷcookbook ʲ࠾༻ཧ༝ʳ
ࣄ ྫ ू %PDLFS BOTJCMFʢ˞ݱࡏݕূஈ֊ʣ ɾDockerfileΛॻ͖͢ͷ͕େม ɾvagrantͰ࡞ͨ͠playbookΛྲྀ༻Ͱ͖Δ ɾansible + packerͰdocker
imageΛݻΊΒΕΔ ʲ࠾༻ཧ༝ʳ
ࣄ ྫ ू BOTJCMFWBVMU ɾSaasʹίʔυΛPush͢ΔͨΊͷ҉߸Խ ɾansible-vault͏ͷ͕༰қ ʲ࠾༻ཧ༝ʳ
ࣄ ྫ ू "84 BOTJCMFʢΊ·ͨ͠ʣ ɾplaybook͕Խͨ͠ ɾAWSϞδϡʔϧ͕update࣌ʹසൟʹೖΕସΘΔ ɹˠॻ͖͕͠ൃੜ͢Δ ɾTerraformͰΑ͘Ͷʁ ʲ࠾༻͠ͳ͔ͬͨཧ༝ʳ
· ͱ Ί
· ͱ Ί BOTJCMF͍͍ͧ ɾͰແཧʹansibleΛ͏ඞཁͳ͍ ɾ͋͘·Ͱӡ༻্ͷޮͳͲΛߟྀ͍ͯͬͯ͘͠ ɾߏཧͱͯ͠ͷ͍উखҰ൪͍͍ͱߟ͑ͯΔ
A N S I B L E ࣮ ફ I
N F R A / S R E RY O