Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ansible meets Windows.

Ansible meets Windows.

Kazushige TAKEUCHI

September 21, 2014
Tweet

More Decks by Kazushige TAKEUCHI

Other Decks in Technology

Transcript

  1. 8IPBN*ʁ w /BNFɿ,B[VTIJHF5",&6$)* w #FMPOHUPɿ๭ϝʔΧʔʢࢠʣ w 0DDVQBUJPOɿ %FW0QTγϯάϧɿ48։ൃ "OEPSJEɺ8FC"QQ ɺΠϯϑϥ։ൃʢ47ɺ/8ʣɺ

    ӡ༻؂ࢹɺFUD -JOVY೥બखʢ8JOEPXTਏ͍ʣ w )PCCZࣗಈԽ ϝΠϯҊ݅ ݸਓҊ݅ ʢ࢓ࣄͷཪଆͰඞཁʹͳΔҰਓͰ΍Γ͖Βͳ͚Ε͹ͳΒͳ͍Կ͔ʣ   ݚڀॴҊ݅ɿίϨ͕΍Γͨͯ͘͸͍ͬ ͨ"OESPJEʂʢ૊ΈࠐΈˍϛυϧʣ "OESPJEͷ։ൃϓϩηεʢ(FSSJU$PEF3FWJFX4ZTUFNʣ
 8JOEPXTʢαʔόɺ"DUJWF%JSFDUPSZɺ7#4ɺ1PXFSTIFMMʣͱٔΕͨΓ   ωοτϫʔΫʁ԰͞Μͱݟ͔͚ͤͨ ιϑτ΢ΣΞ԰͞Μ +FOLJOTͱ͔(FSSJUͱ͔7ZBUUB ݱɿ7Z04 ͱٔΕͳ͕Βɺॻ੶ࣥච
 ҰਓͰࣾ಺γεςϜ࡞ͬͨΓʢ౰વɺ8JOEPXTͰ440  ݱࡏ ΠϯϑϥΞʔΩςΫτʁ Ͱ΋/*$ɺ5$1ͱ͔ͱ֨ಆத Χʔωϧղੳͨ͠Γɺ5$1ͱઓͬͨΓɺ
 "OTJCMFΛΈΜͳʹ࢖ΘͤΔʹ͸ʁΛ࣮ફ ͱ͋ΔࣗࣾϓϩμΫτͷ8JOEPXTαϙʔτʹਚྗ 
  2.  #PPUTUSBQQJOH ʢXJUI$PCCMFSʣ 04Πϝʔδ഑৴ ʔ αʔόʔʹԿ΋ೖͬͯͳ͍ॴ ͔ΒߏஙՄೳ "OTJCMFΛ࢖͍͜ͳͭ͢ͷํ๏ "OTJCMFษڧձʹࢀՃͯ͠ͳ͍ํͷҝͷৼΓฦΓɺͦͷ̍ ྖҬ໊

    ฐࣾ಺  ݺশ Α͘࢖͏Ϟδϡʔϧ ࣮ݱ͢Δ͜ͱ  "VUPNBUJPO όονॲཧ ʢύον഑৴ʣ SQN ZVN TDSJQU TIFMM ͪΐͬͱͨ͠࡞ۀͷόονॲཧ ɾϧʔςΟϯά௥Ճ ɾϛυϧ΢ΣΞͷΠϯετʔϧ طଘγΣϧͷྲྀ༻ɺϩάऩू  $POpHVSBUJPO .BOBHFNFOU ίϯϑΟάੜ੒ UFNQMBUF ύον഑৴Λू໿ͯ͠ɺ αʔόΛ·Δͬͱߏங  0SDIFTUSBUJPO ΦʔέετϨʔγ ϣϯ /FU*OGSBTUSVDUVSF αʔϏε੾Γ཭͠૊ΈࠐΈ BOENPSF 
  3. 8JOEPXTλʔήοτͰ࢖͏৔߹ w ݱࡏ W ͸Ќɺެ͔ࣜΒ഑෍͞Ε͍ͯΔ෺ΛΠϯετʔϧͯ͠΋ಈ͔ͳ͍ w 8JO3. 1PXFSTIFMMΛར༻ʢ04/BUJWFͷ෺Λ࢖͏ͷ͕"OTJCMFͷϙϦγʔʣ w λʔήοτόʔδϣϯɿ8JOEPXT4FSWFS341ɺɺ8JOEPXT̓ɺ̔

    w Ϟδϡʔϧ͕ඇৗʹগͳ͍ɺطଘϞδϡʔϧͰޓ׵ͳ͍෺ଟ͍ w ҎԼͷखॱͰར༻Մೳ ϗετଆ-JOVYɿXJOSNQBDLBHFΛಋೖɻ λʔήοτ8JOEPXTɿ w 8JOEPXT.BOBHFNFOU'SBNFXPSL 1PXFSTIFMM ͷಋೖ w 8JOEPXT3FNPUF.BOBHFNFOUͷ༗ޮԽˍࡉ͔͍ηΩϡϦςΟઃఆ ৄࡉ͸ຊࢿྉͷޙʹ͚ͭͯ͋Γ·͢ɻ ޙͰ͝ࢀর͍ͩ͘͞ɻ 
  4. ݱ࣌఺Ͱαϙʔτ͞Ε͍ͯΔͷ͸ҎԼ 8JOEPXTͷϞδϡʔϧ Ϟδϡʔϧ໊ උߟ ݸਓతʹ ଟ༻ʢޙड़ʣ 8JO3.ͷ઀ଓςετ XJO@QJOH ࠷ॳʹଟ༻ Ϣʔβʔʗάϧʔϓͷ௥Ճ

    XJO@VTFS XJO@HSPVQ ʔ αʔϏεͷ੍ޚ XJO@TFSWJDF ʔ 8JOEPXTػೳͷ༗ޮʗແޮԽ XJO@GFBUVSF ҎԼͷίϚϯυϨοτͰར༻ՄೳͳҾ਺͕Θ͔Δɻ *NQPSU.PEVMF4FSWFS.BOBHFS(FU8JOEPXT'FBUVSF ϗετ⇛λʔήοτͰμ΢ϯϩʔυ ʢ164)͸ෆՄʣ XJO@HFU@VSM αʔόʹ%-͍ͨ͠ϑΝΠϧΛઌʹ )551αʔόʹ͓͍͓ͯ͘ඞཁ͕͋Δɻ ˕ .4*ͷΠϯετʔϧ XJO@NTJ ର࿩ࣜͷ͸ग़དྷͳ͍ʢΒ͍͠ʣ ࠓޙɺXJO@QBDLBHFʹมΘΔʁɻμ΢ϯϩʔυ΋ग़དྷΔΑ͏ʹ IUUQTHJUIVCDPNBOTJCMFBOTJCMFQVMM ˚ ϑΝΠϧͷ৘ใऔಘ XJO@TUBU pMFίϚϯυͷ୅ΘΓʹར༻ λʔήοτ⇛ϗετͷϑΝΠϧసૹ GFUDITMVSQ ʔ ̋ ੜ1PXFSTIFMM TDSJQU ϗετ্ͷ1PXFSTIFMMϑΝΠϧ QT Λసૹͯ͠ɺ࣮ߦ SBX λʔήοτ্ͷ1PXFSTIFMMϑΝΠϧ QT Λ࣮ߦ Ҿ਺͕࢖͑Δʂ ˕ 
  5. "OTJCMFGPSXJOEPXTͷΞʔΩςΫνϟ )045-JOVY $POOFDUJPO QZXJOSN NPEVMFXJO@ 5"3(&58JOEPXT 8JOEPXT 3FNPUF.BOBHFNFOU 1PXFS4IFMM 

    8FC4FSWJDF.BOBHFNFOUϓϩτίϧΛܦ༝੍ͯ͠ޚ ϝοηʔδܗࣜ͸40"1ʢ8JO3.͸ɺ.ˈͷ࣮૷໊ ػೳ໊ʣ ηΩϡϦςΟతʹةݥͳͷͰ)5514Λ࢖͍·͠ΐ͏ɻ OFUpMUFS JQUBCMFT 8JOEPXT'JSFXBMM )5514PO1PSU **4  84."/ 40"1 ͩͱ)551 #BTJDೝূ ʢ,FSCFSPTೝূ͕αϙʔτ༧ఆʣ
  6. $IFG͸Ͳ͏΍ͬͯ8JOEPXTαϙʔτ͍ͯ͠Δ͔ʁ w ҎԼ͕ಉࠝ͞Ε͍ͯΔ SVCZ NTZT CBTIͳͲͳͲʣ ͦͷଞ(FNͳͲ͕ଟ਺ w ௨ৗ͸ϓϥάΠϯͰิ׬ "OTJCMF

    $IFG ݴޠ 1PXFS4IFMM 3VCZ 1PXFSTIFMM .4* ̋ ʢඪ४ʣ ˚ ʢϓϥάΠϯʣ 4DSJQU 1PXFSTIFMM 1PXFSTIFMM ΤʔδΣϯτ ແ͠ ༗Γ 8JOEPXTλʔήοτʹԿ΋ &YDFQU1PXFSTIFMM Πϯετʔϧ͢Δ͜ͱͳ͘ར༻Մೳ 
  7. دΓಓɿ8JOEPXTͷϚγϯల։ʢෳ੡ʣΛߦ͏ͨΊʹ͸ εφοϓγϣοτΛऔͬͯɺϚγϯల։Λ͢Δɻ ෺ཧˍԾ૝໰Θͣ  ͕ɺ͍ͬͨ͡ޙͷ8JOEPXTαʔό͸ɺ୯७ͳίϐʔల։ͩͱࣦഊ ! ! 4ZTQSFQΛ΋͍ͪͯɺ00#& 0VUPGCPYFYQFSJFODFɺശ͔Βग़ͨ͠ঢ় ଶ

    ·Ͱɺ8JOEPXTͷ಺෦ঢ়ଶΛ໭ͤΔͷͰɺͦͪΒΛར༻͢Δɻ Ճ͑ͯɺࣗಈԠ౴ϑΝΠϧʢVOBUUFOEYNMʣΛ༻͍ͯɺઃఆͷࣗಈԽ͕Մ ೳ  TZTQSFQͰ؀ڥෳ੡༻ͷϚελɾΠϝʔδΛ࡞੒͢ΔɿIUUQXXXBUNBSLJUDPKQBJUBSUJDMFTOFXTIUNM Ϛγϯ4*%ͷॏෳਆ࿩ɹɹɹɹɹɹɹɹɹɹɹɹɹɿIUUQUFDIOFUNJDSPTPGUDPNKBKQXJOEPXTNBSL@BTQY ྫɿ4*%ͷॏෳ͠ɺ˓˓͕ࣦഊʢྫɿ8JOEPXT6QEBUF  ʢ4*%ϚγϯΛލ͍ͰϢχʔΫͳ*%ɺ8JOEPXTͷཪଆͰར༻ʣ
  8. 8JOEPXTల։ͷΠϝʔδ ߏஙલ Ϛγϯ Ϛγϯ̎ αʔϏε Մೳ Ϛελঢ়ଶ αʔϏε Մೳ 

    खಈߏங ల։TZTQSFQ˞ 6OBUUFOEYNM ˞ͱ͋ΔઃఆΛ๨ΕΔͱ 4FSWFS͸ճ͔͠࢖͑ͳ͍ͷͰ஫ҙ Ҏ߱͸ճ·Ͱڐ༰
  9. 8JOEPXT#PPUTUSBQQJOH -JOVYಉ༷ʹ$PCCMFS࢖͏ ఏҊ༧ఆࠓճͷσϞͰ͸ར༻  QYFMJOVYͷ୅ΘΓʹɺNFNEJTLʴ8JO1& 1SFJOTUBMMBUJPO &OWJSPONFOU Λ഑෍͢Δߏ੒ 8JO1&͔Βɺ04Πϯετʔϧ༻ͷTFUVQFYFΛ࣮ߦ ͪ͜ΒͰ΋ࣗಈԠ౴ϑΝΠϧΛ࢖ͬͯΠϯετʔϧΛߦ͑Δɻ

     8JOEPXT1&Λ࢖͏ʹ͸ 8JOEPXT"%, "TTFTNFOUˍ%FQMPZNFOU,JU Λ࢖͏ɻ چɿ8JOEPXT"*,8JOEPXT"VUPNBUFE*OTUBMMBUJPO,JU  ࠓճࢼͨ͠ͷ͸3͕ͩ࠷৽Ͱ͋Δ"%,Ͱ΋ར༻ՄೳͰͨ͠ɻ
  10. $PCCMFSʗ8JOEPXT1&ˍ"OTJCMFΛద༻ͨ͠ *NNVUBCMF*OGSBTUSVDUVSFͷΠϝʔδ ʢ͔̌Βߏஙͨ͠ΫϦʔϯͳΠϯϑϥʣ 04EJTL Ϛελঢ়ଶ αʔϏε Մೳ Ϛελঢ়ଶ αʔϏε Մೳ

    ؂ࢹαʔό ̏ɽ"OTJCMF ϑΝΠϧͷμ΢ϯϩʔυ  Ϛγϯ Ϛγϯ̎ VOBUUFOEYNM ʢBOTJCMFΛ࢖ͬͯੜ੒ʣ DPCCMFS
  11. ʢݸਓతͳʣ"OTJCMFͷར༻ํ๏  ϗετ )551 λʔήοτ "OTJCMF ϑΝΠϧͷ%- XJO@HFU@VSM QPXFSTIFMMͷ࣮ߦ SBX

    ΞʔΧΠϒԽ SBX ࣮ߦͨ͠γΣϧɾϩάΛ[JQԽ ϩάͷऩू TMVSQ ϑΝΠϧͷ४උ MPDBM@BDUJPO طଘࢿ࢈Λָͯ͠ɺసૹˍ࣮ߦ ϝϯόʔ͸ ͚ͩ͜͜։ൃ ࣄલ४උ ࣄޙ࡞ۀ
  12. 3FGFSFODF "OTJCMFT"SDIJUFDUVSF#FZPOE$POpHVSBUJPO.BOBHFNFOU  IUUQXXXBOTJCMFDPNCMPHBOTJCMFTBSDIJUFDUVSFCFZPOEDPOpHVSBUJPONBOBHFNFOU "OTJCMFJT$PNNJOH  IUUQXXXBOTJCMFDPNCMPHXJOEPXTJTDPNJOH *OTUBMMJOH8JOEPXTXJUIDPCCMFS  IUUQXXXMFUJGFSPSHDPCCMFSBOEXJOEPXT

    BOTJCMFMJOUɿจ๏نଇνΣοΫ  IUUQTHJUIVCDPNXJMMUIBNFTBOTJCMFMJOU TIDɿγΣϧίϯύΠϥ  IUUQTHJUIVCDPNFYJTU[TID /*$ͷ'JSFXBMM1SPpMFͷมߋ  IUUQXXXBUNBSLJUDPKQBJUBSUJDMFTOFXTIUNM 
  13. 8JOEPXTλʔήοτ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