Difference between revisions of "YAML"

From wikieduonline
Jump to navigation Jump to search
Line 44: Line 44:
 
* {{YAML}}
 
* {{YAML}}
 
* {{XML}}
 
* {{XML}}
* <code>[[docker-compose.yml]]</code>
 
  
 
 
[[Category:Cloud computing]]
 
 
[[Category:Software development]]
 
[[Category:Software development]]
[[Category:Server administration]]
 
  
 
{{CC license}}
 
{{CC license}}
 
Source: https://en.wikiversity.org/wiki/DevOps/YAML
 
Source: https://en.wikiversity.org/wiki/DevOps/YAML

Revision as of 18:03, 4 August 2022

YAML (YAML Ain't Markup Language) (2001) is a human-readable data serialization language.

Basic YAML file example with one record:

# An employee record
martin_smith:
    name: Martin Smith
    job: Developer
    skill: Elite

Basic YAML file example with two record:

# My employee records
# An employee record
- martin_smith:
    name: Martin Smith
    job: Developer
    skill: Elite

# An employee record
- Thomas_Edisson:
    name: Tomas Eddison
    job: Developer
    skill: Basic

Install utilities

Activities

  1. Write a YAML file and test it with yq: yq r your_new_yaml_file.yml[1]
  2. Read 10 YAML tips for people who hate YAML https://www.redhat.com/sysadmin/yaml-tips. (yamllint)
  3. Read https://en.wikipedia.org/wiki/Comparison_of_data-serialization_formats
  4. Read stackoverflow YAML related questions: https://stackoverflow.com/questions/tagged/yaml?tab=Votes

Related terms

See also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikiversity.org/wiki/DevOps/YAML

Advertising: