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

Vagrantでさくらのクラウド

rch850
February 06, 2014

 Vagrantでさくらのクラウド

Vagrantでさくらのクラウドを使えますよという話

rch850

February 06, 2014
Tweet

More Decks by rch850

Other Decks in Technology

Transcript

  1. cat > Vagrantfile <<EOT! ! Vagrant.configure("2") do |config|! config.vm.box =

    "dummy"! config.ssh.username = "ubuntu"! config.ssh.private_key_path = File.expand_path "~/.ssh/id_rsa"! config.vm.provider :sakura do |sakura|! sakura.disk_source_archive = '112500459149'! sakura.access_token = 'YOUR ACCESS TOKEN'! sakura.access_token_secret = 'YOUR ACCESS TOKEN SECRET'! sakura.sshkey_id = 'YOUR PUBLIC KEY ID'! end! end! ! EOT
  2. $ vagrant up --provider=sakura! Bringing machine 'default' up with 'sakura'

    provider...! [default] Creating a server with the following settings...! [default] -- Server Name: default! [default] -- Server Plan: 1001! [default] -- Disk Plan: 4! [default] -- Disk Source Archive: 112500570421!
  3. $ vagrant up --provider=sakura! Bringing machine 'default' up with 'sakura'

    provider...! [default] Creating a server with the following settings...! [default] -- Server Name: default! [default] -- Server Plan: 1001! [default] -- Disk Plan: 4! [default] -- Disk Source Archive: 112500570421!
  4. $ vagrant up --provider=sakura! .! .! .! .! .! .!

    [default] Waiting for SSH to become available...! [default] Server is booted and ready for use!