© 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_6

6. Writing YAML Files

Andrew Mallett1  
Peterborough, UK

Creating Salt State files requires an understanding of YAML, and additionally, Salt Master and Salt Minion configuration files are also written in YAML, making it hard to avoid. This chapter is going to introduce you to formatting YAML documents and getting you started with the basics.

Predominately, the focus will be on these main areas:
  • YAML Ain’t Markup Language

  • Using online parsers to create YAML

  • Keys, lists, and dictionaries in YAML

  • Editing YAML documents using Nano

  • Editing YAML documents using Vim

  • Using graphical editors and IDEs (Integrated ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.