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
MacをAnsibleで 構成管理しちゃったお話
Search
adachin0817
July 30, 2019
Programming
2
3k
MacをAnsibleで 構成管理しちゃったお話
https://ansible-users.connpass.com/event/135965/
adachin0817
July 30, 2019
Tweet
Share
More Decks by adachin0817
See All by adachin0817
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
11
7.3k
メンティー同士で輪読会を始めたら学びしかなかった
rvirus0817
1
1k
MENTAを5年やってみて:メンタリングで意識していること
rvirus0817
0
460
Lancersをコンテナへ本番移行する取り組み
rvirus0817
1
1.7k
~CircleCIでTerraformリリースのサーバーレス化~ インフラの独自リリースを継続的リリースへ
rvirus0817
0
3.6k
Terraform v0.12.29 → v1.0.5にバージョンアップする上で気をつけること
rvirus0817
0
4.1k
MENTAをAWSに移行して振り返る(ECS/Fargate + Laravel編)
rvirus0817
3
8.6k
ECS/Fargateの活用事例(CakePHP編)
rvirus0817
1
4k
ECS/Fargateの活用事例 (Ruby on Rails編)
rvirus0817
3
2.9k
Other Decks in Programming
See All in Programming
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.5k
距離関数を極める! / SESSIONS 2024
gam0022
0
290
CSC509 Lecture 12
javiergs
PRO
0
160
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
150
Functional Event Sourcing using Sekiban
tomohisa
0
100
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
120
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
480
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
990
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
3
1.2k
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
Featured
See All Featured
Site-Speed That Sticks
csswizardry
0
31
Writing Fast Ruby
sferik
627
61k
How STYLIGHT went responsive
nonsquared
95
5.2k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
BBQ
matthewcrist
85
9.3k
Making Projects Easy
brettharned
115
5.9k
How to train your dragon (web standard)
notwaldorf
88
5.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Music & Morning Musume
bryan
46
6.2k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Transcript
2019/07/30 Ansible Night in Tokyo 2019.07 MacΛAnsibleͰ ߏཧͪ͠Ό͓ͬͨ Lancers,Inc @adachin0817/SRE
2019/07/30 Ansible Night in Tokyo 2019.07 ΞδΣϯμ ɾࣗݾհ ɾݸਓతͳ͓
ɾansible_MacΛ࡞ͬͨΘ͚ ɾߏ ɾ͍ํ ɾσϞ ɾ·ͱΊ
2019/07/30 Ansible Night in Tokyo 2019.07 ࣗݾհ
2019/07/30 Ansible Night in Tokyo 2019.07 ࣗݾհ - name:
Introduction me user: name: adachi.ryo(adachin) work: SRE detail: aws analytical base skill: ansible terraform embulk shell PHP go blog: blog.adachin.me oss: Vuls contributor Evangelist twitter:adachin0817 github:RVIRUS0817
2019/07/30 Ansible Night in Tokyo 2019.07 ݸਓతͳ͓
2019/07/30 Ansible Night in Tokyo 2019.07 ݸਓϒϩάΛDigitalOceanʹҠߦ https://blog.adachin.me/archives/10635
γϯΨϙʔϧϦʔδϣϯ ʹͳΓ·ͨ͠✌ ౦ژϦʔδϣϯ͔Β
2019/07/30 Ansible Night in Tokyo 2019.07 ϥϯαʔζΛࢧ͑Δٕज़
2019/07/30 Ansible Night in Tokyo 2019.07 ansible_MacΛ࡞ͬͨΘ͚
2019/07/30 Ansible Night in Tokyo 2019.07 Θ͍ͷλʔϛφϧڥͱΞϓϦέʔγϣϯΒ ɾnvim/dein.vim ɾzsh
ɾtmux/powerline ɾpeco/ghq (control + h(history),j(ssh)/repo ɾ伴Google DriveͳͲͰཧ
2019/07/30 Ansible Night in Tokyo 2019.07 օ͞Μ͜Μͳܦݧ͋Γ·ͤΜ͔ʁ ɾࠓ·ͰgistΛͬͯཧ(Θ͔Δ) ɾίϐϖͰରԠ(μα͍✌)
ɾԿΛมߋͨ͠ͷ͔ΕͯݸਓͷPCͱ૬ҧ͕ग़Δ(ന) ɾస৬ͨ͠ͱ͖(ങ͍ସ͑)ʹηοτΞοϓ͕μϧ͍ ɾ͍ͭೖΕͯΔΞϓϦέʔγϣϯͳΜ͚ͩͬ ɾࠪͳͲͰTime machine͕͑ͳ͍ ɾTime machineͰ͍͍͕ແବͳͷೖΕͨ͘ͳ͍
2019/07/30 Ansible Night in Tokyo 2019.07 ͦͯ͠AnsibleͰ࡞ͬͯ͠·ͬͨ ɾ2017 ɾAnsible
2.8.3 ɾશϦϙδτϦԽ ɾϗʔϜσΟϨΫτϦʹ͋ΔઃఆϑΝΠϧΛཧ ɾChromeͳͲͷΞϓϦέʔγϣϯཧ ɾhomebrewͷύοέʔδཧ ɾ؆୯ʹΧελϚΠζͰ͖ΔΑ͏ʹ https://blog.adachin.me/archives/5040 https://github.com/RVIRUS0817/ansible_Mac ansible_Mac
2019/07/30 Ansible Night in Tokyo 2019.07 ߏ
2019/07/30 Ansible Night in Tokyo 2019.07 ߏ ɾroles3ͭ ɾϩʔΧϧϗετͰ࣮ߦ
ɾgroup_vars/allʹͯύοέʔδ໊Λཧ
2019/07/30 Ansible Night in Tokyo 2019.07 ./scripts/first.sh ɾ·ͣHomebrewͱAnsibleΛΠϯετʔϧ
2019/07/30 Ansible Night in Tokyo 2019.07 roles/homebrew/tasks/main.yml
2019/07/30 Ansible Night in Tokyo 2019.07 roles/homebrew-cask/tasks/main.yml
2019/07/30 Ansible Night in Tokyo 2019.07 roles/homedirectory/tasks/main.yml
2019/07/30 Ansible Night in Tokyo 2019.07 group_vars/all group_vars/allΛݟΕԿ͕ೖ͍ͬͯΔ͔Θ͔Δʂ
2019/07/30 Ansible Night in Tokyo 2019.07 ͍ํ
2019/07/30 Ansible Night in Tokyo 2019.07 ४උ $ Fork!!!!!!!!!!!!!!!!!!!!!!!!!
$ cd ansible_Mac $ ./scripts/first.sh 1. run first.sh 2. add role/homedirectory/files 3. add group_vars/all 4. dry-run $ ansible-playbook -i hosts mac.yml -KD -C 5. run $ ansible-playbook -i hosts mac.yml -KD 6. reboot Mac →ॳΊ࣮ͯߦ͢Δ߹
2019/07/30 Ansible Night in Tokyo 2019.07 group_vars/all
2019/07/30 Ansible Night in Tokyo 2019.07 σϞΓ·;
2019/07/30 Ansible Night in Tokyo 2019.07 ·ͱΊ
2019/07/30 Ansible Night in Tokyo 2019.07 ·ͱΊ ɾγϯϓϧʹ࡞Εͨ ɾMacͷઃఆՄࢹԽͰ͖ͨ
ɾΤϯδχΞಉ࢜ͰಠࣗίϚϯυڞ༗Ͱ͖ΔΑ͏ʹ ɾॴʹͱΒΘΕͣgit pullɺansible࣮ߦ͢Δ͚ͩ ɾ࣮ߦ͢Δͷʹ͕͔͔࣌ؒͬͯ͠·͏ ɾͥͻStarΛʂʂʂʂ
2019/07/30 Ansible Night in Tokyo 2019.07 ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ