Saharaãã©ã°ã¤ã³ã§ç°å¢ããã¼ã«ãã㯠ããã§ã¯Chef + Vagrantã試ãã¦ã¿ã¾ããã ä»åã¯ãVagrantã¨å ±ã«ããç´¹ä»ããã便å©ãã©ã°ã¤ã³ãSaharaãç´¹ä»ãã¾ãã ããã¯ä»®æ³OSã®ã¹ãããã·ã§ããã®ãããªãã®ãç°¡åã«åå¾ã§ããVagrantç¨ãã©ã°ã¤ã³ã§ã vagrantã§ã¤ãã£ãä»®æ³ç°å¢ã«å¤æ´ãå ãã¦ãç°¡åã«å ã«æ»ããã¨ãã§ãã¾ãã ç°å¢æ§ç¯æ¹æ³ ä»å使ç¨ããåä½ç°å¢ã¯ä»¥ä¸ã®ã¨ããã§ãã OS : MacOS X 10.7.5 Vagrant : 1.2.2 Ruby : 1.9.3 VirtualBox : 4.1.2 ããã§ä½ã£ãCentOSç°å¢ã使ç¨ããã®ã§ãvagrant upã§èµ·åã§ããããã«ãã¦ããã¾ãããã Saharaãã©ã°ã¤ã³ã使ã ãã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯Saharaãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãã¾ããä¸è¨ã³ãã³ãã使ã£ã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã
VirtualBoxã§ä»®æ³OSä½ããã¨æã£ã¦ãéä¸ã¤ã¡ã¼ã¸ãã¡ã¤ã«ã®æ ¼ç´å½¢å¼ããã£ã±ãã§ã¦ãã¦åãããªãã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã æ¼ã£ãå 容ãã¡ã¢ãã¨ãã¾ãã æ°ããä»®æ³ãã¼ããã©ã¤ãã§ä½¿ç¨ããããã¡ã¤ã«ã®ã¿ã¤ããé¸æãã¦ãã ãããããã»ãã®ä»®æ³ã½ããã¦ã§ã¢ã§ä½¿ç¨ããå¿ è¦ããªããã°ãè¨å®ã¯ãã®ã¾ã¾ã«ãã¦ããã¦ãã ããã ãããã§ãããã£ã±ããã£ã¦ããåããã¾ããã§ããï¼ï¼ VID (VirtualBox Disk Image) VMDK (Virtual Machine Disk) VHD (Virtual Hard Disk) HDD (Parallels Hard Disk) QED (QEMU enhanced disk) QCOW (QEMU Copy-On-Write) ç®æ¬¡ 1. VID, VMDK, VHD, HDD 2. QED, QCOW 3. çµè« 1. VID, V
ã¤ã³ã¹ãã¼ã«ç·¨ã¨Boxä½æç·¨Part.1ãPart.2ã®ç¶ãã§ãã æå¾ã«Vagrantã使ã£ãéç¨å¨ãã«ã¤ãã¦æ¸ãã¾ãã Vagrantfileã®è¨å® Vagrantã§Windowsãæ±ãå ´åãVagrantfileã«ããã¤ãç¬èªã®è¨å®ãããå¿ è¦ãããã¾ãã ã²ã¹ãã®ç¨®é¡ ã¾ãVMã®ã²ã¹ãã®ç¨®é¡ãããã©ã«ãã®LinuxããWindowsã«ããå¿ è¦ãããã¾ãã config.vm.guest = :windows éä¿¡æ¹æ³ Vagrantã§ã¯WinRMã使ã£ã¦ã²ã¹ãã®Windows OSã管çããããCommunicatorãããã©ã«ãã®SSHããWinRMã«å¤æ´ãã¾ãã config.vm.communicator = "winrm" ã¾ããWinRMã¨ãªã¢ã¼ã管çã®ããã«RDPã®ãã¼ãã«å¯¾ãã¦ãã¼ããã©ã¼ã¯ã¼ãããæ§ã«ãã¾ãã config.vm.network :forwarded_
æè¿è©±é¡ã® Vagrant ããã¯ãLinux ã®ç°å¢ãä½ã£ããå£ããããã¦éçºã¨ã試é¨ã楽ã«ãªãããã¨ç´¹ä»ããããã¨ãå¤ããã©ãWindows ã®ç°å¢ã ã£ã¦ä½ã£ããå£ããããããï¼ ãããã調ã¹ã¤ã¤ç°å¢ãä½ã£ã¦ã¿ãã®ã§ããã®æé ãå ±æãã¦ããã å®æã¤ã¡ã¼ã¸ã¯ãããªæããã³ãã³ãããã³ãããã vagrant up ãããã VirtualBox ä¸ã« Windows Server 2012 R2 ã®ç°å¢ãæºåããã¦ãããã«ãªã¢ã¼ã ãã¹ã¯ãããã§æ¥ç¶ãã¦ããã ããããããã£ããã¨ã« vagrant destroy ãããç°å¢ã¯æ¶ãå»ã£ã¦ãvagrant up ããããã¾ããã¾ã£ãããªç¶æ ãã使ããã ã¡ãã£ã¨æ³¨ç®ãã¦ã»ããã®ã¯ãã²ã¹ã OS ã® C:\vagrant ã«ãã¹ãå´ã® Vagrantfile ããã¦ã³ãããã¦ããã¨ããããã®ãããã®å¦ç㯠Vagrant-Windows
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}