Learn-along exercise in creating enterprise-grade infrastructure.
This is an evergreen exercise, it SHOULD NOT be used in production; Moreover licenses for specific software should be followed.
curl -O https://releases.hashicorp.com/vagrant/2.2.14/vagrant_2.2.14_x86_64.deb \
&& sudo dpkg -i vagrant_2.2.14_x86_64.deb \
&& rm vagrant_2.2.14_x86_64.deb
# Allow disks to be programatically changed by vagrant
echo 'export VAGRANT_EXPERIMENTAL="disks"' >> ~/.bashrc
# WSL2 Only
echo 'export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH="/mnt/f"' >> ~/.bashrc
echo 'export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"' >> ~/.bashrc
# echo 'export VAGRANT_DEFAULT_PROVIDER=hyperv' >> ~/.bashrc
. ~/.bashrc
sudo apt install python python3-pip --assume-yes
pip3 install ansible --user
# Add to bashrc to discover ansible
echo 'PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
# Set in /etc/wsl.conf I have the follow configuration
[automount]
enabled = true
root = /mnt/
options = "metadata,umask=22,fmask=11"
Restart-Service -Name "LxssManager"
then run ./bootstrap.sh
Vagrant up creates additional disks in directory /mnt/DRIVE_LETTER/... but places it in DRIVE_LETTER:\mnt\DRIVE_LETTER... and because of that it is not cleared with vagrant destroy
sudo systemctl status systemd-resolved.service
DISABLE DNSSEC:
sudo mkdir -p /etc/systemd/resolved.conf.d
sudo vim /etc/systemd/resolved.conf.d/dnssec.conf
enter:
[Resolve]
DNSSEC=false
sudo systemctl restart systemd-resolved
systemd-resolve –status
- Jacek Lipiec - Initial work - Venthe
This project is licensed under the MIT License - see the LICENSE.md file for details
- README based on PurpleBooth