Changeset View
Changeset View
Standalone View
Standalone View
roles/paas-docker/containers/registry.sls
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Salt — Provision Docker engine | # Salt — Provision Docker engine | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| # Project: Nasqueron | # Project: Nasqueron | ||||
| # Created: 2018-09-18 | # Created: 2018-09-18 | ||||
| # 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['registry'].items() %} | {% for instance, container in pillar['docker_containers']['registry'].items() %} | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Data directory | # Data directory | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| /srv/{{ instance }}: | /srv/{{ instance }}: | ||||
| file.directory: | file.directory: | ||||
| - makedirs: True | - makedirs: True | ||||
| Show All 28 Lines | |||||
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator