serverspec
ãã£ã¦ãã㨠ã¡ã¢ Jenkins ãåããç°å¢ Docker ã¤ã¡ã¼ã¸ itamae ã¬ã·ã Serverspec ãã¹ã Jenkins ã®æºå ãã©ã°ã¤ã³ Docker å¨ã ã¸ã§ã infra-itamae ã®è¨å® infra-serverspec ã®è¨å® åãã¦ãå³ Build Pipeline ãã° ä»¥ä¸ ãã£ã¦ãã㨠ä»æ´ãããããªâ¦
tl;dr awspec ã¨ã¯ Rspec åºç¤ç¥è ãã«ãªã¯ã¨ã¹ããã¦å¦ã¶ awspec ãã¹ãããã AWS ãªã½ã¼ã¹ ãã¹ã toolbox Stub Spec Type Helper /lib/awspec/helper/finder.rb lib/awspec/helper/finder/cloudwatch_logs.rb ã¡ãã£ã¨ããã㣠lib/awspec/matcher/haveâ¦
ä»å¹´ã itamae ã§ã¦ã¼ã¶ã¼ãè¤æ°ã®ã°ã«ã¼ãã«æå±ãããã¡ã¢ 親æ¹ã¨è¦ç¿ã å ä¸ã®æºå itamae ã®æºå Serverspec ã®æºå ã¨ãããã¨ã§ã以ä¸ã®ãããªãã£ã¬ã¯ããªæ§æã«ãã¦ãã ã¨ãããã¨ã§ããã¹ã¯ã¼ã㯠SHA512 ã§ããã·ã¥ sandbox.json ã«ã¦ã¼ã¶ã¼ãå®â¦
tl;dr ãã¼ãºããããã©ãã解ããªããã©...Jenkins ã触ã£ã¦ã¿ããã¦è©¦ãã¦ã¿ããJenkins ã® Amazon ECR ãã©ã°ã¤ã³ã¨ã®åºä¼ãã«èº«éãããã åè http://serverspec.org/ http://infrataster.net/ https://blog.mikesir87.io/2016/04/pushing-to-ecr-usinâ¦
tl;dr Windows Server ã® EC2 AMI ãä½ããã㦠Packer ãä¹ ãæ¯ãã«è§¦ã£ã¦ãããããã³ãã¬ã¼ããä¿®æ£ãã¦ãã«ããã¦ææç©ï¼AMIï¼ãèµ·åãã¦ç¢ºèªããã¨ããç¹°ãè¿ããåºæ¥ãã ãç°¡ç´ åããã㦠Rakefile ã«è½ã¨ãè¾¼ãã§ã¿ããï¼ä»¥åã«ä½ã£ã¦ãããã®ãæ´æ°â¦
tl;dr Windows Server 㧠OS èµ·åæã«ã¨ããã¹ã¯ãªãããèµ·åããããã¨æã£ã¦ã調ã¹ãããæãã¦é ããããããã¨ãã¡ã¢ãããã¦ããããã Ansible ã Serverspec ã§ç®¡çãããã¨ãåæã¨ãã¦æé©ãªæ¹æ³ãæ¤è¨ãã¦ã¿ãããï¼è©¦ããç°å¢ã¯ Windows Server 2â¦
tl;dr Windows ä¸ã§èµ·åãã¦ããããã»ã¹ã Serverspec ã§ãã¹ãããéã«èª¿ã¹ãã®ã§èªåã¡ã¢ã åè github.com serverspec.org github.com ã¡ã¢ ããããã£ãã㨠対象㮠Windows ãã¹ãä¸ã§èªåã§ä½ã£ã Python ã¹ã¯ãªãããå¼æ°ãå«ãã¦æ£å¸¸ã«åãã¦ããâ¦
tl;dr å½ç¶ãååã®ç¶ãã¨ãããã¨ã§ã·ãªã¼ãºåã ä»åã¯ä»¥ä¸ã®ç°å¢ã§å¼ãç¶ãé²ããã ELB ã追å ãELB ã®ããã¯ã¨ã³ãã« EC2 ã 2 å°ã¨ããæ§æãï¼AWS ç°å¢ã®æ§ç¯ã«ã¯ Terraform ãå©ç¨ããããå©ç¨æ¹æ³çã«ã¤ãã¦ã¯å²æï¼ åè http://docs.ansible.com/â¦
Serverspec ã«å°ããªæ©è½è¿½å ã®ãã«ãªã¯ã¨ã¹ããéã£ãããã¼ã¸ãã¦é ãã¦ã¨ã¦ãå¬ããã£ãã®ã§ãèªåãªãã«æ©è½è¿½å ã®ãã¤ã³ãçãæ´çãããã¨ãã¡ã¢ããå 容ã«èª¤ãçããã°é©å®ã¢ãããã¼ããã¦ããã ãã«ãªã¯ã¨ã¹ã github.com 以åã«ãã«ãªã¯ã¨ã¹ããâ¦
ãã®è¨äºã¯ã·ã§ãã«ã¬ã§æ¸ããè¨äºã®ä¸ã§æ¤è¨¼ããå 容ãåæ§æãã¦ãéãè´ãã¾ãã tl;dr inokara.hateblo.jp ã®ä¸ã§ ECS ã®ã³ã³ããã¤ã³ã¹ã¿ã³ã¹ã«ä»ãã IAM role ããªã·ã¼ã® JSON ã以ä¸ã®ããã« terraform å ã§ç´æ¥è¨è¼ãã¦ããã # # Create IAM role â¦
tl;dr Serverspec ã§ãªã¢ã¼ããã¹ãããã¹ãããéã® ssh 㯠${HOME}/.ssh/config ãå©ç¨ããããã ãã${HOME}/.ssh/config 以å¤ã®ãã¡ã¤ã«ãå©ç¨åºæ¥ãªããã®ãæ°ã«ãªã£ã¦ç ããªãã£ãã®ã§èª¿ã¹ãã¡ã¢ãï¼åã«èª¿ã¹æ¹ãæªãã£ãã®ãããããªããã©ï¼ memo ãâ¦
ãåè丸ã®ç¬ã Advent calendar 2015ãã®äºååæ¥ç®ã®è¨äºã§ãã tl;dr test-kitchen 㧠Cookbook ã Playbook ãé©ç¨ããä»®æ³ãã·ã³ã¨ã㦠LXC ãå©ç¨åºæ¥ã kitchen-lxc ãæå ã®ç°å¢ã§åä½ããªããªã£ã¦ããã®ã§ãLXD ãªã...ã¨æã£ã¦ãã¾ã㯠LXD ã試ãâ¦
ãåè丸ã®ç¬ã Advent calendar 2015ãã®äºåæ¥ç®ã®è¨äºã§ãã tl;dr 以åã« Ansible ã® Playbook ã test-kitchen 㨠Serverspec ã使ã£ã¦ãã¹ããããã¨ããã£ãã inokara.hateblo.jp ä»åã復ç¿ããã¤ããã§åããã¨ãããã¨æã£ããã©ããã£ãããªã®ã§â¦
ãããªãã README ç´°ããæé çã¯ä»¥ä¸ã® README ã«ã¦ã inokappa/oreno-itabagithub.com æ´ã«ããã£ãç¹çã«ã¤ãã¦ã¯ä»¥ä¸ã«ã¦ã åºåè¿ éï¼wercker 㧠CI ããï¼ wercker 㧠CI ãã æè¿ããªãã§ã wercker 㧠CI ããã®ããã¤ãã¼ã ãªã®ã§ããã¡ããåèâ¦
ã©ãããã£ã±ã§ãããã£ã¨ããã¾ã§è¾¿ãçãã...ååã®ç¶ãã ãµã³ãã« ãã©ãã©æç« ããããµã³ãã«ãããããã sample-prj-20150305 ãµã³ãã«ã®ä½¿ãæ¹ã¯ README.md ã...ï¼èª°ãè±èªæãã¦...ï¼ã 以ä¸ããµã³ãã«ããã¼ã¹ã«è¨è¼ã Serverspec ã§ãã¹ãããâ¦
ã»ããµã serverspec ã¡ã¢ Serverspec ã¡ã¢ ãµã¼ãã¼ã«ãã°ã¤ã³ãã¦ããã¯ã¢ããã®çµæã¨ã確èªããã®ããã£ããããªã£ãã®ã§ããã¨ãã¹ãããçã«ç£è¦ã¨ãã«ã使ã£ã¦ãã RabbitMQ ã¡ã¢ RabbitMQ ã®ã¯ã©ã¹ã¿æ§æãä½æãã è¿ãã«è©³ããæ¹ãå± ãã®ã¯ããªãâ¦
ç¥ã£ããã¶ã infrataster ã試ãã¦ã¿ãã Infrataster ã試ã æ¬å½ã«ã試ãã¦ã¿ããã¬ãã«ã§æ縮ã ããå¾æ¥ã¯ curl ã¨ããé§ä½¿ãã¦ãã£ã¦ãããã¨ãæ±ç¨åãæãï¼ã¨æã£ã¦ããï¼è¨æ³ï¼RSpecï¼ã§æ¸ããã¦ããã®ã§è²ã ã¨åºãããããªäºæã
æè¿ã®ãã¥ã¦ã£ã¼ã Chefæ´»ç¨ã¬ã¤ã ã®æ¸è© ãChefæ´»ç¨ã¬ã¤ã ã³ã¼ãã§ã¯ãããæ§æ管çãã®æ¸è©ãæ¸ãããæ¹ã®ãã¥ã¦ã£ã¼ãã ã¯ã¦ãªããã°ã«æ稿ãã¾ãã Chefã®è¾å ¸ãã¨ããChefæ´»ç¨ã¬ã¤ã ã³ã¼ãã§ã¯ãããæ§æ管çã - ããã°ã©ãã«ãªããã http://t.câ¦
æè¿ã®ãã¥ã¦ã£ã¼ã èªåã®ãã¤ã¼ãããæ°ã«å ¥ãã®ãã¤ã¼ãã転è¼ã sensu é¢é£ sensu é¢é£ã§æ¯éåèã«ããããã¥ã¦ã£ã¼ãäºä»¶ã ããããã¯é ¼ãã¼ã¼ã¼ï¼ï¼ï¼ / âSensuå°å ¥ã¨åæè¨å®ã«ã¤ã㦠- ãããªãã¤ã³ã¿ã¼ãããâ http://t.co/vys5ODpK9Vâ kenjiskywâ¦
æè¿ã®ãã¥ã¦ã£ã¼ã Docker ãã°ã«ããå±ãã¾ããï¼ ã¯ãã°ãæµ·ãè¶ãã¦å±ãã¾ããã pic.twitter.com/oM7xvVxQOwâ Yohei Kawaharaï¼ãã£ã±ï¼ (@inokara) 2014, 4æ 30 ãã£ããæ¥æ¬è¶é£²ãã§ã¾ãã ã¬ã³ã¿ã«ã§åãã PC ã® OS ã 32bit çã ã£ãã¨ããç½ åºâ¦
ã¯ããã« ãã¡å ã§ç³ãè¾¼ãã§ãããè£æ¬ ããç¹°ãä¸ãã£ã¦ãã¦å°èºãããªããåå ãã ä¼å ´ãæä¾ãã¦é ãã DeNA ããï¼ç´ æµãªå¤æ¯ã§ããï¼ãããã¨ããããã¾ããï¼ ç»å£ãããçããããããã¨ããããã¾ããï¼ ä»¥ä¸ãç®æ¡æ¸ã åèãªã³ã¯ 2014/03/25 Immuâ¦
ã¯ããã« å¹¾ã¤ãã®ãµã¼ãã¼ã Nagios ã§ç£è¦ãã¦ããããç£è¦è¨å®ã¯æåã¨ãªã£ã¦ããã®ã§ããããèªååã§ãããå¬ãããªã¨æ å ±åéãã¦ããã nagira ãªã Nagios ã API ã§æä½åºæ¥ãã©ããã¼ããããããã®ã§è©¦ãã¦ã¿ããã¡ãªã¿ã«ããµã¼ãã¼æ§ç¯å¾ã¯ä»¥ä¸â¦
ã¯ããã« test-kitchen ãèµ°ãããå¾ã§ serverspec ã使ã£ã¦ãã¹ãã試ãã¦ããè¨äºãè¦ã¤ããã®ã§è©¦ã æµ·å¤ã§ã serverspec ãåºãåãå ¥ãããã¦ãã¦æ¬å½ã«ç´ æ´ãããã¨æã test-kitchen ã®ãã©ã¤ãã¨ã㦠kitchen-docker ã使ã åè Shell Provisioner â¦
ã¯ããã« ååãåã åã®è¨äºã§ capistrano 㨠Chef-Solo ãçµã¿åãããã®ããã£ããã« AWS SDK for Ruby ã使ã£ã¦ EC2 ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾å¿ããããã¼ã«çãªç©ãä½ã£ãã serverspec ãå人çã«æ¡å¼µãããããªããè²ã ã¨å¦ã¶ãã¨ãå¤ãã£ãã®ã§ããã¼ã«ã§åºâ¦
ã¯ããã« åå 㯠EC2 ä¸ã« capistrano 㨠Chef-solo ã使ã£ã¦ã¤ã³ã¹ã¿ã³ã¹ãã»ããã¢ãããã ã»ããã¢ããããã¤ã³ã¹ã¿ã³ã¹ã serverspec ã使ã£ã¦ cookbook ãæ£ããé©ç¨ããã¦ãããã確èªãã EC2 ã®å ´åã«ã¯åç㪠IP ã¢ãã¬ã¹ããã¹ãåãé©ç¨ãããâ¦
ã¯ããã« ååã«å¼ãç¶ã capistrano 㨠chef-solo ã§ã·ãªã¼ãºç¬¬äºå¼¾ ãã£ãããªã㧠EC2 ã¤ã³ã¹ã¿ã³ã¹ããã£ã¦ã¿ã ã»ããã¢ããå¾ã®ç¢ºèªã«ã¯ååã¨åæ§ã« serverspec ã使ã ã¨ããããã¡ã¢ ãããªæã㧠以ä¸ã®ãããªäºãåºæ¥ãããã«ããã ã¤ã³ã¹ã¿ã³ã¹â¦
ã¯ããã« knife-solo ã§ä¸å°ã®ãã¹ããã»ããã¢ãããããã¨ã¯åºæ¥ã¦ãåæã«è¤æ°ã®ãã¹ããã»ããã¢ããããã®ã¯ã¡ã¨é£ãã ã§ã capistrano 㨠chef-solo ã使ãã°åæã«è¤æ°ã®ãã¹ããã»ããã¢ãããããã¨ã¯åºæ¥ãã ã¨ãããã¨ã§ä»æ´ã ãã© capistrano â¦
Ruby ãã Excel ãæ±ãã¡ã¢ï¼2ï¼ï¼serverspec ã®ãã¹ãçµæã Excel ã«ã¾ã¨ããï¼
ã¯ããã« åã®è¨äºã®ç¶ã Ruby ãã Excel ãæ±ãã¢ã¸ã¥ã¼ã«ã®ãã¡ win32ole ã spreadsheet 以å¤ã« Axlsx ã¨ããã¢ã¸ã¥ã¼ã«ããã£ãã®ã§è©¦ã åè Axlsx ã§ãã¹ãæ¯æ´ randym/axlsx spec_helperã®ãããã Axlsx ã¨ã¯ ãã¡ãã®è¨äºãåã売ãã«ãªã£ã¦ãã¾ãâ¦
æ¦è¦ ãµã¼ãã¼æ§ç¯å¾ã«è¡ãªã£ã¦ããä½æ¥ãæ´çãã¦ãåºæ¥ãã ãèªååã¨ãªããã¹ãç¡ããç°å¢ãæ§ç¯åºæ¥ãªããèãã¦ã¿ã ã¾ãã¯æ´ç ãµã¼ãã¼æ§ç¯ç´å¾ã¨ãéç¨éå§å¾ã«ã¤ãã¦ã®ä½æ¥ãæ´çãã¦ã¿ããå°ããµã¼ãã¼ã®æ§ç¯ã«é¢ãã¦ã¯ chef ã ansible çã®ãã¼â¦
ãã£ã¦ã¿ããã㨠Jenkins 㧠serverspec ãããã¯ãããã¨ã¯åºæ¥ã¦ããã®ã§ãåããã¨ã Altria ã§ãã£ã¦ã¿ã å®éã«ãªã¢ã¼ããã¹ãããã¹ããã¦ã¿ã ããã㸠以ä¸ã®ãããªãããã¸ãããªã¬ã¼ã¯ Altria ãµã¼ãã¼å´ã«ããã Altria ãµã¼ãã¼ã®æºå Altria â¦