Vagrant Virtual Development Environment Cookbook

By Chad Thompson

Over 35 hands-on recipes that will help you grasp Vagrant, and create and deal with digital computational environments

About This Book

  • Configure and installation software program to Vagrant machines with scripts and configuration administration tools
  • Manage and proportion Vagrant improvement environments with cloud
  • Packed with functional real-life examples to enhance latest operating systems

Who This e-book Is For

If you're a software program developer or administrator who needs to create easy, reusable environments utilizing Vagrant, this ebook is the ideal selection for you. even if you're a process administrator with huge event in virtualization or a developer wishing to create improvement scripts for cloud deployment, you will discover easy-to-follow recipes and methods during this ebook that would let you create strong and reproducible digital environments.

What you are going to Learn

  • Define unmarried and a number of digital laptop Vagrant environments
  • Provision Vagrant environments in a constant and repeatable demeanour with a variety of configuration administration tools
  • Control strong cloud assets from a computing device improvement environment
  • Use Vagrant to put up and percentage improvement environments
  • Start and extend your Vagrant setting with neighborhood resources
  • Share assets on a improvement laptop with a digital Vagrant environment

In Detail

Vagrant helps you to use virtualization and cloud applied sciences to energy swifter, effective, and sharable improvement environments. It duplicates the improvement setting to permit clients to simply percentage and mix facts on assorted machines and in addition looks after defense concerns.

Each recipe of Vagrant digital improvement atmosphere Cookbook offers useful details on utilizing Vagrant to unravel particular difficulties and extra assets that can assist you research extra in regards to the concepts demonstrated.

With recipes starting from getting new clients accustomed to Vagrant, to establishing multimachine environments, it is possible for you to to increase universal venture varieties and recommendations with the aid of this functional guide.

Show description

Preview of Vagrant Virtual Development Environment Cookbook PDF

Similar Nonfiction books

Pearl Lowe's Vintage Craft: 50 Craft Projects and Home Styling Advice

Classic clothier Pearl Lowe exhibits you the way to create the real classic glance on your own residence together with her specialist recommendation and easy craft tasks. This useful consultant, entire with inspiring images contains . .. * 50 step by step craft tasks * stitching, portray, upcycling and crafting secrets and techniques * A how-to advisor to sourcing your individual classic treasures * And Pearl's little black e-book of outlets and providers An absolute must-have for fans of classic and all issues hand-crafted.

SAP® NetWeaver Portal Technology: The Complete Reference

Your Hands-on consultant to SAP NetWeaver Portal TechnologyMaster SAP NetWeaver Portal with the main finished, step by step reference on hand at the complete portal implementation existence cycle. Written by way of SAP architect Rabi Jay, this e-book offers every thing you want to plan, layout, set up, configure, and administer SAP NetWeaver Portal, together with SAP NetWeaver software Server Java.

Cloud Computing, A Practical Approach

"The promise of cloud computing is right here. those pages give you the 'eyes broad open' insights you must rework your enterprise. " --Christopher Crowhurst, vp, Strategic expertise, Thomson ReutersA Down-to-Earth consultant to Cloud ComputingCloud Computing: a pragmatic strategy offers a accomplished examine the rising paradigm of Internet-based company functions and prone.

Database Concepts (7th Edition)

For undergraduate database administration scholars or enterprise execs   Here’s functional aid for knowing, growing, and dealing with small databases—from of the world’s major database specialists. Database techniques by way of David Kroenke and David Auer provides undergraduate database administration scholars and company execs alike a company figuring out of the ideas at the back of the software program, utilizing entry 2013 to demonstrate the innovations and methods.

Additional resources for Vagrant Virtual Development Environment Cookbook

Show sample text content

For this instance, the Vagrantfile will seem like this: # -*- mode: ruby -*# vi: set ft=ruby : # Vagrantfile API/syntax model. do not contact except you recognize what you are doing! VAGRANTFILE_API_VERSION = "2" CONFIG = "#{File. dirname(__FILE__)}/aws/config. rb" if dossier. exist? (CONFIG) require CONFIG finish Vagrant. configure(VAGRANTFILE_API_VERSION) do |config| config. vm. outline "web" do |web| net. vm. field = "dummy" net. vm. supplier "aws" do |aws, override| override. ssh. username = "ubuntu" override. ssh. private_key_path = "#{File. dirname(__ FILE__)}/aws/vagrantkey. pem" aws. access_key_id = $aws_options[:access_key] aws. secret_access_key = $aws_options[:secret_key] aws. keypair_name = $aws_options[:ec2_keypair] aws. area = $aws_options[:region] aws. ami = $aws_options[:ami_id] aws. instance_type = $aws_options[:instance_type] aws. subnet_id = $aws_options[:subnet_id] aws. associate_public_ip = "true" aws. security_groups = $aws_options[:security_group] aws. tags = { 'Name' => 'Vagrant net Server', } finish finish finish 154 Chapter 6 four. With this Vagrantfile in position (and the configuration variables in our config. rb file), begin the surroundings with the command: vagrant up net –provider=aws this could begin the Vagrant surroundings. If every thing begins thoroughly, the startup should still go out with a last message approximately syncing the vagrant folder from the neighborhood procedure to the hot AWS computing device. five. determine for you to entry this AWS example with either vagrant ssh internet to entry the example with SSH and through verifying that an example is operating within the AWS EC2 console: 6. if you find yourself comprehensive with the example, make sure to take it down with the vagrant smash command to prevent incurring fees to run an on-demand example in EC2. After destroying the example with Vagrant, it may seem within the AWS console as terminated. Halting also will cease the example for a later restart with no incurring the entire fee of working EC2 situations. the way it works… As we have seen within the earlier sections, there could be very a little bit setup paintings with AWS to exploit Vagrant machines, yet this setup permits us to release digital cases securely. Our Vagrantfile does include a couple of new goods that require slightly clarification. one hundred fifty five Vagrant within the Cloud Saving configuration information open air the Vagrantfile one of many basic additions to our Vagrantfile is the inclusion of an exterior dossier: a configuration dossier that holds particular account info. Storing those form of information in an exterior dossier enables you to hold those information exclusive, whereas whilst it permits you to proportion your Vagrantfile. together with this dossier is completed with a Ruby kind comprise assertion: CONFIG = "#{File. dirname(__FILE__)}/aws/config. rb" if dossier. exist? (CONFIG) require CONFIG finish together with this dossier permits the most Vagrant dossier to entry the main points within the $aws_config item that's outlined within the config. rb dossier. Overriding Vagrantfile defaults within the Vagrantfile, we extensively utilized the concept that of overriding Vagrant defaults. during this instance, we needed to create an AWS computing device that makes use of the defaults for the EC2 laptop snapshot (AMI) instead of Vagrant defaults.

Download PDF sample

Rated 4.83 of 5 – based on 48 votes