Vagrant LPIC 701 Flashcards
Learn Vagrant topic in LPI certification
1
Q
Remove outdated versions of vagrant boxes
A
vagrant box prune
2
Q
3 ways to select a Vagrant provider
A
- flag ad hoc: “ –provider”
- Environment var: “VAGRANT_DEFAULT_PROVIDER”
- In Vagrantfile: “config.vm.privider
3
Q
Command with flags to create a minimal Vagrantfile, without comments:
A
vagrant init -m
4
Q
Provision shell script in Vagranfile:
A
web.vm.provision “shell” do |shell|
shell.inline = “apt-get update -y”
end
5
Q
Init Vagranfile with a specific Box
A
vagrant init hashicorp/precise64
6
Q
List Vagrant boxes
A
vagrant box list
7
Q
Name of the file that contains vagrant box information (inside the .box file)
A
metadata.json