Learn SALTSTACK with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Simple SaltStack State
# saltstack/demo.sls
nginx:
pkg.installed: []
service.running:
- enable: true
A simple SaltStack state to install and start Nginx on a server.