Chef Flashcards

1
Q

What is configuration management? What are the benefits of configuration management?

A

Configuration management covers a set of practices for managing hardware, software, and infrastructure. Configuration management ensures consistent environments when managing large infrastructures in teams of multiple system administrators. Configuration management provides systematic and autonomous approaches to managing infrastructure.

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

What is Chef?

A

“Chef is an automation platform that configures and manages your infrastructure whether it is on-premises or in the cloud. You can deploy to the infrastructure type that makes the most sense for your business. You can use Chef to speed up application deployment, even creating a continual deployment pipeline. The key to Chef’s power is that it turns infrastructure into code. Infrastructure as code means that your computing environment has some of the same attributes as your application: ◦ Your infrastructure is versionable. ◦ Your infrastructure is repeatable. ◦ Your infrastructure is testable. “

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

What is a recipe?

A

A recipe is a collection of resources that describes a particular configuration or policy. A recipe describes everything that is required to configure part of a system. Recipes do things, such as install and configure software components, manage files, deploy applications, and execute other recipes.

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

What is a resource?

A

A resource represents a piece of infrastructure and its desired state, such as a package that should be installed, a service that should be running, or a file that should be generated.

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

What is a cookbook? How is it different from a recipe?

A

A recipe is a collection of resources, and typically configures a software package or some piece of infrastructure. A cookbook groups together recipes and other information in a way that is more manageable than having just recipes alone.

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

What is the difference between chef-client and chef-apply commands?

A

chef-apply applies a single recipe; chef-client applies a cookbook.

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

What is a Chef server? What are the ways to setup a Chef server?

A

The Chef server acts as a hub for configuration data. The Chef server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered node that is being managed by the chef-client. Nodes use the chef-client to ask the Chef server for configuration details, such as recipes, templates, and file distributions. You can install an instance on your own infrastructure or use hosted Chef

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

What is the purpose of the Chef Starter Kit?

A

The Starter Kit provides certificates and other files that enable you to securely communicate with the Chef server.

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

What is a node?

A

A node represents a server and is typically a virtual machine, container instance, or physical server – basically any compute resource in your infrastructure that’s managed by Chef.

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

How can you bootstrap a node?

A

knife bootstrap (ip_address) (options…)

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

What is the knife command?

A

Knife command enables you to communicate with the Chef server (i.e. bootstrapping nodes, uploading cookbooks, etc)

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

What is a run-list?

A

The run-list lets you specify which recipes to run, and the order in which to run them. The run-list is important for when you have multiple cookbooks, and the order in which they run matters.

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

What information do you need in order to bootstrap a node?

A

“You need your node’s host name or public IP address and a user name and password you can log on to your node with. Alternatively, you can use key-based authentication instead of providing a user name and password. “

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

What happens during the bootstrap process?

A

During the bootstrap process, the node downloads and installs chef-client, registers itself with the Chef server, and does an initial checkin. During this checkin, the node applies any cookbooks that are part of its run-list.

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

How can you check if the bootstrap process was successful?

A

“◦ The Chef management console ◦ knife node list ◦ knife node show”

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

How do you apply an updated cookbook to your node?

A

“First, update the cookbook using ◦ knife cookbook upload () Then, you can either: ◦ Run knife ssh from your workstation. ◦ SSH directly into your server and run chef-client.”

17
Q

What is the Chef Supermarket?

A

You can get reusable cookbooks that are written and maintained by the Chef community from the Chef Supermarket at https://supermarket.chef.io.