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

Start Infrastructure as Code with Ansible and ...

Mahito
June 16, 2015

Start Infrastructure as Code with Ansible and Serverspec

とある勉強会で使った、最近流行りのInfrastructure as CodeをAnsibleとServerspecを用いて簡単に解説した際の資料です。

Mahito

June 16, 2015
Tweet

More Decks by Mahito

Other Decks in Technology

Transcript

  1. ͩΕʁ ໊લ .BIJUP0(63" *% !.BIJUP ΍ͬͯΔ͜ͱɿ
  0QFO4UBDL ΍͖ͬͯͨ͜ͱ
 

    3VCZʢ3VCZձٞϘϥϯςΟΞελοϑʣ
  Ϋϥ΢υʢ*BB4 ,7. "84ʣ
  ෼ࢄॲཧج൫ʢ.POHP%# $BTTBOESB )#BTF )BEPPQʣ
  ࣗಈԽ $IFG "OTJCMF 'BCSJD 4FSWFSTQFD 7BHSBOU
  2. *OGSBTUSVDUVSFBT$PEF w ίʔυʹΑΔΠϯϑϥߏஙͷࣗಈԽ $MPVEPS7. *NBHF -BVODI 04 *OTUBMM 4ZTUFN$POpHVSBUJPO "QQMJDBUJPO4FSWJDF

    %FQMPZNFOU w ,JDLTUBSU w $PCCMFS w +VNQTUBSU w 0QFO23. w "84 w 9FO w ,7. w 7.XBSF w $IFG w 1VQQFU w $BQJTUSBOP w 'BCSJD w 'VOD 0SDIFTUSBUJPO $POpHVSBUJPO #PPUTUSBQQJOH 1SPWJTJPOJOH"DUJWJUZ ग़యIUUQFOPSFJMMZDPNWFMPDJUZNBSQVCMJDTDIFEVMFEFUBJM
  3. 1PXFSGVM w 0SDIFTUSBUJPOͱ$POpHVSBUJPOΛΧόʔ $MPVEPS7. *NBHF -BVODI 04 *OTUBMM 4ZTUFN$POpHVSBUJPO "QQMJDBUJPO4FSWJDF

    %FQMPZNFOU w ,JDLTUBSU w $PCCMFS w +VNQTUBSU w 0QFO23. w "84 w 9FO w ,7. w 7.XBSF w $IFG w 1VQQFU w $BQJTUSBOP w 'BCSJD w 'VOD 0SDIFTUSBUJPO $POpHVSBUJPO #PPUTUSBQQJOH 1SPWJTJPOJOH"DUJWJUZ "OTJCMF ग़యIUUQFOPSFJMMZDPNWFMPDJUZNBSQVCMJDTDIFEVMFEFUBJM
  4. "OTJCMFʹΑΔ ίʔυԽͷϝϦοτ w ैདྷͷιϑτ΢ΣΞͷ։ൃελΠϧ͕࢖͑Δ w όʔδϣϯ؅ཧ΍ϨϏϡʔ͕Ͱ͖Δ w ႈ౳ੑͷػೳΛ࢖͑͹୭͕Կ౓ಈ͔ͯ͠΋ಉ݁͡ՌʹͳΔ ㅟ ㅟ

    w ࡞ۀखॱॻʹΑΔਓҝϛε͕ى͖ͳ͍ w ৗʹಉ͡؀ڥ͕ߏங͞ΕΔ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ w $*ͰͷࣗಈςετσϓϩΠ͕Ͱ͖Δ
  5. "OTJCMFͷ࣮ߦ w BOTJCMFQMBZCPPLίϚϯυ w 1MBZCPPLΛ༻͍ͨ"OTJCMFͷ࣮ߦ BOTJCMFQMBZCPPLI
 6TBHFBOTJCMFQMBZCPPLQMBZCPPLZNM
 ʜ
 BOTJCMFQMBZCPPLJIPTUTQJOHZNM
 1-":<IPTU>

    
 ("5)&3*/('"$54 
 PL<IPTU>
 5"4,<1JOH> 
 PL<IPTU>
 1-":3&$"1 
 IPTUPLDIBOHFEVOSFBDIBCMFGBJMFE
  6. *OWFOUPSZ w */*ܗࣜͰϗετ৘ใΛهࡌ w ϗετͷάϧʔϓԽ΍਌ࢠؔ܎ͷهࡌ΋Մೳ w %ZOBNJD*OWFOUPSZͱ͍͏ಈతͳ*OWFOUPSZΛ࢖͏ํ๏΋͋Δ NBJMFYBNQMFDPN ! <XFCTFSWFST>

    GPPFYBNQMFDPN XXX<>FYBNQMFDPN ! <TFSWJDFTDIJMESFO> NBJMFYBNQMFDPN
 XFCTFSWFST ग़యɿIUUQEPDTBOTJCMFDPNJOUSP@JOWFOUPSZIUNM
  7. "OTJCMF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