Created
August 13, 2012 15:49
-
-
Save jtimberman/3342085 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
config.vm.box = "omnios" | |
config.vm.box_url = "http://omnios.omniti.com/media/omnios-latest.box" | |
config.vm.provision :shell do |shell| | |
shell.inline = <<-EOH.gsub(/^ {6}/, '') | |
cp -R /opt/omni/lib/ruby/gems/1.9/* /opt/omni/lib/ruby/gems/1.9.1 | |
for ruby_binary in chef-client knife ohai shef erubis | |
do | |
ln -sf /opt/omni/lib/ruby/gems/1.9.1/bin/${ruby_binary} /opt/omni/bin/${ruby_binary} | |
done | |
pkg install developer/gcc46 | |
gem install --no-ri --no-rdoc chef -v 10.12.0 | |
EOH | |
end | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = 'cookbooks' | |
chef.roles_path = 'roles' | |
chef.data_bags_path = 'data_bags' | |
run_list = [] | |
run_list << ENV['CHEF_RUN_LIST'].split(",") if ENV.has_key?('CHEF_RUN_LIST') | |
chef.run_list = run_list | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment