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.2k
メンティー同士で輪読会を始めたら学びしかなかった
rvirus0817
1
1k
MENTAを5年やってみて:メンタリングで意識していること
rvirus0817
0
450
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
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
860
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
310
Jakarta EE meets AI
ivargrimstad
0
580
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
100
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
EventSourcingの理想と現実
wenas
6
2.3k
Arm移行タイムアタック
qnighy
0
300
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Become a Pro
speakerdeck
PRO
25
5k
What's new in Ruby 2.0
geeforr
343
31k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Automating Front-end Workflow
addyosmani
1366
200k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
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 ͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ