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.

ความคิดเห็น • 41

  • @VasyChristmas
    @VasyChristmas 2 หลายเดือนก่อน

    Easy to understand, very laconic and nice timbre of the voice. Thank you, good sir.

  • @ErisBeatsmusic
    @ErisBeatsmusic 3 ปีที่แล้ว +5

    This is best example I understood so far. Keep it up.

  • @christianlempa
    @christianlempa  3 ปีที่แล้ว

    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

  • @silasschmidt7852
    @silasschmidt7852 3 ปีที่แล้ว +1

    Geil, darauf habe ich gewartet. Danke dafür. :)
    Tolles Video und wie immer eine tolle Erklärung.
    Weiter so!

  • @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.

  • @JethroYSCao
    @JethroYSCao 3 ปีที่แล้ว +1

    Nice video, and your channel is great overall too.

  • @guilhermerodriguesdesousa5781
    @guilhermerodriguesdesousa5781 3 ปีที่แล้ว +6

    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

  • @gotbletu
    @gotbletu 3 ปีที่แล้ว

    lols i digg the 'itprofessional' chilling up there

  • @khalidelgazzar
    @khalidelgazzar 3 ปีที่แล้ว

    Thanks .. great video

  • @Alain9-1
    @Alain9-1 6 หลายเดือนก่อน

    Thank you

  • @alfathmuqoddas6986
    @alfathmuqoddas6986 11 หลายเดือนก่อน

    so freaking cool!

  • @ahmadpoorgholam8964
    @ahmadpoorgholam8964 2 ปีที่แล้ว

    You are a great guy

  • @GorkemYildirim
    @GorkemYildirim 3 ปีที่แล้ว

    Very cool indeed

  • @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 😁

  • @sanchitghule7343
    @sanchitghule7343 3 ปีที่แล้ว

    Hi
    Which keybord you are using?

  • @xx482
    @xx482 2 ปีที่แล้ว

    thanks
    a lot

  • @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?

  • @jefferyasamani4685
    @jefferyasamani4685 3 หลายเดือนก่อน

    how about provisioning centos 07 server??

  • @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

  • @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 ?

  • @shaidsk2578
    @shaidsk2578 2 ปีที่แล้ว

    😍❣️

  • @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  ปีที่แล้ว +1

      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 :)

  • @RaFaeLSanTaNaperfil
    @RaFaeLSanTaNaperfil 3 ปีที่แล้ว +1

    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