Saltstack
{% if grains['os'] != 'FreeBSD' %}
tcsh:
pkg:
- installed
{% endif %}
motd:
file.managed:
{% if grains['os'] == 'FreeBSD' %}
- name: /etc/motd
{% elif grains['os'] == 'Debian' %}
- name: /etc/motd.tail
{% endif %}
- source: salt://motd
- This is an sls file. It's not even YAML
- It runs through Jinja templating first, and the result is - hopefully
- valid YAML
- Many people think this is all part of YAML
- Intro on their
Website:
"However, Salt uses a small subset of YAML that maps over very commonly used
data structures, like lists and dictionaries. It
is the job of the YAML renderer to take the YAML data structure and compile
it into a Python data structure for use by Salt."