https://ljstudy.connpass.com/event/71037/ ã§ã®LTè³æã§ãã
ä¸ã®ä¸ããDockerã®æ代ãªã®ããããã¾ããããããæ¡ä»¶ã§ä½¿ããµã¼ãã¼ã®ãããã¸ã§ãã³ã°ãã¼ã«ã¨ãã¦Ansibleã使ã£ã¦ã¿ã¾ããã ä»ã¾ã§ã¯Chefã使ã£ã¦ãã¾ãããChefã¯Rubyã§ã¬ãªã¬ãªæ¸ããã®ã§ä½ã§ãã§ãã¾ãããã¡ã³ããæ§æ管çæ å ±ãä¼ããã®ã«é£ãããããªã¨æã¾ããããã§ã·ã³ãã«ã¨ããåã®Ansibleã使ã£ã¦ãRuby on Railsã®åããµã¼ãã¼ãæ§ç¯ããAnsibleãæ¸ãã¦ã¿ã¾ããã æ¬å®¶ã®ããã¥ã¡ã³ã ãã¡ããã¨ãã¦ã¾ããããããä¸ã«ã¯ããããã®æ å ±ãããã®ã§æ¥½ã«ä½ãã¾ãããããã§ãä½ç¹ãè¦å´ããã®ã§ãããä¸å¿ã«æ¸ãã¾ããPlaybooksã¯ä»¥ä¸ã®ããã«roleã«åãã¦æ¸ãã¾ããã âââ roles â  âââ apps â  â  âââ files â  â  â  âââ logrotate â  â  â  âââ unicorn â
渡辺ã§ãã 2015å¹´11æã«Role ã使ã£ãAnsibleã®ãã¥ã¼ããªã¢ã«æ¸ãã¾ããã ãããã1年以ä¸çµã¡ããã¦ãã¦ãæºã¾ã£ã¦ããã®ã§ãæ°ããæ¸ãç´ãã¦ã¿ã¾ãã ã»ããã¢ãã Ansibleã®ã¤ã³ã¹ãã¼ã«ã¨ãEC2ã¤ã³ã¹ã¿ã³ã¹ã2å°èµ·åãã¦ããã¾ãã ssh_configã®ä½æ ã¯ããã«ãã¹ãæ å ±ãssh_configã«å®ç¾©ãã¾ãã ansible.cnfã§ssh_configãè¨å®ããã§ãæ¸ããããã«SSHã§æ¥ç¶ããæã®ã¦ã¼ã¶åãç§å¯éµã®å ´æã¯ssh_configãä½æãã¦ã¾ã¨ãã¦ããã¨ä¾¿å©ã§ãã ããã¸ã§ã¯ããã£ã¬ã¯ããªã«ssh_configãä½æãã¾ãããã Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null Host test1a HostName xx.xxx.xx.xxx User ec2-user I
渡辺ã§ãã æè¿ãAnsibleã«é¢ããæ¸ç±ãå¢ãã¦ãã¦ãã¾ããã ã¨ã¯ãããã»ã¨ãã©ã¯å ¥éçãªä½ç½®ä»ãã§ãããã¯ããã§éè¦ããããã§ãããå®è·µã¬ãã«ã§ä½¿ãããªããã¦ãã¦ã¯å°ãªãã¨ããã®ãç¾å®ãã¨æãã¾ãã ãã®è¾ºããã¾ã 試è¡é¯èª¤ãç¹°ãè¿ãã¦ããã¨ãããå¤ãã§ãããã ããã§ããã¦ãã¦ãã¬ã³ã¬ã³æµåºãããã¯ã©ã¹ã¡ã½ãããªã®ã§ããã¹ããã©ã¯ãã£ã¹ã¿ãããªãã®ãã¾ã¨ãã¡ããã¾ããã Ansibleã¨ã¯ï¼ éãªè¨ãæ¹ãããã°ãSSHæ¥ç¶ãããªã¢ã¼ããã¹ãã§ããã«ã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ãè¨å®ãã¡ã¤ã«ã®æ´æ°ãè¡ããã¼ã«ã§ãã ã«ãã´ãªã¨ãã¦ã¯æ§æ管çãã¼ã«ã«åé¡ããã¾ãã SSHæ¥ç¶ãå¯è½ã§ããã°ããªã¢ã¼ããã¹ãå´ã«ã¨ã¼ã¸ã§ã³ãã®ã¤ã³ã¹ãã¼ã«ãä¸è¦ã§ããç¹ã¯å¤§ããªç¹å¾´ã§ãã Playbookã«ãµã¼ãã®ç¶æ ãå®ç¾©ãã Ansibleã®Playbookã¯ããªã¢ã¼ããã¹ãã®ç¶æ ãå®ç¾©ãããã¡ã¤ã«ã§ãã æ§æ
ã¯ããã« ä¸å±±ã§ããèªå·±ç´¹ä»ããã°ä»¥å¤ã§ã¯ä¸çºç®ã®ã¨ã³ããªã§ãããããããé¡ããã¾ãã åçªã§ãããã¿ãªããMacã®ç°å¢æ§ç¯ã¯ã©ã®ããã«è¡ã£ã¦ãã¾ããã温ãã¿ã®ããæä½æ¥ã§è¡ã£ã¦ãã¾ãããã¾ãã¯ãä½ããã®ãã¼ã«ãå©ç¨ãã¦èªåçã«è¨å®ãè¡ãããããªä»çµã¿ã§æ§ç¯ãã¦ãã¾ããã ç§ã¯ãã®ä½æ¥ã«Ansibleãå©ç¨ãã¦ãã¾ããAnsibleãå©ç¨ããMacã®ç°å¢æ§ç¯ã¨ããã¨ãå»å¹´è©±é¡ã«ãªã£ã¦ãã¾ãããããã¡ãã®ã¨ã³ããªãç«ä»ãå½¹ã ã£ãã¨è¨æ¶ãã¦ãã¾ãããã®å¾ããã¨ã³ã¸ãã¢çéã§å®æçã«è©±é¡ã«ãªããã¿ã®ããã§ãã ç§ã¯çµæ§åãããã®æ¹æ³ã§ç°å¢æ§ç¯ãè¡ã£ã¦ããã¨ãããã¨ããã£ã¦ãããããç¥è¦ãæºã¾ã£ã¦ãã¾ãããã¾ããææçã«(æ°å ¥ç¤¾å¡ã®å£ç¯ï¼ç§ãã§ã)ä¼ç¤¾ããPCãæ¯çµ¦ããåææ§ç¯ã«åè¦å «è¦ããã¦ããæ¹ã ãå¤ãã®ã§ã¯ãªãã§ããããã ããã§æ¬ã¨ã³ããªã§ã¯Ansibleãå©ç¨ããMacã®ç°å¢æ§ç¯2016
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}