Create lab environments using Vagrant, Packer and Ansible.
To get started run the following from an elevated command prompt in a suitable folder:
curl -LJ -o .\install.bat https://raw.githubusercontent.com/nconnolly1/lab/main/scripts/install.bat
.\install.batThe code can them be extracted with:
git clone https://github.com/nconnolly1/lab
cd labAnsible is not officially supported on Windows. It can be run under Cygwin, but according to the Ansible website this is not recommended for production use.
Ansible is supported on the Windows Subsystem for Linux (WSL 1) which can be setup from an elevated PowerShell prompt on Windows Server using:
.\scripts\install\install-wsl-server.ps1
wsl bash -c ./scripts/install/install-ansible.shIf WSL is not available, Ansible can be install under Cygwin from an elevated command prompt with:
.\install\install-cygwin.batSo setup the environment in order to be able to run Vagrant or Packer, run:
.\env.batThe Kubernetes Cluster is based on the instructions in a Kubernetes Blog post.
Installation is based on the blog Quick Ansible Setup