[Groonga-commit] droonga/wikipedia-search.wiki at 386250a [master] UbuntuとVagrantのバージョンが古かったので更新しました

Back to archive index

long_long_float null+****@clear*****
Sun Aug 17 09:37:27 JST 2014


long_long_float	2014-08-17 09:37:27 +0900 (Sun, 17 Aug 2014)

  New Revision: 386250a49ee2d7ade7135d715213ac2fd5a7d9db
  https://github.com/droonga/wikipedia-search/wiki/%E5%AE%9F%E9%A8%93%E7%92%B0%E5%A2%83%EF%BC%88%E4%BB%AE%E6%83%B3%E7%92%B0%E5%A2%83%EF%BC%89%E3%81%AE%E6%A7%8B%E7%AF%89/386250a49ee2d7ade7135d715213ac2fd5a7d9db

  Message:
    UbuntuとVagrantのバージョンが古かったので更新しました

  Modified files:
    実験環境(仮想環境)の構築.md

  Modified: 実験環境(仮想環境)の構築.md (+16 -12)
===================================================================
--- 実験環境(仮想環境)の構築.md    2014-07-29 11:13:41 +0900 (a741cd3)
+++ 実験環境(仮想環境)の構築.md    2014-08-17 09:37:27 +0900 (bf40847)
@@ -1,31 +1,35 @@
-vagrantでUbuntu 13.10ベースの実験環境を用意する。
+vagrantでUbuntu 14.04ベースの実験環境を用意する。
 
 仮想マシンのホストとなる環境のセットアップ
 
-    % sudo gem1.9.1 install chef knife-solo
+    % sudo gem install chef knife-solo
 
 Vagrant自体もインストールする(まだ入っていなければ)。
 
-    % wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
+    % wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_i686.deb #32bit
+    % wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb #64bit
     % sudo dpkg -i vagrant_1.6.3_x86_64.deb
 
-実験環境としての仮想マシンのセットアップ(Ubuntu 13.10)
+実験環境としての仮想マシンのセットアップ(Ubuntu 14.04)
 
-    % vagrant box add ubuntu13.10 http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box
+    % vagrant box add ubuntu14.04 http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box
+http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
     % mkdir testserver
     % cd testserver
-    % vagrant init ubuntu13.10
+    % vagrant init ubuntu14.04
 
 設定を書き換えて、ノードが3つ起動するようにする。
 
     % vi Vagrantfile
     % cat Vagrantfile
-    Vagrant::Config.run do |config|
-      0.upto(2).each do |index|
-        config.vm.define :"node#{index}" do |node_config|
-          node_config.vm.box = "ubuntu13.10"
-          node_config.vm.network :hostonly, "192.168.100.#{50 + index}"
-          node_config.vm.host_name = "node#{index}"
+    VAGRANTFILE_API_VERSION = "2"
+
+    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+      0.upto(2).each do |i|
+        config.vm.define :"node#{i}" do |node_config|
+          node_config.vm.box = "ubuntu14.04"
+          node_config.vm.network :private_network, ip: "192.168.100.#{50 + i}"
+          node_config.vm.host_name = "node#{i}"
         end
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index