© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. MallettSalt Openhttps://doi.org/10.1007/978-1-4842-7237-4_7

7. Writing Salt State Files

Andrew Mallett1  
(1)
Peterborough, UK
 

Having gained the mastery of YAML files, we (and by “we” I mean “you”) can begin looking at creating Salt States and having repeatable configurations. Salt State files have the SLS extension as we have already seen when configuring vim.

Predominantly, the focus in this chapter will be on these main areas:
  • State vs. flow

  • Rendering engines and the default Jinja|YAML

  • Installing common software packages

  • Managing services with State files

  • Delivering and editing files using Salt

  • Using Salt Formulas

  • Syntax checking State files

State vs. Flow

The ...

Get Salt Open: Automating Your Enterprise and Your Network now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.