Vagrant History, Provider/Provisioner and the Vagrant File
2 hours 51 minutes
Hello. My name is Jasmine Jackson and our courses intro to vagrant. And this lecture is our introductory lecture on what is vagrant. Let's get started So the pre RECs For this course,
the student will need to know basic command line skills such as creating folders, listing directories, etcetera and basic virtualization skills such as opening, closing and starting a virtual machine.
So to give a bit of background on myself, my name is Jasmine Jackson. I have nine years of I t experience. Seven of those years have been information security. I have the following Certs g Sexy Watch GS sp Java
G Sick That certain is an introductory information security cert g wop is for Web application, penetration testing and G SSP Java is for secure programming in the Java programming language.
In my spare time, I like to go shopping as well as go to concerts and a fun fact about me. I own a raspberry pi and I love vintage video games. So if you look on the bottom right,
there's a gentleman holding a game controller
in the zone, and that's how I am when I'm playing my video games. I like the room to be dark as it creates a theater feel. I have surround sound, so it's great, and I'm just like this gentleman
directly in the zone when I'm playing my games
on the upper left picture is also me when I am doing bug bounty. So that is something that I am pursuing. And the upper left picture
shows how I am when I'm learning about bug bounties and information security
If you want to contact me, you can reach out to me on Twitter at the fluffy double 07
So let's start with our course for our cores. Intro to vagrant. There are supplementary materials. I have created labs for each lecture of the course, as I feel like this course will be best by. Doing so is great to listen to the
lectures, but I also feel like for you, Ted
actively learned vagrant. You need to play with the software you need to create vagrant machines, etcetera. So I have created labs for each lecture
in our course, so I hope you like it. The target audience for this course is Dev ops, engineers, developers or anyone wanting to learn vagrant and the learning objectives for this video are
learning the history of vagrant programming programming, languages that support vagrant, the times provision, er and provider and how it relates to vagrant and the importance of a vagrant file.
So let's begin. Before we start with learning the history of vagrant. I want to go over briefly the structure of the course. So, as I showed in the supplementary materials, I have created labs for each lecture of the course. As I said before,
I believe that you, the student, will learn best by actually
playing around with the vagrant software
I have also, in addition to the labs, I have the lectures which we're doing now, and I also have demos
which are short videos, demoing specific topics that relates to the given lecture.
So the reason why I have structured the course this way is because I'm a kinesthetic learner, meaning I learned by doing so. I feel like
the best way for you. The students who learned is by actually doing as well and
playing with vagrant. I know there are many different types of ways for people to learn auditory with, you know, listening visual with the lecture, which we're doing now
and kinesthetic as I am where you learn. By doing so, I want to cover as many learning styles as I can in the chorus, because I want this course to be very beneficial to anyone that's taking it. So
I really hope that you enjoy this course. The labs, the demos, the lectures
and less learn the history of a grin. So Vagrant was first started in January 2010 as a personal project by Mitchell Hashimoto. The first stable version was Vagrant Want Otto, and that was released in March 2012.
Has She Corp is the company that supports full time development of vagrant now and in version one by one
other virtualization software such as VM ware and Cave medium or kernel based virtual machines as well a server. Environments such as Amazon E C. Two,
now vagrant, is written and ruby, but it supports PHP Python, Java Sea sharp in Java script. So
if you want to learn Ruby, that's great. But you don't need to know it to actually use vagrant, because vagary it also supports other languages.
So provisions and providers
these terms vagrant use. So let me describe them so a provision is a tool that allows users to customise the configuration of their virtual environment.
An example of AH, provisions in our virtual box VM were in AWS.
A provider, on the other hand, is a service that allows vagrant to set up and create virtual environments. So an example of a provider are shell scripts shift and puppet, the vagrant foul.
So if there's nothing else that you learn in this course, and I hope that's not the case, but
if it is, I want you to know that the vagrant foul is the most important foul in vagrant, and I'm going to explain why
the vagrant foul is the configuration foul
that specifies to vagrant how you want your vagrant machine to be configured.
So we need to explain a few things
Looking on the right hand side. We have a sample vagrant file,
and if you notice online eight,
we have the line vagrant dot com figure the number to do config, so you may be wondering, OK, what does the number to stand for in this instance? Well, the number two specifies to vagrant to use of
updated version of a great vagrant, one down 1 to 2 Dato.
If you see in the vagrant file vagrant, I configure and the number one
that specifies to use an older version of a grill. Now, mind you, vagrant is backwards compatible. So if you use the number two, you can still execute vagrant one dato commands
on your vagrant machine because this backwards compatible.
Now you may be wondering, Well, can I combine the numbers such as 12 or to one? And unfortunately you cannot do that. You have to specify either one or two, and as you can see on lines for Through seven, which are common and out as they are green, it specifies
the number to invigorate. Dycom figure configures the
the configuration version, and it says we support older styles for backwards compatibility. Please don't change it unless you know what you're doing. So most times you would leave the configure number two, too. But if you know that you want to use an older version of a grit that you could change that to one.
But if you keep it to two, it is backwards compatible, so you can use
the updated vagrant commands as well as older vagrant commands. So now we have a quick quiz.
What are provisions? You? What are provisions? Use foreign vagrant A Creating virtual machines? Be creating scripts, See, allowing users to customise their virtual machines or D None of the above.
I would give you a couple of seconds and then I will come back with my answer.
Let's start now. And the answer is C
Provision allows for users to customise their virtual machines. So remember, provisions are
Virtual box in AWS. So the answer. So the answer is C so in summary in this video we discuss the history of vagrant provision in vagrant providers in vagrant. And we discussed the vague referral which again
is the most important foul
needed for vagrant as a specifies the configuration of your vagrant machine
and we have and of lecture, quiz. And the question is, what is the vagrant file used for A to figuring a vagrant machine? Be downloading virtual ization software? See downloading text editing software or D. None of the above.
I would give you a couple of seconds and then I will come with my answer. Let's start now
and the answer is Papa Bob,
I explained this during the video summary of
this lecture, but the vagrant file is used for configuring your vagrant machine.
So the answer is A
and our next lecture, I will show you how to download vagrant
our virtualization software. I'm using virtual box for this course, but you can use being where or any other virtualization software. And I also I'm using a Windows machines. So I have also downloaded the Commander Consul,
which is a council emulator that allows
when those users to execute limits commands. So I have downloaded that as well. But that's optional. You don't have to download it. I just downloaded it because I like using linens commands So I can't wait to see you in the next video. And I hope you have a good day bye.