Vagrant LPIC 701 Flashcards

Learn Vagrant topic in LPI certification

1
Q

Remove outdated versions of vagrant boxes

A

vagrant box prune

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

3 ways to select a Vagrant provider

A
  • flag ad hoc: “ –provider”
  • Environment var: “VAGRANT_DEFAULT_PROVIDER”
  • In Vagrantfile: “config.vm.privider
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Command with flags to create a minimal Vagrantfile, without comments:

A

vagrant init -m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Provision shell script in Vagranfile:

A

web.vm.provision “shell” do |shell|
shell.inline = “apt-get update -y”
end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Init Vagranfile with a specific Box

A

vagrant init hashicorp/precise64

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List Vagrant boxes

A

vagrant box list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name of the file that contains vagrant box information (inside the .box file)

A

metadata.json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly