Skip to content

Venthe/Personal-Development-Pipeline

Repository files navigation

Personal Development Pipeline

Learn-along exercise in creating enterprise-grade infrastructure.

Notes

This is an evergreen exercise, it SHOULD NOT be used in production; Moreover licenses for specific software should be followed.

Providing with vagrant

WSL2 or linux

Vagrant

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

Ansible

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

Warning! There is a bug in WSL2 and VAGRANT_EXPERIMENTAL="disks"

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

DNS

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

Authors

  • Jacek Lipiec - Initial work - Venthe

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published