Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
æ¦è¦ ãµã¼ãã¸ã®SSHãã°ã¤ã³ãå ¬ééµï¼ãã¹ãã¬ã¼ãºã«ããèªè¨¼ã®å ´åã«Serverspecãå®è¡ããæ¹æ³ãç´¹ä»ãã¾ã ç°å¢ CentOS release 6.6 (Final) Serverspec 2.14.0 è¨å®æ¹æ³ spec_helper.rb ã®ä¿®æ£ 以ä¸ã®è¨å®ãspec_helper.rbã«è¿½è¨ãã¾ã options[:keys] = ENV['KEY']; options[:passphrase] = ENV['PASSPHRASE']; options[:user] = ENV['USER'] || Etc.getlogin ç°å¢å¤æ°ãKEYããPASSPHRASEããUSERããå®è¡æã«ã»ããã§ããããã«ãã¾ã 追è¨ããçã®spec_helper.rbã®å ¨è²ã¯ãã¡ã require 'serverspec' require 'net/ssh' set :backend,
åæ¥ã¾ã§ã®æã§ãserverspecã®ã¤ã³ã¹ãã¼ã«ã¨ã試é¨ãå®æ½ããã¦ã¼ã¶ã®sshå¨ãã®è¨å®ãå®æ½ãã¾ããã ï¼ä¹ ãã¶ãã®ããã°ã§ä¹±ããããç æ°ã§ã°ãã°ãã ã£ãæãå°ã ä¿®æ£ãã¾ããï¼ serverspecã¯ãã¹ãåä½ã§ã®è©¦é¨ããã¼ã¹ã«ãªã£ã¦ããããã§ãã ã¾ãã¯è©¦é¨å¯¾è±¡æ©ã«è©¦é¨ãå®æ½ã§ããæãç®æãã¾ãã 試é¨å¯¾è±¡æ©ã®æ å ±ã¯ä»¥ä¸ã®éãã§ãã ãã¹ãåï¼test01.test.local OSï¼CentOS 6.5 IPï¼192.168.11.50 ã¦ã¼ã¶ï¼srvspec ãã®ã¦ã¼ã¶ã¯sudoã§ç¹æ¨©ãå¿ è¦ãªã³ãã³ããå®è¡ã§ãã権éãå¿ è¦ã§ãã serverspecãµã¼ãã®è©¦é¨å®æ½ã¦ã¼ã¶ã§ãserverspecãåæåãã¾ãã $ serverspec-init Select OS type: 1) UN*X 2) Windows Select number: 1 Select a backe
ã¿ãªããããã«ã¡ã¯ããµã¼ãã®æ§ç¯æ¥åãæ å½ãã¦ããå·åã§ãã ä»åã¯æ®æ®µè¡ã£ã¦ããæ§ç¯æ¥åã«ã¤ãã¦ã®è¨äºã¨ãªãã¾ãã 以åããæ§ç¯å¾ã®ãµã¼ãç°å¢ã®ãã¹ããèªååãã¦ããããã¨èãã¦ãã¾ããã ä»åã¯åã£æããã¨ãã¦ãServerspecãã¤ã³ã¹ãã¼ã«ããæ¹æ³ã«ã¤ãã¦è§£èª¬ãããã¨æãã¾ãã Serverspecãå°å ¥ãããã¨ã§ä»¥åã¾ã§ã®æä½æ¥ã§ã®ãã§ãã¯ã¨ã¯éã ä½æ¥æéã®ç縮ã»ç¢ºèªæ¼ããªã©ã®ãã¹ãç¡ãããã¨ãã§ãä½æ¥ãå¤§å¹ ã«æ¹åãããã¨æå¾ ãã¦ãã¾ãã æ¦è¦ ä»åã¯CentOSã«Servercpecãå°å ¥ãã¦ãç°å¢ãç¨æããã¾ã§ã®æé ã解説ãããã¨æãã¾ãã å©ç¨ããç°å¢ã¯ãCentOS 6.9 64bit 㨠CentOS 7.4 64bit ã§ãã OSã®ãã¼ã¸ã§ã³ã«ãã£ã¦æé ãç°ãªãã¾ãã®ã§ãã¼ã¸ã§ã³å¥ã®è§£èª¬ãå ãã¦ããã¾ãã Serverspecã¨ã¯ ãµã¼ãåãã«ç¨æããããã¹ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}