Configuration file style guide#

To make a configuration file more reusable:

  • Use values from Pillar data, instead of hardcoding values.

  • Set sensible defaults, for example:

    {{ entry.uwsgi.get('max-requests', 1000) }}
    
  • Make values optional, for example:

    {%- if 'cheaper' in entry.uwsgi %}
    cheaper = {{ entry.uwsgi.cheaper }}
    {%- endif %}