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

Vagrant勉強会 at ペパボ (2014/2/27)

Vagrant勉強会 at ペパボ (2014/2/27)

2014/2/27にペパボで開催されたVagrant勉強会の資料です。
なぜかPackerで箱作った話をしています。

47e8318347fb8cd6a2c39bc6cf6e333e?s=128

Okumura Takahiro

March 02, 2014
Tweet

More Decks by Okumura Takahiro

Other Decks in Programming

Transcript

  1. 7BHSBOUษ ڧ ձ !IGN 0LVNVSB5BLBIJSP

  2. .Z42- "MM4UBSWCPY

  3. .Z42-    !   

  4. $FOU04   

  5. J Y@

  6. NZTRMCVJME IUUQTHJUIVCDPNLBNJQPNZTRMCVJME

  7. QBDLFECZ QBDLFS

  8. IUUQTHJUIVCDPNUBDBIJMPNZTRMBMMTUBS

  9. WBHSBOUVQ .Z42-0,

  10. 5IBOLTBMPU

  11. one more thing

  12. USPVCMFTIPPU GPSQBDLFS

  13. dWBHSBOUE

  14. Vagrant.configure("2") do |config|! config.vm.define "centos5-i386" do |c|! c.vm.box = "CentOS5.10-i386"!

    c.vm.box_url = “./builds/centos5.10-i386.box"! end! end
  15. Vagrant.configure("2") do |config|! config.vm.define "centos5-i386" do |c|! c.vm.box = "CentOS5.10-i386"!

    c.vm.box_url = “./builds/centos5.10-i386.box"! end! end
  16. $ ls -oh $HOME/.vagrant.d/boxes total 0 drwxrwxr-x 2 hfm 68B

    2 22 22:08 CentOS5.10-i386
  17. Vagrant.configure("2") do |config|! config.vm.define "centos5-i386" do |c|! c.vm.box = "CentOS5.10-i386"!

    c.vm.box_url = “./builds/centos5.10-i386.box"! end! end
  18. Vagrant.configure("2") do |config|! config.vm.define "centos5-i386" do |c|! c.vm.box = "CentOS5.10-i386"!

    c.vm.box_url = “./builds/centos5.10-i386.box"! end! end JUVTFT/05CPY@VSM #65dWBHSBOUE$FOU04J
  19. $ vagrant box list CentOS5.10-i386 (virtualbox)

  20. $ vagrant box list CentOS5.10-i386 (virtualbox) $ vagrant box remove

    CentOS5.10-i386 Removing box 'CentOS5.10-i386' ...
  21. $ vagrant box list CentOS5.10-i386 (virtualbox) $ vagrant box remove

    CentOS5.10-i386 Removing box 'CentOS5.10-i386' ... $ vagrant up CentOS5.10-i386 Bringing machine 'CentOS5.10-i386' up ...
  22. $ vagrant box list CentOS5.10-i386 (virtualbox) $ vagrant box remove

    CentOS5.10-i386 Removing box 'CentOS5.10-i386' ... $ vagrant up CentOS5.10-i386 Bringing machine 'CentOS5.10-i386' up ... $ vagrant box list \ | awk '{print $1}' \ | xargs -I% vagrant box remove %
  23. LJDLTUBSUDGH

  24. --- http/ks-centos-5.10.cfg +++ http/ks-centos-6.5.cfg @@ -14,7 +14,7 @@ skipx zerombr

    -clearpart --all --initlabel +clearpart --all autopart auth --useshadow --enablemd5
  25. --- http/ks-centos-5.10.cfg +++ http/ks-centos-6.5.cfg @@ -35,6 +35,7 @@ %packages @Core

    @Base +%end %post # update certs
  26. --- http/ks-centos-5.10.cfg +++ http/ks-centos-6.5.cfg @@ -44,5 +45,6 @@ useradd vagrant

    -g vagrant -G wheel -u 1001 echo "vagrant" | passwd --stdin vagrant # sudo -echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> / etc/sudoers +echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> / etc/sudoers.d/vagrant sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers +%end
  27. 5IBOLTBMPU