-
-
Save nathenharvey/4128168 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.box = "bento-12.04" | |
config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-12.04.box" | |
config.vm.forward_port 80, 8080 | |
config.vm.customize [ | |
"modifyvm", :id, | |
"--name", "LAMP VM", | |
"--memory", "2048" | |
] | |
config.vm.network :bridged | |
config.vm.host_name = "lamp-vm" | |
#config.vm.share_folder("v-root", "/home/vagrant/apps", ".", :nfs => true) | |
orgname = "thoughtster" | |
node = "vagrant-deepak" | |
config.vm.provision :shell, :inline => "gem install chef" | |
config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = "https://api.opscode.com/organizations/#{orgname}" | |
chef.validation_key_path = ".chef/#{orgname}-validator.pem" | |
chef.validation_client_name = "#{orgname}-validator" | |
chef.node_name = "nathen-vagrant" | |
chef.log_level = :debug | |
chef.add_role("base") | |
# chef.add_role("db_master") | |
chef.add_role("webserver") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment