Apresentação   vagrant
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Apresentação vagrant

on

  • 668 views

7Prods – Lighting Talks

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

Statistics

Views

Total Views
668
Views on SlideShare
667
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://ngoding.co 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Apresentação vagrant Presentation Transcript

  • 1. VAGRANTFelipe Augusto Navasfelipen@7prods.com.br
  • 2. CRIANDO SUA PRIMEIRA VM$ vagrant box add base http://files.vagrantup.com/lucid32.box$ vagrant init$ vagrant up
  • 3. ACESSANDO VIA SSH$ vagrant ssh
  • 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. 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. Perguntas ?Felipe Augusto Navasfelipen@7prods.com.br
  • 7. FTW