2015-04-22 17:47:02 -05:00
|
|
|
{% import_yaml "postgres/defaults.yaml" as defaults %}
|
|
|
|
{% import_yaml "postgres/osmap.yaml" as osmap %}
|
2016-07-08 15:34:45 -05:00
|
|
|
{% import_yaml "postgres/codenamemap.yaml" as oscodenamemap %}
|
|
|
|
{% import_yaml "postgres/osfingermap.yaml" as osfingermap %}
|
2014-12-31 16:58:41 -05:00
|
|
|
|
2016-07-08 15:34:45 -05:00
|
|
|
{% set _postgres = salt['grains.filter_by'](
|
|
|
|
osmap,
|
|
|
|
grain='os_family',
|
|
|
|
merge=salt['grains.filter_by'](
|
|
|
|
oscodenamemap,
|
|
|
|
grain='oscodename',
|
|
|
|
merge=salt['grains.filter_by'](
|
|
|
|
osfingermap,
|
|
|
|
grain='osfinger',
|
|
|
|
merge=salt['pillar.get']('postgres', {})
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) %}
|
2015-04-22 17:47:02 -05:00
|
|
|
|
2016-07-08 15:34:45 -05:00
|
|
|
{% do defaults.postgres.update(_postgres) %}
|
2015-04-22 17:47:02 -05:00
|
|
|
|
2016-07-08 15:34:45 -05:00
|
|
|
{% set postgres = defaults.postgres %}
|