A set of Ansible scripts to create a CentOS 7 Linux VM with technical components
Option A: create a new VM for Windows
- Install Virtualbox
- Install Vagrant
- Install Kitty, a nice fork of putty
- If you have a Proxy: install Vagrant Proxy plugin with command
vagrant plugin install vagrant-proxyconfand define Windows environment variables VAGRANT_HTTP_PROXY, VAGRANT_HTTPS_PROXY and VAGRANT_NO_PROXY - Optionnaly define Windows environment variable CENTOS_MIRROR to your prefered CentOS mirror (fqdn)
- Download Vagrantfile from the repo and save it to a work directory
- Adapt the parameters in the header ot the file
- Optionnaly create SSH keys for Putty using Puttygen and save the public key as
key.pubin the work directory - Open a CMD prompt, go to the work directory, run
vagrant upand wait for VM creation process to complete. If the process stops atRunning: inline scriptit's likely due to an internet connection issue. - Optionnaly install VirtualBox guest additions with
vagrant vbguest - Connect with kitty to 192.168.56.2 (or whatever IP you specified in the file) with your Windows's username and either the private key file or the defaut password in Vagrantfile. This UNIX user has sudo access.
Option B: from an existing VM
- from root, curl -s https://raw.githubusercontent.com/hbraux/deploy/master/deploy.sh | bash -s USER PASS default.yml
The installation script deploy.sh supports the following Playbook and ansible roles to be provided as arguments with --tags xxx
- to be completed