Vagrant
Aller à la navigation
Aller à la recherche
Vagrant : déploiement de VMs
Extrait du livre "Ansible for Devops":
1. Download and install Vagrant and VirtualBox (whichever version is appropriate for your OS): - Download Vagrant40 - Download VirtualBox41 (when installing, make sure the command line tools are installed, so Vagrant work with it) 2. Create a new folder somewhere on your hard drive where you will keep your Vagrantfile and provisioning instructions. 3. Open a Terminal or PowerShell window, then navigate to the folder you just created. 4. Add a CentOS 7.x 64-bit ‘box’ using the vagrant box add 42 command: vagrant box add geerlingguy/centos7 (note: HashiCorp’s Atlas43 has a comprehensive list of different pre- made Linux boxes. Also, check out the ‘official’ Vagrant Ubuntu boxes on the Vagrant wiki44. 5. Create a default virtual server configuration using the box you just downloaded: vagrant init geerlingguy/centos7 6. Boot your CentOS server: vagrant up