Mitchell Hashimoto - Vagrant: Up and Running [2013, PDF, ENG]

Страницы:  1
Ответить
 

vadik2007

Top User 06

Стаж: 16 лет 7 месяцев

Сообщений: 19

vadik2007 · 10-Сен-14 23:55 (9 лет 9 месяцев назад, ред. 11-Сен-14 00:02)

Vagrant: Up and Running
Год: 2013
Автор: Mitchell Hashimoto
Жанр: Учебное пособие
Издательство: O'Reilly
ISBN: 978-1-449-33583-0
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 155
Описание: Discover why Vagrant is a must-have tool for thousands of developers and ops engineers. With this hands-on guide, you’ll learn how to use this open source software to quickly build a virtual machine for any purpose—including a completely sandboxed, fully provisioned development environment right on your desktop.
Vagrant creator Mitchell Hashimoto shows you how to share a virtual machine image with members of your team, set up a separate virtualization for each project, and package virtual machines for use by others. Start creating development environments with Vagrant, and learn how to save time, avoid frustration, and prevent costly errors.
  1. Build a simple virtual machine with just two commands and no configuration
  2. Create a development environment that closely resembles production
  3. Automate software installation and management with shell scripts, Chef, or Puppet
  4. Set up a network interface to access your virtual machine from any computer
  5. Use your own editor and browser to develop and test your applications
  6. Test complicated multi-machine clusters with a single Vagrantfile
  7. Change Vagrant's default operating system to match your production OS
  8. Extend Vagrant features with plugins, including components you build yourself
Mitchell Hashimoto is the founder of HashiCorp, a company that produces clevops tools, including Vagrant. An experienced web developer, operations engineer, and entrepreneur, Mitchell has been creating and contributing to open source software for almost a decade.
Примеры страниц
Оглавление

Foreword ............................................ vii
Preface .............................................. ix
1. An Introduction to Vagrant ......................... 1
Why Vagrant? ....................................... 2
The Tao of Vagrant ................................. 4
Alternatives to Vagrant ............................ 5
Plain Desktop Virtualization .................... 5
Containers ...................................... 5
Cloud ........................................... 6
Setting Up Vagrant ................................. 6
Installing VirtualBox ........................... 7
Installing Vagrant .............................. 7
Common Mistakes ................................ 13
Using Vagrant Without VirtualBox .................. 13
Help! ............................................. 14
2. Your First Vagrant Machine ........................ 15
Up and Running .................................... 15
The Vagrantfile ................................... 17
V1 versus V2 Configuration ..................... 19
Boxes ............................................. 20
Up ................................................ 21
Working with the Vagrant Machine .................. 23
State of the Vagrant Machine ................... 24
SSH ............................................ 24
Shared Filesystem .............................. 25
Basic Networking ............................... 26
Teardown ....................................... 28
What’s Next? ...................................... 32
3. Provisioning Your Vagrant VM ...................... 35
Why Automated Provisioning? ....................... 36
Supported Provisioners ............................ 37
Manually Setting Up Apache ........................ 38
Automated Provisioner Basics ...................... 41
Shell Scripts .................................. 42
Chef ........................................... 43
Puppet ......................................... 45
Multiple Provisioners ............................. 47
“No Provision” Mode ............................... 48
In-Depth Provisioner Usage ........................ 48
Shell Scripts .................................. 48
Chef Server .................................... 49
Puppet ......................................... 50
What’s Next? ...................................... 53
4. Networking in Vagrant ............................. 55
Forwarded Ports ................................... 55
Pros and Cons .................................. 56
Basic Usage .................................... 56
Collision Detection and Correction ............. 57
TCP versus UDP ................................. 57
Host-Only Networking .............................. 57
Pros and Cons .................................. 58
Basic Usage .................................... 58
Guest Operating System Dependency .............. 59
Bridged Networking ................................ 59
Pros and Cons .................................. 60
Basic Usage .................................... 60
Composing Networking Options ...................... 62
NAT Requirement As the First Network Interface .... 63
What’s Next? ...................................... 63
5. Modeling Multimachine Clusters .................... 65
Running Multiple Virtual Machines ................. 66
Controlling Multiple Machines ..................... 68
Communication Between Machines .................... 69
Host-Only Networks ............................. 69
Bridged Networks ............................... 70
Real Example: MySQL ............................... 70
What’s Next? ...................................... 72
6. Boxes ............................................. 73
Why Boxes? ........................................ 73
Box Format ........................................ 74
Basic Box Management with Vagrant ................. 75
Creating New Boxes from an Existing Environment ... 76
Creating New Boxes from Scratch ................... 78
Creating the VirtualBox Machine ................ 78
Configuring the Operating System ............... 79
Installing VirtualBox Guest Additions .......... 80
Additional Software ............................ 80
Minimizing the Final Box Size .................. 81
Packaging It Up ................................ 81
Setting Vagrantfile Defaults ................... 82
What’s Next? ...................................... 83
7. Extending Vagrant with Plug-Ins ................... 85
Extensible Features ............................... 85
Managing Vagrant Plug-Ins ......................... 86
Plug-In Development Basics ........................ 87
Plug-In Definition ............................. 87
Plug-In Components ............................. 89
Error Handling ................................. 90
Vagrant Internals .............................. 91
A Basic Plug-In Development Environment ........... 91
Developing a Custom Command ....................... 94
Component ...................................... 94
Implementation ................................. 95
Working with the Virtual Machine ............... 96
Working with Multimachine Environments ......... 99
Parsing Command-Line Options .................. 100
Adding New Configuration Options ................. 101
Component ..................................... 101
Implementation ................................ 102
Accessing the Configuration ................... 103
Configuration Merging ......................... 104
Validation .................................... 107
Adding a Custom Provisioner ...................... 107
Component ..................................... 108
Implementation ................................ 108
Provisioner Configuration ..................... 110
Configuring the Machine ....................... 112
Modifying Existing Vagrant Behavior .............. 113
Component ..................................... 113
Implementation ................................ 114
Useful Keys in the Action Environment ......... 116
Learning More ................................. 117
Other Plug-In Components ......................... 118
Packaging the Plug-In ............................ 118
A. Vagrant Environmental Variables .................. 121
B. Vagrant Configuration Reference .................. 125
C. Troubleshooting and Debugging .................... 133
Index ............................................... 135
Список книг
Mitchell Hashimoto - Vagrant: Up and Running - 2013 (155, ISBN 978-1-449-33583-0), PDF (eBook)
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error