Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automated Environment

murajun1978
October 05, 2013

Automated Environment

murajun1978

October 05, 2013
Tweet

More Decks by murajun1978

Other Decks in Technology

Transcript

  1. Agenda ✤ What is Vagrant ʁ ✤ Why Vagrant ʁ

    ✤ How to use Vagrant ✤ What is Chef ? 13೥10݄5೔౔༵೔
  2. % sudo apt-get install ~ % sudo apt-get install ~

    % sudo apt-get install ~ . . . 13೥10݄5೔౔༵೔
  3. Install Package 1 %w{gcc make nginx mysql}.each do |pkg| 2

    package pkg do 3 action :install 4 end 5 end 13೥10݄5೔౔༵೔
  4. Setting rbenv 1 git "home/vagrant/.rbenv" do 2 repository "https://github.com/sstephenson/rbenv.git" 3

    reference "master" 4 action :checkout 5 end 1 git "/home/vagrant/.rbenv/plugins/ruby-build" do 2 repository "https://github.com/sstephenson/ruby-build.git" 3 reference "master" 4 action :checkout 5 end 1 bash "install-rubybuild" do 2 code <<-COMMAND 3 cd /home/vagrant/.rbenv/plugins/ruby-build 4 ./install.sh 5 COMMAND 6 end 13೥10݄5೔౔༵೔
  5. Setting Proxy 1 template "/etc/apt/apt.conf" do 2 source "apt.conf.rb" 3

    action :create 4 end 1 Acquire::http::proxy "http://your.proxy.address:8080/"; template/default/apt.conf.erb 13೥10݄5೔౔༵೔