Ansible 㨠Mackerel API ãçµã¿åããã¦ã1000å°è¦æ¨¡ã®ãµã¼ã群ã«å¯¾ãã¦åæã«ããã±ã¼ã¸ã®æ´æ°ããã®ä»ã®ãµã¼ããªãã¬ã¼ã·ã§ã³ã®ããã®æ¹æ³ãç´¹ä»ãã¾ãã ã¿ã¤ãã«ã« Mackerel ã¨ããã¾ãããããã»ã© Mackerel ã«ä¾åããªã話ã§ãã (Ansibleã¨Dockerã«ãã1000å°åæSSHãªãã¬ã¼ã·ã§ã³ç°å¢ - ããããããã°ã«ç¶ç·¨ãæ¸ãã¦ãã¾ãã) èæ¯ ç¤¾å ã§ã¯ããµã¼ãæ§æ管çãã¼ã«ã¨ã㦠Chef ã使ç¨ãã¦ãã¾ãã Chef Server ã¯éç¨ã大å¤ãªã®ã§ä½¿ç¨ãã¦ããããknife-solo 㨠Mackerel APIãçµã¿åããã¦ãã¹ã㨠Chef role ã¨ã®ãããã³ã°ã« Mackerel ã®ãã¼ã«æ å ±ãç¨ãã¦ãã¾ãã ã¾ããMackerel ã® Ruby ã¯ã©ã¤ã¢ã³ããå©ç¨ã㦠recipe å 㧠API ãå©ãã¦ãMackerel ã
å bats 好ããªãã§ããããªã®ã§ Test-Kitchen ã§ãã£ã¡ããã¹ãæ¸ãã¾ãããªãã¨ãªããµãã£ã¨ããè¤åçãªè¦ä»¶ã¯ Serverspec ã§æ¸ãã¾ããã©ã¡ãã«ãããã¢ããªããç¡ãã¦ã¤ã³ãã©ãªã®ã§ãæ®æ®µã®25åãããã¯æ¸ãããã¨ããã§ãã ããã§ãã£ã±ãã®ã¬ã·ããæ¸ãã¦ãã¯ãã¯ããã¯ãä»ä¸ãã£ã¦ã git push ãã¦ããã®ãã¨ããããªããæ¹ã§å®éã®ç°å¢ãææç©ãã¤ããã¾ããããèªåã®å ´å docker ã®ã³ã³ãã㨠IAM 㨠Vagrant BOX ã«ãã¾ãã VPS ãèªåã®ãã¼ãã¦ã§ã¢ã«å±éãããã¨ãå ¨ãç¡ãã®ã§ãå®éã®è«çãã·ã³ã«ç´æ¥ Chef ãæµããã¨ãä»ã¯ãªãã®ã§ãã ãªã®ã§ãä½ãã®ã¯ä» packer ã gradle ã§åããã¦ä½ã£ã¦ã¾ãã ããã¾ã§ã¯ãããã§ããããããããã§ä¾ãã° Vagrant ã® Box ãã§ãããã£ãã¨ãã¦ãããããä¸åãã¬ã·ãä½ã£ã
éè·æã®å¼ç¶ãã®éã«ãchefã§èªååããã¦ããä½æ¥ã(chefã使ããªãã¦æ¸ãããã«)ãµã¼ãæ§ç¯æé æ¸ã¨ãã¦ããã¥ã¡ã³ãåãã¦ããã¨è¨ãããâ¦
1å¹´ãããchefã使ã£ã¦ãµã¼ãæ§ç¯ããã¦ããã®ã§ãããæè¿ansibleã«ä¹ãæããã®ã§ç´¹ä»è¨äºãæ¸ãã¦ã¿ã¾ã 1. ãµã¼ãå´ã«ä½ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ããªã chefã¯ç®¡ç対象ãã¼ãã«chef-clientãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãããansibleã¯Python 2.4ãå ¥ã£ã¦ãã¦ãsshã§ãã°ã¤ã³ã§ããã°OKã§ãã chefãããã±ã¼ã¸ã,knife bootstrapã³ãã³ãçãããã®ã§å§ããããã§ãããä½ãããå¿ è¦ããªãansibleã®æ¹ãæ·å± ãä½ãã®ããªã¨æã£ã¦ã¾ãã ä¾ãã°sshã§ãã°ã¤ã³ã§ããã°ã以ä¸ã®ã³ãã³ããæã¦ã°10.0.10.1ï½10.0.10.3ãµã¼ãã®æ å ±ãã¨ã£ã¦ããã¾ã(ã«ã¼ãã«ãã¼ã¸ã§ã³,CPU,ã¡ã¢ãª,ãã£ã¹ã¯ãµã¤ãº,ãã£ã¹ããªãã¥ã¼ã·ã§ã³ç)ã ãã®æ©è½ã¯chefã§ä½¿ããã¦ããohaiç¸å½ã®ãã¨ããã¦ããã¾ãã echo 10.0.10.1 >
[root@srv001 chef-repo]# cd ~/chef-repo # ã¬ã·ããä½æããã [root@srv001 chef-repo]# knife cookbook create java -o site-cookbooks # ä»åã¯Downloadããããã±ã¼ã¸ããã¤ã³ã¹ãã¼ã«ãå®æ½ããã # Downloadããããã±ã¼ã¸ãã¬ã·ãã®æå®ã®ãã£ã¬ã¯ããªï¼filesï¼ã«ä¿åããã [root@srv001 chef-repo]# mv ~/jdk-7u51-linux-x64.rpm site-cookbooks/java/files/default/ # ãã¡ã¤ã«ã転éããããã«å®è¡ããã [root@srv001 chef-repo]# knife solo prepare root@localhost ããã±ã¼ã¸åãã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªãªã©ãå¤æ°å®ç¾©ããã [
ä»å¹´3æã«å ¥éChef Soloãæ¸ããæç¹ã§ã¯ãChef Solo 㯠Environments ã®æ©è½ããµãã¼ããã¦ãªãã£ããã解説ã¯çç¥ãã¾ããã ãã®å¾ãChef ã¯ãã¼ã¸ã§ã³ 11.6.0 (ç¾å¨ã¯ 11.8.2) 㧠Chef Solo ã§ã® Environments ããµãã¼ãããå ¥éChef Solo ã§æ¨è¦ãã¦ãã knife-solo ã 10ææ«ã«ãªãªã¼ã¹ããã 0.4.0 ãã Environments ããµãã¼ããã¾ãããã¨ããããã§ãç¾ç¶ Chef 㨠knife-solo ãææ°çã§ããã° Environments ãå©ç¨ãããã¨ãã§ãã¾ãã ãã¾ãã¾ä»æãã¤ãã¦ããä»äºã§ Environments ã®ãã¨ã調ã¹ãã®ã§åå¿é²çã«è¨ãã¦ããã¾ãã Environments ã¨ã¯ Chef ã® Environments ã¯ãä¾ãã° development ã pr
é¡ä¼¼ã®ã½ããã¦ã§ã¢ã¨ãã¦ãPuppet ã Ansible ã¨ãã£ããã®ãããã¾ãããããã£ãã¤ã³ãã©èªååã¾ããã®ã½ããã¦ã§ã¢ã«ã¤ãã¦ã¯ãããã®å®®ä¸ããã® ã¤ã³ãã©ç³»æè¡ã®æµã ãåèã«ãªãã¾ãã Chef in ã°ãªã¼ ãã¦ãã°ãªã¼ã§ã®Chefã¾ããã®æ§æããç´¹ä»ãã¾ããä¸å³ãå ¨ä½ã®æ§æã§ãã éçºç°å¢ éçºã¯åå人ã®ãã·ã³ä¸ã§ä»®æ³ãã·ã³ãç«ã¡ä¸ãã¦è¡ãªã£ã¦ãã¾ããã¯ãã¯ããã¯ã®éçºã§ã¯ãã¯ãã¯ããã¯ãéçºãã人ã serverspec ã§ãã¹ããæ¸ãããã«ãã¦ãã¦ãæ§ç¯å¾ã®ãµã¼ããæå¾ éãåããã¨ããã¹ããã¦ãã¾ããä¸ã¤ã®ã¯ãã¯ããã¯ã§ãè¨å®å¤ãªã©ã®æ¡ä»¶ã«ãã£ã¦åä½ãå¤ãã£ã¦ãããããtest-kitchen ãç¨ãã¦è¤æ°ã®æ¡ä»¶ï¼ã©ã³ãªã¹ãããã¼ãã®ã¢ããªãã¥ã¼ãï¼ä»¥ä¸ããã¢ããªãã¥ã¼ããï¼ãªã©ã®çµã¿åããï¼ã§ãã¹ããè¡ã£ã¦ãã¾ãã ã¾ããä¸é¨ä»®æ³ãã·ã³ã使ãå¿ è¦ããªããã¹ãï¼att
Engine Yardãå«ããã¾ãã¾ãªå ´é¢ã§å©ç¨ãåºãã£ãChefã§ããããã®åä½åçãã¢ã¼ããã¯ãã£ã«ã¤ãã¦ãåããªãæ¹ããããã¨ã«æ°ãä»ãã¾ãããç´°ããªã¢ã¼ããã¯ãã£ãç解ããªãã¦ã使ããã¨ãã§ããã¨ããChefã®é·æã示ãã¦ããã¨ãããã¾ãããç´°ããªæåãå¶å¾¡ããéã«ã¯ãã¯ãåä½åçãªã©ã®ç¥èãããã¨å½¹ç«ã¡ã¾ãã ä»åã¯è¡¨é¡ã®ã¨ããã¬ã·ããå®è¡ãããéã®ãµã¤ã¯ã«ã«ã¤ãã¦ãã¾ãç¥ããã¦ããªãé¨åãç´¹ä»ãã¾ãã Chefã®å®è¡ãµã¤ã¯ã«ã¨ãªã½ã¼ã¹ã³ã¬ã¯ã·ã§ã³ Chef(Chef ClientãChef Solo)ãå®è¡ãããéã«ã¯ç´ã¡ã«ãµã¼ãã®è¨å®ãå§ã¾ãããã§ã¯ãªãããã¾ãã¾ãªã¹ãããæ¯ã«å¦çãå®è¡ããã¾ãã大ã¾ãã«ã¯ä¸è¨ã®ãããªã¹ãããã«ãªãã¾ãã Chef Serverã¨ã®éä¿¡ãèªè¨¼å¦ç Chef Serverããã®ã¯ãã¯ããã¯ããã¼ã¿ã®åå¾ ã¯ãã¯ããã¯ã®ã³ã³ãã¤ã« ãã¼ãã®è¨å®
Jenkins ããããã¨æ¯ãããã¨åæ¥ããã¾ããã£ãã®ã§åå¿é²ãæ®ãã¦ããã ããããã£ãã®ã¯ Chef ã§æ§ç¯ãããµã¼ãã¼ã Jenkins 㧠CI ãããã¨ãããã®ããã®ã¨ããµã¼ãã¼ã¯ãã¹ããçµãã度ã«ç ´æ£ãã¦ããã¹ãéå§æã«å度çã£æ°ãªç¶æ ããç«ã¡ä¸ãããã(ãããããµã¼ãã¼ãå£ãã¦ä½ã£ã¦ã¨ãããã¹ãã¯ãªãã¨ããååã§å¼ã°ããã®ã ãã?) ä»®æ³ãµã¼ãã¼ãç ´æ£/ä½æãããã°ã©ããã«ã«ããã®ã¯ãã¡ãã Vagrant ãããã¸ã§ãã³ã°ã¯ Chef Chef ã®ç°å¢ãæ´ããã®ã« knife-solo 0.3.0.pre3 ãã¹ã㯠serverspec ã³ã¼ã㯠Github ã«ä¸ãã (https://github.com/naoya/jenkins-vagrant-test) CI 㯠Jenkins ã¨ããæ§æã«ãªã£ã¦ãããã²ã¨ã¾ã Jenkins ã Vagrant ã¯ãã¼ã«ã«
IBMãDevOpsãå®ç¾ããçµ±åãã¼ã«ãSmarterCloud Continuous Deliveryãçºè¡¨ãJenkinsãChefãjUnitãªã©å«ã¿ããã«ãããã¹ãããããã¤ãã¢ãã¿ãªã³ã°ãä¸æ°é貫㫠IBMã¯ãçµ±åããããã¼ã«ã§ã·ã¹ãã ã®éçºãããã¹ãããããã¤ãã¢ãã¿ãªã³ã°ã¾ã§ãè¡ããã¨ã§ãéçºãã¼ã ã¨éç¨ãã¼ã ãåãéã¦ãªãå調ã§ãããããããDevOpsãå®ç¾ããçµ±åãã¼ã«ãSmarterCloud Continuous Deliveryããçºè¡¨ãã¾ããã DevOpsã¨ã¯å ·ä½çãªææ³ã®ååã§ã¯ãªããéçºï¼Devï¼ã¨éç¨ï¼Opsï¼ãååãåãæ¹åæ§ã®ãã¨ãæãã¾ãããã®ããã§DevOpsãå®ç¾ããæ¹æ³ã¨ãã¦ä¸è¬çã«ããç¨ãããã¦ããã®ã¯ãã¢ã¸ã£ã¤ã«éçºã®èãæ¹ãéç¨ã«ã¾ã§åºããContinuous Integrationï¼ç¶ç¶ççµ±åï¼ãContinuous Deliver
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}