Changeset View
Changeset View
Standalone View
Standalone View
roles/paas-docker/containers/hound.sls
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Salt — Provision Docker engine | # Salt — Provision Docker engine | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| # Project: Nasqueron | # Project: Nasqueron | ||||
| # 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']] %} | |||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Configuration provider | # Configuration provider | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| /usr/local/bin/hound-generate-config: | /usr/local/bin/hound-generate-config: | ||||
| file.managed: | file.managed: | ||||
| - source: salt://roles/paas-docker/containers/files/hound/generate-config.py | - source: salt://roles/paas-docker/containers/files/hound/generate-config.py | ||||
| - mode: 755 | - mode: 755 | ||||
| {% for instance, container in containers['hound'].items() %} | {% for instance, container in pillar['docker_containers']['hound'].items() %} | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Home directory | # Home directory | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| /srv/hound/{{ instance }}: | /srv/hound/{{ instance }}: | ||||
| file.directory: | file.directory: | ||||
| - makedirs: True | - makedirs: True | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator