æ¦è¦ ãµã¼ãã¸ã®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
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}