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
380
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
あの職員室 / That teachers' lounge
vtryo
0
86
自分だけの、誰も想像できないキャリアの育て方 〜偶然から始めるキャリアプラン〜 / Career planning starting by luckly v2
vtryo
1
390
60以上のプロダクトを持つ組織における開発者体験向上への取り組み - チームAPIとBackstageで構築する組織の可視化基盤 - / sre next 2025 Efforts to Improve Developer Experience in an Organization with Over 60 Products
vtryo
3
2.7k
一体いつからSRE NEXTがSREだけのカンファレンスだと錯覚していた? / When did you ever get the idea that SRE NEXT was a conference just for SREs?
vtryo
1
700
一人から始めたSREチーム3年の歩み - 求められるスキルの変化とチームのあり方 - / The three-year journey of the SRE team, which started all by myself
vtryo
9
14k
2ヶ月かかるDBアップグレード検証を最大2週間に短縮した自作Go製CLIツール「Platinum」を紹介する / Introducing Go CLI tool "Platinum" for shortened DB upgrade validation
vtryo
3
1.9k
MySQLテーブル毎のデータサイズ集計をDatadog × Prometheus Exporter × Kubernetesを使って自動化する / Automate data size aggregation for each MySQL table using Datadog, Prometheus Exporter and Kubernetes
vtryo
0
440
自分だけの、誰も想像できないキャリアの育て方 ~懇親会で実践できる!偶然から始めるキャリアプラン~ / Career planning starting by luckly
vtryo
2
1.4k
なぜSREをはじめるのは難しいのか / Why is it hard to start SRE?
vtryo
1
700
Other Decks in Technology
See All in Technology
Webhook best practices for rock solid and resilient deployments
glaforge
1
290
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
Digitization部 紹介資料
sansan33
PRO
1
6.8k
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.1k
量子クラウドサービスの裏側 〜Deep Dive into OQTOPUS〜
oqtopus
0
110
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
580
生成AIを活用した音声文字起こしシステムの2つの構築パターンについて
miu_crescent
PRO
2
200
Greatest Disaster Hits in Web Performance
guaca
0
240
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
220
Cosmos World Foundation Model Platform for Physical AI
takmin
0
890
仕様書駆動AI開発の実践: Issue→Skill→PRテンプレで 再現性を作る
knishioka
2
650
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
470
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
53
Six Lessons from altMBA
skipperchong
29
4.1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
66
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Speed Design
sergeychernyshev
33
1.5k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
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