© 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  
(1)
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 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.