Professional Documents
Culture Documents
Japan 2014
• OSS devel:
• Vagrant-KVM
• Linux Kernel
• etc…
Github.com/nttdata-osscloud
Github.com/miurahr
Copyright © 2014 NTT DATA Corporation 3
Agenda
1. What is DevOps
2. Introduction to Vagrant
3. Vagrant-KVM
4. Infrastructure chages
5. Future
by author,
Mr. Mitchell Hashimoto
Copyright © 2014 NTT DATA Corporation 10
Targeted Vagrant Users
• Web application
developers
• Infrastructure engineer
programmer
• Deploy on VMwarevCenter,
OpenStack
• Test Puppet, Chef or Ansible
• Just run
$ vagrant up
• Preconfigured VM images
• Base for environment
• Community shared
• VagrantCloud.com:
shares boxes
• Launched at 2010
• 2013, March, Version 1.1+
• Plugins: 3rd party projects
• Vagrant-KVM plugin start
• 2014, March
• Vagrant Cloud
• Shell, Puppet,
Ansible, Docker
and Chef
• 3rd party: Salt
etc.
Sakura Cloud
VMWare
License MIT
Language Ruby
Vagrant
vagrant
-kvm
Vagrant
kvm
Dummy
Vagrant
guest
Vagrant- Rspec/mock
KVM
GuestOS GuestOS
Target KVM Target KVM
HostOS
Libvirt/Qemu/KVM
Github.com
Pull-Request example: Green
• Infrastructure development is
Changing
Before deploy
Active
Application Application
Server Server
Ver 1 Ver 1
Router
Application Database
Server Ver2 Ver2
Deployment
Post deploy
Switch back when fail
Application Application
Destroy
Server Server after switch
Ver 1 Ver 1
Router
Application Database
Server Ver2 Ver2
Direct Green
Active
http://www.nttdata.com/jp/ja/insights/trend_keyword/2013122601.html
Copyright © 2014 NTT DATA Corporation 32
Packaging for deploy
Instance difference
To run 試験
Bare Metal Virtual Machines
Linux Container
Production
Development
Update master
Master Image
Origin HashiCorp
Language Go
Virtual BOX
Single definition made multiple
images for platforms
Definision
File
(JSON) packer
Provisioning tool
Copyright © 2014 NTT DATA Corporation 35
Docker
Agility:
Low overhead and quick
setup
Portability:
https://www.docker.io/
Copyright © 2014 NTT DATA Corporation 36
Vagrant and Docker
miurahr at nttdata co jp
@miurahr (Twitter/LinkedIn/Github)
Copyright © 2011 NTT DATA Corporation