Automate your virtual lab environment with Ansible and Vagrant

  Рет қаралды 34,796

Christian Lempa

Christian Lempa

Күн бұрын

I show you how you can easily automate a full lab environment containing multiple virtual machines using Vagrant and Ansible. #HomeLab #Ansible #Vagrant
DOCS: github.com/christianlempa/vid...
Vagrant tutorial: • Automated virtual mach...
Ansible tutorial: • Simple automation for ...
Vagrant Installation Releases: releases.hashicorp.com/vagrant/
Vagrant + Hyper-V: docs.microsoft.com/en-us/virt...
Vagrant Documentation: www.vagrantup.com/docs
Ansible Documentation: docs.ansible.com/
Follow me:
TWITTER: / christianlempa
INSTAGRAM: / christianlempa
DISCORD: / discord
GITHUB: github.com/christianlempa
PATREON: / christianlempa
MY EQUIPMENT: kit.co/christianlempa
Timestamps:
00:00 - Introduction
02:25 - How to install Vagrant and Ansible on Windows 10
09:16 - Example to provision an Ubuntu Server
14:25 - Provision the Ubuntu Server with Ansible to install Docker
----
All links with "*" are affiliate links.

Пікірлер: 41
@VasyChristmas
@VasyChristmas 2 ай бұрын
Easy to understand, very laconic and nice timbre of the voice. Thank you, good sir.
@christianlempa
@christianlempa 2 ай бұрын
Thanks!
@guilhermerodriguesdesousa5781
@guilhermerodriguesdesousa5781 3 жыл бұрын
Its more effective if you add the variables as follows: export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS=1 export PATH=$PATH:/mnt/c/Windows/System32 export PATH="$PATH:/mnt/c/ProgramData/Microsoft/Windows/Hyper-V" export VAGRANT_DEFAULT_PROVIDER=hyperv
@christianlempa
@christianlempa 3 жыл бұрын
Thanks for sharing!
@ErisBeatsmusic
@ErisBeatsmusic 3 жыл бұрын
This is best example I understood so far. Keep it up.
@christianlempa
@christianlempa 3 жыл бұрын
Awesome, thank you!
@olugbengaajayi5124
@olugbengaajayi5124 7 ай бұрын
Hey, thanks for the good job. I would like to see more on vagrant. Using vagrant as your lab for testing ansible simulation and stuffs like that.
@silasschmidt7852
@silasschmidt7852 3 жыл бұрын
Geil, darauf habe ich gewartet. Danke dafür. :) Tolles Video und wie immer eine tolle Erklärung. Weiter so!
@christianlempa
@christianlempa 3 жыл бұрын
Danke! :)
@JethroYSCao
@JethroYSCao 3 жыл бұрын
Nice video, and your channel is great overall too.
@christianlempa
@christianlempa 3 жыл бұрын
Thank you buddy!
@gotbletu
@gotbletu 3 жыл бұрын
lols i digg the 'itprofessional' chilling up there
@khalidelgazzar
@khalidelgazzar 3 жыл бұрын
Thanks .. great video
@christianlempa
@christianlempa 3 жыл бұрын
Thanks bro
@sirius4k
@sirius4k 2 жыл бұрын
I added the Vagrant env variables to .bashrc, I have Vagrant installed on Windows host, but I still get the cmd.exe error. I sourced the .bashrc file and then logged off and back in, but still no luck. Ideas?
@alexlerner8327
@alexlerner8327 3 жыл бұрын
Christian, I have watched your Vagrant and Ansible separate videos, and I have watched this one. What is Kitchen? How does it fit into Vagrant/Ansible ecostructure? Someone had installed Gitlab private repository on my laptop using vvagrant/ansible/kitchen and I was trying to "map" various files I am seeing against your videos. I understand now that I could have installed Gitlab using Ansible playbook directly. But I guess Kitchen "recipes" make it easier? THey are pre-packaged? THanks
@christianlempa
@christianlempa 3 жыл бұрын
I haven't heard of it and haven't used it so far, to be honest 😁
@alfathmuqoddas6986
@alfathmuqoddas6986 11 ай бұрын
so freaking cool!
@Alain9-1
@Alain9-1 6 ай бұрын
Thank you
@christianlempa
@christianlempa 6 ай бұрын
You're welcome
@sanchitghule7343
@sanchitghule7343 3 жыл бұрын
Hi Which keybord you are using?
@ahmadpoorgholam8964
@ahmadpoorgholam8964 2 жыл бұрын
You are a great guy
@christianlempa
@christianlempa 2 жыл бұрын
Thank you! 😀
@GorkemYildirim
@GorkemYildirim 3 жыл бұрын
Very cool indeed
@christianlempa
@christianlempa 3 жыл бұрын
Thanks 😊👍
@skitoxe4482
@skitoxe4482 3 жыл бұрын
Why not run both vagrant and ansible on a linux host with kvm as the hypervisor? Feels sort of contrived to run it in WSL no ?
@christianlempa
@christianlempa 3 жыл бұрын
Why not?
@bcm15
@bcm15 11 ай бұрын
I really need some help, I've searched all over internet and haven't foun a clue: When i do vagrant up my it stops at SSH authentification. it simply doesn't want to work from there. Any solution?
@tanuj05
@tanuj05 2 жыл бұрын
I am getting the below error, any idea how to fix this ? /opt/vagrant/embedded/gems/2.2.18/gems/vagrant-2.2.18/lib/vagrant/util/subprocess.rb:160:in `rescue in execute': Permission denied - /mnt/c/Windows/system32/powershell
@xx482
@xx482 2 жыл бұрын
thanks a lot
@christianlempa
@christianlempa 2 жыл бұрын
Thank you, too ;)
@christianlempa
@christianlempa 3 жыл бұрын
Do you want to learn more about the fundamentals of Ansible and Vagrant? Ansible tutorial: kzbin.info/www/bejne/q4OUkJuifd2pnsU Vagrant tutorial: kzbin.info/www/bejne/qaOcoYimiKaYrqc
@jefferyasamani4685
@jefferyasamani4685 2 ай бұрын
how about provisioning centos 07 server??
@juliancowell8485
@juliancowell8485 2 жыл бұрын
AMD processors are capable of nested virtualizations. Is this a limitation of Windows? I use a 1950x with multiple nested virtualizations.
@christianlempa
@christianlempa 2 жыл бұрын
Unfortuantely, yes. I think M$ said they're adding this in a newer version of Windows 10 and probably 11 as well.
@cdromuser1
@cdromuser1 Жыл бұрын
I'm running nested virtyalization on windows 10 with Ryzen 5600H no problem
@hawolex2341
@hawolex2341 Жыл бұрын
Is it posible to do this Vagrant to a remote server? Like when i sit on my linux laptop and have a Win server in the rack? Time for a new video? ;)
@christianlempa
@christianlempa Жыл бұрын
As far as I understand Vagrant is used for local workstations. I recently made a video about Terraform, that’s maybe what you’re looking for :)
@shaidsk2578
@shaidsk2578 2 жыл бұрын
😍❣️
@RaFaeLSanTaNaperfil
@RaFaeLSanTaNaperfil 3 жыл бұрын
Hi guys, I'm having problems when I run "Vagrant up", the following error appears: An error occurred while executing a PowerShell script. This error is shown below. Please read the error message and see if this is a configuration error with your system. If it is not, then please report a bug. Script: check_hyperv_access.ps1 Error: Get-ACL : Falha do método com código de erro inesperado 1. No \\wsl$\Ubuntu-20.04\opt\vagrant\embedded\gems\2.2.14\gems\vagrant-2.2.14\plugins\providers\hyperv\scripts\utils\Vagr antVM\VagrantVM.psm1:731 caractere:12 + $acl = Get-ACL -Path $Path + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Acl], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.GetAclCommand
@yasser-cifer8175
@yasser-cifer8175 2 жыл бұрын
plz did u find the solution !!!
Simple automation for all your Linux servers with Ansible
26:00
Christian Lempa
Рет қаралды 66 М.
Automated virtual machine deployment with Vagrant
20:28
Christian Lempa
Рет қаралды 53 М.
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН
顔面水槽をカラフルにしたらキモ過ぎたwwwww
00:59
はじめしゃちょー(hajime)
Рет қаралды 37 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 4,5 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 56 МЛН
Howto Provision Vagrant Virtual Machines with Ansible
32:36
theurbanpenguin
Рет қаралды 12 М.
Say Goodbye to Containers - Ephemeral Environments with Nix Shell
16:58
Crazy fast Kubernetes Automation with Terraform
26:23
Christian Lempa
Рет қаралды 92 М.
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 84 М.
Automate your Docker deployments with Ansible
20:32
Christian Lempa
Рет қаралды 87 М.
Ansible vs. Terraform vs. Vagrant: What's the difference?
3:10
Eye on Tech
Рет қаралды 7 М.
Using Ansible to automate your Laptop and Desktop configs!
1:08:27
Learn Linux TV
Рет қаралды 97 М.
Manage all your SSH servers with teleport
33:28
Christian Lempa
Рет қаралды 74 М.
Backup in Linux Servers - Docker Volumes, and Databases
22:43
Christian Lempa
Рет қаралды 74 М.
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН