Geavanceerd
Zoeken inSamenvattingen
Zo zoek je
  • Woorden vinden lestitels, tekst en code. Filter op soort (gidsen, cursussen, programma's, boeken) of blijf in dit boek.
  • book:rhcsa en ch:8 maken de zoektocht kleiner; #code vindt een woord alleen in commando's van de lessen.
  • "twee woorden" vindt precies die zin.
  • Gewone woorden vinden namen, teksten en voorbeelden.
  • ↑ ↓ bewegen · Enter openen · Esc sluiten · / zoeken
Probeer:

Cursus 3Naam in de cursus: Manara DevOps 3 - Infrastructure as Code

Infrastructure as Code

Course 3 of 6 in the DevOps path on Manara. The idea of Infrastructure as Code.

Notitie

My result — Tasks in this course: all done (7/7); Module review quizzes: 100% (each module); Path progress: all 53 tasks of the 6 courses done.

Course page: Manara

  • 7 Lessen
  • 2 Commando's
  • 2 Labs

Dit deel is nog niet vertaald. Je ziet de Engelse tekst.

$ als gewone gebruiker# als root (of met sudo)

3.1

Introduction to Infrastructure as Code (IaC)

IaC means you write infrastructure in code files.

  • The code describes servers, networks, and other resources.
  • A tool reads the code and creates the real resources.
  • The files live in a repository, so you can review them.
  • The same code gives the same result every time.
  • Benefits: faster speed, more consistency, less manual work.
  • Challenge: you must learn a coding language or tool.
  • Challenge: security review works in a new way.
  • Challenge: monitoring must cover the new resources.
  • The video "What is the concept of IaC?" has no text here.

In more detail

  • Before IaC, a person clicks in a cloud console. Steps are easy to forget.
  • With IaC, the file is the truth. You can rebuild the same setup any time.
  • Consistency means environments look alike: dev, test, and prod.
  • Speed comes from one command that builds a full environment.
  • Less management overhead means fewer long manual checklists.
  • Coding language dependency: the team must learn the language of the tool.
  • Security review used to look at running systems. Now you scan the code too.
  • Monitoring must watch both the resources and the code that changes them.

3.3

Automating Infrastructure Deployment

Automation means a machine runs the steps.

  • A pipeline takes code from review to real resources.
  • First step: plan. A person reviews the plan.
  • Second step: apply. The tool builds the resources.
  • Environments keep dev, test, and prod apart.
  • Automation cuts cost and human error.
  • Automation scales. The same code builds many environments.
  • Guardrails stop unsafe changes before they run.
  • Every change should be logged.
  • Test your infrastructure code, like app code.

In more detail

  • The reading covers cloud automation, its tools, and its techniques.
  • Benefits named: efficiency, lower cost, and scalability.
  • Complex clouds have many parts. Hands cannot track them all.
  • A pipeline runs: check the code, plan, policy check, approval, apply.
  • An approval gate gives a person a last look at production.
  • Policy as code blocks open storage or public networks.
  • Drift detection runs the plan again and shows what changed.
  • To roll back, keep the old code and apply it again.

3.4

Infrastructure as Code (IaC) Quiz

This module is a quiz. It tests the whole course.

  • It asks what IaC is and why teams use it.
  • It asks about benefits and challenges.
  • It asks you to match a tool to its job.
  • It asks how automation makes deployment safer.
  • Read lessons 01 to 03 again before you start.
  • Read each question twice. Watch words like "not" and "best".
  • Remove clear wrong answers first.

In more detail

  • The module has one quiz task. It has no video and no reading.
  • Its description says: "Test your knowledge on the Infrastructure as Code (IaC) course."
  • Expect questions about code files, version control, and repeatable builds.
  • Expect questions about Terraform, Ansible, Puppet, and Chef.
  • Expect questions about speed, consistency, and less manual work.
  • Expect questions about coding language dependency and security review.
  • If a question looks like a trick, look for the simple idea behind it.
  • Write down your score and the topics you missed.

3.5

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
AgentlessA tool that works over SSH with no agent on the server.
AnsibleAn agentless tool that configures servers.
Approval gateA step that waits for a person.
ChefA configuration tool that uses recipes and cookbooks.
Cloud automationUsing tools to run cloud tasks.
CloudFormationThe AWS service for IaC templates.
DeclarativeYou say what you want, not how to do it.
Drift detectionFinding where real resources differ from code.
DriftThe real system no longer matches the code.
EnvironmentA separate copy for dev, test, or prod.
GuardrailA rule that stops unsafe changes.
HCLThe language of Terraform files.
IdempotentRun it again and nothing new happens.
ImperativeYou list the steps to run, one by one.
Infrastructure as Code (IaC)Writing infrastructure as code files.
InventoryThe list of hosts Ansible manages.
OrchestrationPutting many automatic steps in order.
OverheadExtra work that does not add value.
PipelineThe automatic steps from code to resources.
PlaybookA YAML file of Ansible tasks.
Policy as codeRules written as code and checked by a machine.
ProviderA plugin that connects Terraform to a platform.
ProvisioningCreating real resources from a plan.
PuppetA configuration tool with agents and manifests.
RollbackGoing back to the last good version.
ScalabilityThe power to grow without more manual work.
State fileA record of what the tool already built.
TemplateA code file that describes resources.
TerraformAn IaC tool that builds cloud resources.
Version controlKeeping every change of a file in history.

3.6

Check yourself

Answer each question first, then open it to check the answer.

1What is Infrastructure as Code in one short sentence?

It is infrastructure that you describe in code files.

2Name two benefits of IaC.

Faster speed and consistency. Less manual work is also correct.

3Name two challenges of IaC.

Learning a coding language, and changing the security review process.

4What is the main job of Terraform?

It builds and changes cloud resources from code.

5How is Ansible different from Puppet and Chef?

Ansible is agentless. Puppet and Chef need an agent on each server.

6Why is the state file important?

It links the code to real resources, so the tool knows what it built.

7Why does automation save money?

It removes manual work and stops small mistakes that cost time.

8What does an approval gate do?

It waits for a person to say yes before the change runs.

9Why do we keep dev, test, and prod in separate environments?

So a test change cannot break real users or real data.

10Which is a benefit of IaC: same result every time, or more manual work?

Same result every time. IaC reduces manual work.

11Which is a challenge of IaC: security review in a new way, or slower builds?

Security review in a new way. IaC usually makes work faster, not slower.

12Which tool builds cloud resources from HCL files?

Terraform.

Oefenen

Alle commando's in dit hoofdstuk