Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
使ãå§ããã¾ã§ã¯ä½ã便å©ãªã®ãåãããªãã£ãä»®æ³ãã·ã³ãããããããVagrantã¨ãµã¼ããèªåè¨å®ããAnsibleãWindowsã§ä½¿ã£ã¦ã¿ã話ãä»ãä»®æ³ãã·ã³ã使ã£ã¦ã人ããä»ã¾ã§ä½åº¦ãOSãå ¥ãã¦ãæ¹ã¯å¤å便å©ã«ãªãã¾ããã VAGRANT ?? ããã½ã¬ï¼ VirtualBoxãªã©ã®ä»®æ³ãã·ã³(VM)ã便å©ã«æä½ããããæ©è½ã追å ãã¡ããä½ãçãªãã®ã§ãããã©ã°ã¤ã³ã§AWSã®ã¤ã³ã¹ã¿ã³ã¹ããããããããããã§ãããä»åã¯ä»®æ³ãã·ã³ã®è©±ãWindowsãMacãLinuxãªããã§é»ãç»é¢ãæä½ãã¦ä½¿ãã¾ãã Vagrant http://www.vagrantup.com/ Vagrantæ¥æ¬èªããã¥ã¡ã³ã http://lab.raqda.com/vagrant/ ä½ã便å©ãªã®ï¼ ã便å©ä¾¿å©ãã¿ãããªè©±ã¯è¦ã¦ãã¾ããããä½ã便å©ãªã®ããã¾ãã¡ãã³ã¨æ¥ã¦ãã¾ããã§ããã å¾æ¥éãã®
Ansibleã®ãã£ã¬ã¯ããªæ§æã決ããéããããã¯ã·ã§ã³ç°å¢ãã¹ãã¼ã¸ã³ã°ç°å¢ãéçºç°å¢ã¨ãã£ãç°å¢ãã¨ã«ç°ãªãè¨å®ãå¤æ´ããæ¹æ³ã§ãã£ããæ¥ããã®ãæãã¤ãããã©ããããã®ãã¨æ©ãã§ããã®ã§ãããä»æ¥è¦ã¤ããããã°è¨äºã§ãããã¹ãããªè§£æ¶ããã®ã§ã¡ã¢ã£ã¦ããã¾ãã çµè« ã¾ãçµè«ãããããã¯ã·ã§ã³ç°å¢ãã¹ãã¼ã¸ã³ã°ç°å¢ãéçºç°å¢ã¨ãã£ãç°å¢ãã¨ã«ç°ãªãè¨å®ããå ´åã¯ã以ä¸ã®ããã«å¯¾å¿ããã®ãè¯ãããã§ãã ãã£ã¬ã¯ããªæ§æã¯ãå ¬å¼ããã¥ã¡ã³ãã«å¾ãã Best Practices â Ansible Documentation ãããã¯ã·ã§ã³ãã¹ãã¼ã¸ã³ã°ãéçºãªã©ãã¹ãã¼ã¸ãã¨ã®å¤æ°åæ¿ã¯ä»¥ä¸ã®ããã°ãåèã«ã"group_vars"ãå©ç¨ãã¦è¡ãã ã¤ã³ãã³ããªãã¡ã¤ã«ã®ä¸ã«ã"[production:children]"ã®ãããªã°ã«ã¼ããã¹ã¦ãå±ããã°ã«ã¼ããä½ã£ã¦ãã¾ãããã®ã°
ä»åã¯Ansibleãæ¬æ ¼éç¨ããéã®ã¤ã¡ã¼ã¸ãæ´ãããã«Ansibleã®ãã¹ããã©ã¯ãã£ã¹ãåèã«å®éã«è©¦ãã¦ã¿ããã¨æãã¾ãã å®è·µã®ãé¡ã¯WordPressã¨ãã¾ããWordPressã®ã»ããã¢ãããéãã¦ãã¹ããã©ã¯ãã£ã¹ã®ã¤ã¡ã¼ã¸ãæ´ãã§ããã ããã°ã¨æãã¾ãã æºå ãã¼ã«ã«ãã·ã³ã«ä½æ¥ãã£ã¬ã¯ããªãä½ãããã®ä¸ã§Ansibleã®ãã¹ããã©ã¯ãã£ã¹ã«åã£ããã¬ã¤ããã¯ãä½ã£ã¦ããã¾ããMacãããã¯Linuxãªã©ã§è©¦ãã¦ã¿ã¦ãã ããã $ mkdir try-ansible-best-practices $ cd try-ansible-best-practices ã¦ã§ããµã¼ãã¨DBãµã¼ããå¥åã«ç«ã¦ã¾ãã®ã§ããããã®ã¯ã©ã¦ãã§ãµã¼ããäºå°ç«ã¦ã¦ããã¾ããOSã¯CentOS 6.6ãå©ç¨ãã¾ãããµã¼ãä½ææã«rootã§ã®sshã®æ¥ç¶ã«å¿ è¦ã¨ãªãå ¬ééµãå¿ããã«ç»é²ãã¦ãã ãã
å¾¹åºæ¯è¼ï¼HA Kubernetes Clusterã«ãããControl Plane LoadBalancerã®é¸æè¢
ã¯ããã« æè¿ã§ã¯Infrastracutre as codeãImmutable Infrastructreã®èãæ¹ã«ããã¤ã³ãã©ç®¡çã浸éãã¦ãã¾ããã ChefãAnsiblãæè¿ã§ã¯Itamaeã¨ãã£ããããã¸ã§ãã³ã°ãã¼ã«ã®é¸æè¢ãå¢ãã¦ãã¨ã¯ãããæªã ã«æ·å± ã®é«ããæãå°å ¥ã«è¸ã¿åãã¦ããªãæ¹ãå¤ãã®ã§ã¯ãªãã§ããããã ããã§ä»åã¯ãæ軽ã«å§ããããã¤ã³ãã©æ§ç¯ãã¼ã«ã¨ãã¦confdã«ã¤ãã¦ã¾ã¨ãã¦ã¿ã¾ããã confdã¨ã¯ goã§æ¸ãããè¨å®ãã¡ã¤ã«ç®¡çãã¼ã«ã§ãã kelseyhightower/confd 主è¦æ©è½ã¯è¨å®ãã¡ã¤ã«ã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãªã®ã§ãããè¨å®ãã¡ã¤ã«ã®çæåå¾ã§å¤é¨ã³ãã³ããå®è¡ãããã¨ãå¯è½ã§ãã ãã®ãã è¨å®åæ ã®ããã®åå¦ç è¨å®ãã¡ã¤ã«ã®èªåçæ è¨å®åæ ã®ããããã»ã¹åèµ·å ã¨ãã£ãä¸é£ã®ä½æ¥ãæ ããããã¨ãã§ãã¾ãã ã¾ããæ§æãã·
Ansible ã³ã¼ãã£ã³ã°è¦ç´ (ã®ä¾)¶ edX ãgithubä¸ã§Ansibleã®ã³ã¼ãã£ã³ã°è¦ç´ãå ¬éãã¦ãã¾ãã https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions ãã®ãªãã¸ããªã¯ GNU AGPLv3ã§ãã翻訳ã®å ´åã§ããããã大ä¸å¤«ã ã¨æãã¾ãã®ã§ãããã§ç¿»è¨³ãã¦å ¬éãã¦ã¿ã¾ãã ä¸è¬Â¶ YAMLãã¡ã¤ã« ãã¹ã¦ã®yamlãã¡ã¤ã«ã¯2ã¹ãã¼ã¹ã®ã¤ã³ãã³ãã§ã .yml ãæ¡å¼µåã« ä»ãã¦ãã ããã å¤æ° jinjaå¤æ°ã®å½¢å¼ã使ã£ã¦ãã ããã $var ã§ã¯ãªã {{ var }} ã§ãã jinjaã®å¤æ°åã®åå¾ã«ç©ºç½ãå ¥ãã¦ãã ããã {{var}} ã§ã¯ãªã {{ var }} ã§ãã ç°å¢ç¬èªã§ä¸æ¸ããããå¿ è¦ãããå¤æ°åã¯å ¨é¨å¤§æåã¨ãã¦ãã ããã ãã¼ã«å ã§å®çµããå¤æ°åã¯å ¨é¨
2014å¹´08æ04æ¥11:11 ã¤ã³ãã© Ansibleã使ã£ã¦èª°ã§ãç°¡åå®å ¨ã«ãµã¼ãæ§ç¯ã§ããä»çµã¿ãä½ã Ansible ã£ã¦ä½ãªã®ï¼ ãµã¼ãã«å¯¾ãã¦ããã«ã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ãè¨å®çã®ç°å¢æ§ç¯ãè¡ããã¨ããããã¸ã§ãã³ã°ã¨è¨ãã¾ããããã®ä½æ¥ãèªååãããããã®ãã¼ã«ã§ãããããã¸ã§ãã³ã°ãæåã§è¡ãã¨ãæéãæããããã©ããã¦ããã¹ãèµ·ãããã¾ãã ãã®ç¹ãAnsible ã®ãããªãã¼ã«ã使ãã°ãã³ãã³ãä¸çºã§ãããã¸ã§ãã³ã°ãèµ°ããããã«åªçæ§ï¼ä½åº¦å®è¡ãã¦ãåãçµæã«ãªãï¼ã確ä¿ãããããã誰ã§ãç°¡åå®å ¨ã«ãµã¼ãæ§ç¯ãåºæ¥ãã®ã§ãã åæ§ã®ãã¨ãè¡ããã¼ã«ã¨ãã¦ãChef ã Puppet ãããã¾ãããAnsible ã¯ãããã®ä¸ã§ãã·ã³ãã«ãªãã¨ãç¹å¾´ã§ããChef ã¯ä»¥å使ã£ã¦ã¿ããã¨æã触ã£ã¦ã¿ãã®ã§ãããè¦ãããã¨ãå¤ãã£ãããã¦æ«æãã¦ãã¾ã£ãããAnsible
Chef使ããã¨ãã¦ããã©Chefããããã¤ããï¼ å ·ä½çã«ã¯ä»¥ä¸ãã¤ããï¼ ç¬èªæ¦å¿µå¤ã chefã®ã¯ã©ã¤ã¢ã³ãã対象ãã¹ãã«å ¥ããªããã°ãªããªã knifeã¨ãè¦ããªãã¨ãããªãå¤é¨ãã¼ã«ããã æåãããã£ã¬ã¯ããªæ§æããããã (rails newããã¨ãã®ãã®ããã¡ï¼ å ¬å¼ããã¥ã¡ã³ãã®éãå¤ããã¤ãããã«ãã 以åã«miyagawaããã®podcast ãèãã¦ããnaoyaãããAnsibleã£ã¦ããã·ã³ãã«ãªããã´ã£ã·ã§ãã³ã°ãã¼ã«ãããã£ã¦ãã話ãããã¦ããã®ã§ï¼ä½¿ã£ã¦ã¿ãï¼ AnsibleWorks | Radically simple IT orchestration Ansible 触ã£ã¦ã¦æããã¤ã¡ã¼ã¸ã¯ï¼ChefãRailsã§AnsibleãSinatraãªæãï¼ ãã£ã¬ã¯ããªæ§æããªã (ä¸å¿å¤§è¦æ¨¡éç¨ãèãããã£ã¬ã¯ããªæ§æã®ãã¹ããã©ã¯ãã£ã¹ Best P
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}