Apresentação vagrant

538 views

Published on

7Prods – Lighting Talks
Criando sua primeira vm, acessando via ssh, vagrant + bash script e vagrant + chef

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
538
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Apresentação vagrant

  1. 1. VAGRANTFelipe Augusto Navasfelipen@7prods.com.br
  2. 2. CRIANDO SUA PRIMEIRA VM$ vagrant box add base http://files.vagrantup.com/lucid32.box$ vagrant init$ vagrant up
  3. 3. ACESSANDO VIA SSH$ vagrant ssh
  4. 4. VAGRANT + BASH SCRIPTVagrant::Config.run do |config| config.vm.provision :shell, :path => "test.sh"endVagrant::Config.run do |config| config.vm.provision :shell, :inline => "sudo apt-get install vim"end
  5. 5. VAGRANT + CHEFconfig.vm.provision :chef_solo do |chef| chef.cookbooks_path = "chef/cookbooks" chef.roles_path = "chef/roles" node_json = JSON.parse(File.read("chef/node_database.json")) node_json[:run_list] = node_json.delete("recipes") chef.add_role("database") chef.json.merge!(node_json)end
  6. 6. Perguntas ?Felipe Augusto Navasfelipen@7prods.com.br
  7. 7. FTW

×