vagrant-vbguest(Vagrant Plugin) 説明書

vagrant-vbguest
https://github.com/dotless-de/vagrant-vbguest
VirtualBoxのゲストOS用ソフトを更新する

・インストール方法

$ vagrant plugin install vagrant-vbguest

・使い方

設定例:

Vagrant::Config.run do |config|
# we will try to autodetect this path.
# However, if we cannot or you have a special one you may pass it like:
# config.vbguest.iso_path = “#{ENV[‘HOME’]}/Downloads/VBoxGuestAdditions.iso”
# or
# config.vbguest.iso_path = “http://company.server/VirtualBox/%{version}/VBoxGuestAdditions.iso”

# set auto_update to false, if you do NOT want to check the correct
# additions version when booting this machine
config.vbguest.auto_update = false

# do NOT download the iso file from a webserver
config.vbguest.no_remote = true
end

 

設定オプション:

iso_path : VBoxGuestAdditions.isoファイルのフルパスorURLを指定

auto_update (Boolean, default: true) : 新しいバージョンを確認するかどうか

auto_reboot (Boolean, default: true when running as a middleware, false when running as a command) : GuestAdditionsがインストールされていて、ロードされていない場合にboxを再起動するかどうか

no_install (Boolean, default: false) : バージョンのチェック後にインストールを実行しないかどうか。バージョンミスマッチの警告は表示される

no_remote (Boolean, default: false) : 遠隔地(任意のhttpアドレスを含む)のisoファイルをダウンロードしないかどうか。

installer (VagrantVbguest::Installers::Base, optional) : インストーラークラスへの参照

sahara(Vagrant plugin) 説明書

sahara
https://github.com/jedi4ever/sahara
仮想マシン(VirtualBox)の状態をロールバック出来るようにする。

・インストール方法

$ vagrant plugin install sahara

・使い方

sandboxモードになる:

vagrant sandbox on

commitを行う:

vagrant sandbox commit

 

rollbackを行う:

vagrant sandbox rollback

 

sandboxモードの終了:

vagrant sandbox off

vagrant-omnibus(Vagrant plugin) 説明書

vagrant-omnibus
https://github.com/opscode/vagrant-omnibus
このプラグインはプロビジョニング時にchef-clientがインストールされているかを検出し、
指定したバージョンのchef-clientをインストールしてくれます。

・インストール方法

$ vagrant plugin install vagrant-omnibus

・使い方

最新バージョンのchefをインストールする設定:

Vagrant.configure(“2”) do |config|

config.omnibus.chef_version = :latest

end

指定バージョンのchefをインストールする設定:

Vagrant.configure(“2”) do |config|

config.omnibus.chef_version = “11.4.0”

end

インストール用のスクリプトを作成してchefをインストールする設定:

Vagrant.configure(“2”) do |config|

config.omnibus.install_url = ‘http://acme.com/install.sh’ # config.omnibus.install_url = ‘http://acme.com/install.msi’ # config.omnibus.install_url = ‘/some/path/on/the/host’

end

Vagrant-cachierプラグインが存在し、config.cache.auto_detectが有効な場合にダウンロードがキャッシュされるが、そのキャッシュをoffにする設定:

Vagrant.configure(“2”) do |config|

config.omnibus.cache_packages = false

end

複数のVMウェアを意識した作りになっており、同時に複数のchefのバージョンをインストールすることが可能。:

Vagrant.configure(“2”) do |config|

config.vm.define :new_chef do |new_chef_config|

new_chef_config.omnibus.chef_version = :latest

end

config.vm.define :old_chef do |old_chef_config|

old_chef_config.omnibus.chef_version = “10.24.0”

end end