Description
In this course, you will :
- Learn how to write proper Puppet code quickly to automate the day-to-day configuration of your IT infrastructure.
- You'll begin by becoming acquainted with Puppet.
- Learn how to make decisions with conditionals, how to use complex variables, and how to integrate Forge modules.
- Investigate various variables and templates.
- You will be able to write code in Puppet DSL by the end of this course.
Syllabus :
1. Understanding Infrastructure as Code
- Infrastructure As Code
- The Need For Configuration Management
- Why Puppet?
- The Resource Abstraction Layer
- The Puppet Agent Run Lifecycle
- Idempotence
2. Building Your Practice Lab
- Centos and Workstation Pro
- Remote Access with SSH
- Editing Text Files with Nano
- Editing Text Files with VI
- Prepping the Base VM
- Cloning a VM
- Hostname and Static IP
- Install the Puppet Server
- Install the Puppet Agent
- Sign the Agent Certificate
- Run Remote Commands with Bolt
3. Learning the Target Application
- Setup the App VMS
- App Server Install Packages
- App Server Edit Config Files
- App Server Enable Service
- DB Server
- Testing the Application
4. Writing Manifests and Classes
- Your First Manifest
- Your First Module
- Scoped Classes
- Refactoring the Module
- Module Summary
- Using The Documentation
5. Managing the Big Three: Packages, Files, and Services
- The Package Resource
- The File Resource
- The Service Resource
- Resource Ordering
- Testing Relationships
6. Using Variables and Templates
- Creating a Template
- Using a Template
- Solution
- Parameterizing a Class
7. Using Facts and Conditionals
- Using the Facts Hash
- Challenge
- Using Conditionals
- Looping Through a Hash
8. Simplifying Your Deployments
- Installing Modules from the Forge
- Incorporating the Postgres Module
- Incorporating the Firewalld Module
- Connecting the Database
- Roles and Profiles
- Placing Classes in Profiles
- Placing Profiles in Roles
- Classifying Nodes Through Roles
- Welcome to Hiera
- Looking up to Hiera
- Building the Data Sources
- Testing Hiera