postgres:
  minor_version: 9.5

{%- if grains['os'] == 'Debian' %}
postgres:
{%- if grains['oscodename'] == 'jessie' %}
  minor_version: 9.5
{%- else %}
  minor_version: 9.6
{%- endif %}
{%- endif %}

Set PostgreSQL version correctly for Debian Stretch/Sid
Set PostgreSQL version correctly for Debian Stretch/Sid

malept/dev-environment,malept/dev-environment,malept/dev-environment