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

Infrastructure as Code

Infrastructure as Code

Avatar for Naoya Ito

Naoya Ito

July 07, 2016
Tweet

More Decks by Naoya Ito

Other Decks in Technology

Transcript

  1. ςετ΋ॻ͚Δ 4FSWFSTQFD  require 'spec_helper' describe package('httpd'), :if => os[:family]

    == 'redhat' do it { should be_installed } end describe service('httpd'), :if => os[:family] == 'redhat' do it { should be_enabled } it { should be_running } end describe port(80) do it { should be_listening } end
  2. 'PXMFSઌੜͷϓϥΫςΟε •  6TF%FpOJUJPO'JMFT •  4FMGEPDVNFOUFETZTUFNTBOEQSPDFTTFT •  7FSTJPOBMMUIFUIJOHT •  $POUJOVPVTMZUFTUTZTUFNTBOEQSPDFTTFT • 

    4NBMMDIBOHFTSBUIFSUIBOCBUDIFT •  ,FFQTFSWJDFTBWBJMBCMFDPOUJOVPVTMZ h#p://mar;nfowler.com/bliki/InfrastructureAsCode.html
  3. Ͳ͏ͨ͠ΒՄೳʹ ŋŋŋ3FQSPEVDJCMF#VJME •  3FQSPEVDJCMF#VJME Ϗϧυͷ࠶ݱՄೳੑ ॏཁ –  ίʔυԽɺࣗಈԽŋŋŋΑΓ΋3FQSPEVDJCMF͔Ͳ͏͔ –  खॱͰ͸ͳ͋͘Δ΂͖ঢ়ଶΛهड़

    એݴత ɻ࣮ߦ݁Ռ͸ႈ౳ •  3FQSPEVDJCMFͳΒϏϧυͯ͠ςετͯ͠σϓϩΠ͕Մೳʹ •  ͦΕΛୡ੒͢ΔͨΊͷํ๏͕$POpHVSBUJPOBT$PEFͰ͋Γɺએݴతͳ $POpHVSBUJPONBOBHFNFOUUPPM –  %PDLFSͦͷ΄͔΋ಉ͡ߟ͑ํ –  ΞϓϦέʔγϣϯ։ൃͷੈքͰ͸5IF5XFMFWF'BDUPS"QQʹ͋ΔϓϥΫςΟε
  4. 3FQSPEVDJCMF#VJME •  $POpHVSBUJPO.BOBHFNFOU5PPM 1VQQFU $IFG "OTJCMF  –  αʔόʔߏ੒Λ3FQSPEVDJCMFʹ • 

    SPBEXBMLFS –  %/4ઃఆΛ3FQSPEVDJCMFʹ •  5FSSBGPSN –  "84.BOBHFNFOU$POTPMF্ͰͷϙνϙνۀΛ3FQSPEVDJCMFʹ •  %PDLFS$PNQPTF –  %PDLFSίϯςφؒͷґଘؔ܎Λ3FQSPEVDJCMFʹ
  5. ʮΠϯϑϥͷϞσϦϯάʯٞ࿦͕੝ΜʹͳΔ͔  •  ŋŋŋͳΒͳͦ͏ •  ࣮ફதͷΤϯδχΞͷظ଴஋͸ͦ͜ʹͳͦ͞͏ •  Ή͠ΖίϯςφͦͷଞͰίʔυͰ؅ཧ͢΂͖ର৅ΛͳΔ΂͘ݮΒ͢ର৅ Λখ͘͢͞Δ͜ͱͰෛ࠴ԽΛආ͚Δ܏޲ 

    –  ʮ%PDLFSpMFͰ͍͍΍ʯΈ͍ͨͳػӡ –  ڊେͳ$IFGDPPLCPPLϨϙδτϦͱ͔୭΋ݟͨ͘ͳͦ͞͏ –  *OGSBTUSVDUVSFBT$PEFͷϓϥΫςΟεͷ࣮ફྖҬ͸૿΍ͭͭ͠ɺίʔυԽର৅͸෼ׂ౷ ࣏