2014-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ã©ãã«ãç²¾ç¥ãä¸è¡çã®ã¨ãã¯é£éãã¦è¯ããªããã¨ãçºçãããæ°ããããæ¨æ¥ããããã ã§çé£ã«ãã£ãåå·æ©ã«ä»£ãã£ã¦ç¨¼åãã¦ããå¼å·æ©ãããã±ããããã³ã³ã¯ãªå°é¢ã¸ã®ãã¤ã¬ã¯ãã¢ã¿ãã¯ã§ã亡ããªãã«ãå ã ã¹ãã¼ã«ã¼ä»¥å¤ã®é話ãåºæ¥ãªãã¨ããâ¦
ä¸éã«è¬ããããã®ã¨ã©ã¼ã #config/deploy.rb set :pty, true ä¸è¨è¨å®è¿½å ããã°è§£æ±ºã
対話形å¼ã«ããã«æ°è¦ã§ãã¡ã¤ã«ãçæããæ¹æ³ã§ã®ã³ãã³ãã $ htpasswd -bc file_name user_name password ããã·ã¥åæ¹æ³ã®æå®ããããªãã·ã§ã³ããããã©ãããã¯å¿ è¦ã«å¿ãã¦ä»ã足ãã°è¯ãã¨æãã
ããã©ã«ãã®repoè¨å®ã§ã¯npmããªãã epelããå ¥ããã®ãä¸çªç°¡åããã $ rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm $ yum install npm --enabelrepo=epel ããã§ç¡äºã¯ããã¯ããChefã§æ¸ãå ´åã¯ä»¥ä¸â¦
yumã§ä½¿ç¨ããrepositoryã®åªå é ä½ãè¨å®ãããã¦ã°ã°ã£ã¦ã¿ãã¨ãããããç¨ã®ãã©ã°ã¤ã³ããããããã yum install yum-plugin-priorities ä¸è¨ã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ããã¨ã¯è¨å®ãããrepoãã¡ã¤ã«ãéãã¦ãpriorityãªãã·ã§ã³ã追å ã ä»åã¯ã¨ããâ¦
Chefã§ä¸è¨ã®ãããªä¸è¬çãªiptablesã®templateãç¨æããè¨å®ãåæ ããããrestartããããã¨ããã¨ã©ã¼ãã # iptables *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Firewall-1-INPUT - [0:0] ï¼ä¸ç¥ï¼ COMMIT Chefã®å½â¦