One of the core features of Salt is its configuration management system. By writing end-state configurations called states and formulas, we can craft reusable configuration files that we can use to both provision and enforce state across our server fleet. In this lab, we’ll begin our Salt configuration management journey by writing an Apache formula.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create Installation State
Create a Salt state that will install the apache2 package.
- Create Configuration State
Create a state that will pull Apache’s configuration under Salt’s enforcement. Ensure the Apache service restarts when changes are made to the configuration.