-
Notifications
You must be signed in to change notification settings - Fork 9
Vagrant and Ansible Test Scripts
Iman Saleh edited this page Dec 11, 2015
·
2 revisions
-
Download Vagrant:
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
-
Install Vagrant with this command:
sudo dpkg -i vagrant_1.7.2_x86_64.deb`
-
Do the following only on Intel-based machines, when you need to have a proxy:
sudo apt-get install libffi-dev sudo apt-get install build-essential vagrant plugin install vagrant-proxyconf
-
Install the plugin for LXC:
vagrant plugin install vagrant-lxc`
-
Install LXC itself:
sudo apt-get install lxc`
-
Install Ansible:
sudo apt-add-repository ppa:ansible/ansible sudo apt-get update -qq sudo apt-get install ansible
-
Clone the
platform-ansible
repository
- Make sure no machines with the role are up:
vagrant destroy zabbix-server
- Bring the machine with a specified role up:
vagrant up zabbix-server
- When changing scripts, reprovision the machine:
vagrant provision zabbix-server
- To debug the machine:
vagrant ssh zabbix-server