Automate your virtual lab environment with Ansible and Vagrant
ฝัง
- เผยแพร่เมื่อ 7 มิ.ย. 2024
- 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.
Easy to understand, very laconic and nice timbre of the voice. Thank you, good sir.
Thanks!
This is best example I understood so far. Keep it up.
Awesome, thank you!
Do you want to learn more about the fundamentals of Ansible and Vagrant?
Ansible tutorial: th-cam.com/video/uR1_hlHxvhc/w-d-xo.html
Vagrant tutorial: th-cam.com/video/sr9pUpSAexE/w-d-xo.html
Geil, darauf habe ich gewartet. Danke dafür. :)
Tolles Video und wie immer eine tolle Erklärung.
Weiter so!
Danke! :)
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.
Nice video, and your channel is great overall too.
Thank you buddy!
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
Thanks for sharing!
lols i digg the 'itprofessional' chilling up there
Thanks .. great video
Thanks bro
Thank you
You're welcome
so freaking cool!
You are a great guy
Thank you! 😀
Very cool indeed
Thanks 😊👍
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?
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
I haven't heard of it and haven't used it so far, to be honest 😁
Hi
Which keybord you are using?
thanks
a lot
Thank you, too ;)
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?
how about provisioning centos 07 server??
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
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 ?
Why not?
😍❣️
AMD processors are capable of nested virtualizations. Is this a limitation of Windows? I use a 1950x with multiple nested virtualizations.
Unfortuantely, yes. I think M$ said they're adding this in a newer version of Windows 10 and probably 11 as well.
I'm running nested virtyalization on windows 10 with Ryzen 5600H no problem
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? ;)
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 :)
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
plz did u find the solution !!!