Vagrant environment for Awx and Gitlab.
Download and install vagrant from the official page. Install the vagrant-hosts plugin:
~ $ vagrant plugin install vagrant-hostsCreate all the machines by running
~ $ vagrant upTo start awx run
~ $ vagrant up awxOpen the browser at http://192.168.50.10 and wait until the migration is done.
After the migration is over the login page will appear, default username and password are admin password and you are done!
Note: The Gitlab installation can take some time
To start gitlab and the runner run
~ $ vagrant up gitlab runner-1After Gitlab started you can find at http://192.168.50.11, set the new password, the admin username is root. For registering the runner check the official documentation, here.
Note: the import and the creation of the virtual machine may take some time
To use windows you need additional steps: download the official vagrant box from the microsoft website and import the vagrant box (renamed windows10.box):
~ $ vagrant box add Win10.box --name windows10Install the additional vagrant plugin for winrm:
~ $ vagrant plugin install winrm winrm-fsStart the windows vm with
~ $ vagrant up target-windows-1To connect with ansible to a windows machine you need the following dependencies:
~ $ pip install pywinrmTo execute commands inside the vm you can use the winrm module:
~ $ vagrant winrm --shell powershell --command "Get-NetIPAddress"
