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
how-to-start-ansible-with-vmware
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
hirofumihida
February 22, 2017
Technology
0
920
how-to-start-ansible-with-vmware
hirofumihida
February 22, 2017
Tweet
Share
More Decks by hirofumihida
See All by hirofumihida
Trouble with enabling TLS on Postfix
hirofumihida
1
3.2k
Other Decks in Technology
See All in Technology
Cosmos World Foundation Model Platform for Physical AI
takmin
0
940
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
430
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
190
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
120
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
200
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
150
【Oracle Cloud ウェビナー】[Oracle AI Database + AWS] Oracle Database@AWSで広がるクラウドの新たな選択肢とAI時代のデータ戦略
oracle4engineer
PRO
2
170
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
600
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
350
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
Featured
See All Featured
Statistics for Hackers
jakevdp
799
230k
Mind Mapping
helmedeiros
PRO
0
88
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
93
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
170
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
780
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Transcript
&49Jͱ࢝ΊΔBOTJCMF ansible & vmware are 1 2017-02-23 Ansible Practice Meetup
@ Think IT
TEXT ࣗݾհ ▸ Name: Hirofumi Hida ▸ Job: Ops /
ΠϯϑϥΤϯδχΞ ▸ BackGround: ▸ Technical Support Engineer ▸ Si ▸ Lang: Python, Node.js etc ▸ Twitter: @gekko_qv ▸ Qiita: http://qiita.com/hirofumihida 2
Έͳ͞Μ&49Jͬͯ·͔͢ʁ ▸ ϓϩμΫγϣϯ? ▸ ݕূڥ? ▸ ࣗ? ▸ etc 3
Έͳ͞Μ&49Jͬͯ·͔͢ʁ ▸ ϓϩμΫγϣϯ? ▸ ݕূڥ? ▸ ࣗ? ▸ etc 4
ͬͪ͜ΑΓͷ͓
ΫϥΠΞϯτԿΛͬͯ·͔͢ʁ ▸ vSphere Client (.NET or WEB) ? ▸ PowerCLI
? ▸ API (python, ruby etc) ? ▸ etc 5
ΫϥΠΞϯτԿΛͬͯ·͔͢ʁ ▸ vSphere Client (.NET or WEB) ? ▸ PowerCLI
? ▸ API (python, ruby etc) ? ▸ etc 6 )BWF'VO
(6*ͰΆͪΆͪ͢Δͷ͖Ͱ͔͢ ▸ Φϖϛε ▸ εΫϦʔϯγϣοτ͖ͷखॱॻ࡞ ▸ ࡞ۀূऔಘ 7
(6*ͰΆͪΆͪ͢Δͷ͖Ͱ͔͢ ▸ Φϖϛε ▸ εΫϦʔϯγϣοτ͖ͷखॱॻ࡞ ▸ ࡞ۀূऔಘ 8
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 9
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 10
TEXT ֤छϞδϡʔϧ͋Γ·͢ ▸ http://docs.ansible.com/ansible/list_of_cloud_modules.html ▸ ※ ߋ৽͕සൟͰͳ͍ͷؚΉ Target Modules Amazon
98 Azure 18 Docker 7 Google 14 OpenStack 54 Virt(KVM) 3 Vmware 28 2017/02/22 ݱࡏ 11
TEXT ֤छϞδϡʔϧ͋Γ·͢ ▸ http://docs.ansible.com/ansible/list_of_cloud_modules.html 12
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 13
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ http://docs.ansible.com/ansible/vmware_guest_module.html ▸ http://docs.ansible.com/ansible/vsphere_guest_module.html module Requirement vmware_guest PyVmomi
vsphere_guest pysphere 14
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ http://docs.ansible.com/ansible/vmware_guest_module.html ▸ http://docs.ansible.com/ansible/vsphere_guest_module.html module Requirement vmware_guest PyVmomi
Ͱ͖Δ͚ͩ ͬͪ͜Λ͏! vsphere_guest pysphere QZTQIFSF ϝϯςऴྃ 15
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ https://github.com/argos83/pysphere ͨͩ͠ɺ͜ͷ͋ͱͰʹ͢Δ Standalone ESXi (ແঈ൛) Ͱ pysphere
Ͱͳ͍ͱಈ͔ͳ͍ػೳ͋ͬͨΓ͢Δ… 16
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ https://www.ansible.com/blog/managing-vmware-guests 17
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ https://www.ansible.com/blog/managing-vmware-guests 18
TEXT (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ https://github.com/vmware/pyvmomi ESXi όʔδϣϯͱ߹Θͤ·͠ΐ͏ 19
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 20
TEXT 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ ʹ͍͍ͨ ▸ vsphere_guest Ͱ͋Ε esxi ύϥϝʔλʔʹ "ha-datacenter
“ ͚Δͱ VM ࡞Մೳ ▸ vmware_guest ͩͱ Standalone ESXi ʹରͯ͠ͷ VM ࡞ ࠔͦ͏… ▸ sshpass ΛೖΕΕ vim-cmd ίϚϯυΛଧͭ͜ͱՄೳ 21
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 22
TEXT ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ESXi on VirtualBox ▸ ESXi on
KVM ▸ Installation How to: Nested ESXi on KVM ▸ http://qiita.com/hirofumihida/items/ 3bc59a3094efa33ac79c ▸ ※ VM ͷ CPU ੍ݶͷͨΊ 64 bit GuestOS ͕࡞Εͳ͍ͳͲͷ ੍ݶ͋ΓಘΔ 23
TEXT ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ https://github.com/hirofumihida/ansible-esxi-sample 24
TEXT ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J 25
TEXT ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J 26
TEXT ΞδΣϯμ ▸ ֤छϞδϡʔϧ͋Γ·͢ ▸ (VFTU༻ϞδϡʔϧΆ͍ͷ͕ͭ͋Δ͕ ▸ 4UBOEBMPOF&49J ݶఆత͚ͩͲʜ
ʹ͍͍ͨ ▸ ࠓ͙͢ʹͰ࢝ΊΒΕΔBOTJCMF &49J ▸ ·ͱΊ 27
TEXT ·ͱΊ ▸ .PEVMFʹ͍ͭͯ ▸ ։ൃ͕׆ൃͳͷόʔδϣϯ͕มΘΔͱػೳมΘͬͯ ಉ͡1MBZCPPL͕͍·Θͤͳ͍͜ͱ͕͋Δ /PO 3FRVJSF͔Β3FRVJSFύϥϝʔλʹͳͬͨΓ
▸ 3FRVJSFNFOUͷ1ZUIPO"1*ͷ։ൃঢ়گʹࠨӈ͞Ε ΔͷͰҙ͕ඞཁ 28
TEXT ·ͱΊ ▸ "OTJCMFͱ&49JϑϨϯζʹͳΕͦ͏͔ 29
TEXT ·ͱΊ ▸ "OTJCMFͱ&49JϑϨϯζʹͳΕͦ͏͔ ▸ ͨͿΜʜ 30 ▸ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠