Learn › Salt Configuration Management
State Files
Write declarative YAML state files to define the desired state of your infrastructure. Install packages, manage files, and control services.
Labs in this module
- First State - Create /srv/salt, write your first .sls state file, and apply it to a minion.
- File States - Use file.managed to deploy configuration files from the Salt master to minions.
- Service States - Combine pkg, file, and service states with the watch requisite for automatic service restarts.
- Top File - Create top.sls to assign different states to different minions. Run state.highstate.