yaml.adoc 503 B

12345678910111213141516171819202122
  1. [#entities-yaml]
  2. = YAML entity files
  3. YAML files are the default expected format, so you can use .yml, .yaml, or even .txt - as long as the file contains a valid yaml LIST, then it will be loaded.
  4. .`/etc/OliveTin/servers.yaml`
  5. [source,yaml]
  6. ----
  7. - name: server1
  8. state: started
  9. hostname: server1.example.com
  10. ip: 192.168.0.1
  11. - name: server2
  12. state: started
  13. hostname: server2.example.com
  14. ip: 192.168.0.2
  15. - name: server3
  16. state: stopped
  17. hostname: server3.example.com
  18. ip: 192.168.0.3
  19. ----