Changeset View
Changeset View
Standalone View
Standalone View
roles/paas-docker/containers/postgresql.sls
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Salt — Provision Docker engine | # Salt — Provision Docker engine | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| # Project: Nasqueron | # Project: Nasqueron | ||||
| # Created: 2018-11-10 | # Created: 2018-11-10 | ||||
| # License: Trivial work, not eligible to copyright | # License: Trivial work, not eligible to copyright | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| {% set has_selinux = salt['grains.get']('selinux:enabled', False) %} | {% set has_selinux = salt['grains.get']('selinux:enabled', False) %} | ||||
| {% set containers = pillar['docker_containers'][grains['id']] %} | |||||
| {% for instance, container in containers['postgresql'].items() %} | {% for instance, container in pillar['docker_containers']['postgresql'].items() %} | ||||
| {% set image = salt['paas_docker.get_image']("library/postgres", container) %} | {% set image = salt['paas_docker.get_image']("library/postgres", container) %} | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Home directory | # Home directory | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| /srv/{{ instance }}/postgresql: | /srv/{{ instance }}/postgresql: | ||||
| file.directory: | file.directory: | ||||
| Show All 36 Lines | |||||
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator