Vagranrt Flashcards

1
Q

Vagrant

A

Used for building and managing virtual machine environment, DevProd parity.
Provisioned on top of provider. Such as shell scn, Chef, Puppet.
OoB: VirtualBox, Hyper-V, Docker.
Custom providers supported.

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

vagrant init

A
Initializes current directory to be vagrant environment by creating a vagrant file.
-f: force overwrite of vagrant file.
-m: minimal file generation.
—output : output path.
—template : template path.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

vagrant up

A

Creates and configures guest machines to Vagrant file.
-h: help
—provision: force provisioner to run
—provision-with: force given provisioners to run
—destroy-on-error: Destroy machine if fatal error occurs. Default.
—parallel: enable/disable parallelism.
—install-provider: attempt to install provider if not installed. Default.

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

vagrant destroy

A

Stops running and destroys all resources created.
-f: destroy without confirmation.
—parallel: enables/disables, but automatically forces.

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

vagrant validate

A

Validates Vagrant file.

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

vagrant provision

A

Runs any configured provisioners.

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

vagrant reload

A

Runs vagrant halt and vagrant up.
—provision:
—provision-with:

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

vagrant ssh

A

ssh into Vagrant machine.

  • c: execute given command directly
  • p: plain. Authentication to user.
  • t: enables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

vagrant status

A

Output the status of all vagrant instances if not given name id.

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

vagrant halt

A

Attempt to shut down Vagrant.

-f: force shut down.

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

Vagrant file stuff

A

Repeat DO-1

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

vagrant ssh-config

A

Prints ssh info for host.

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

Boxfile

A

Package form for Vagrant environment. Documentation form in DO-1.

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

vagrant box

A

add: —clean
list: -i: info
outdated: —global
prune:
remove:
repackage: provide name provider and version to complete.
update: download and install new box, with no changes to running.

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

vagrant box prune

A
—dry-run:
—provider:
—name
-f
repackage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

vagrant box update

A

—box

—provider