Changeset View
Changeset View
Standalone View
Standalone View
roles/paas-docker/containers/mastodon_sidekiq.sls
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Salt — Provision Docker engine | # Salt — Provision Docker engine | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| # Project: Nasqueron | # Project: Nasqueron | ||||
| # Created: 2018-12-08 | # Created: 2018-12-08 | ||||
| # License: Trivial work, not eligible to copyright | # License: Trivial work, not eligible to copyright | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| {% set containers = pillar['docker_containers'][grains['id']] %} | |||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Extra utilities | # Extra utilities | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| /srv/mastodon/extra_utilities: | /srv/mastodon/extra_utilities: | ||||
| file.directory: | file.directory: | ||||
| - makedirs: True | - makedirs: True | ||||
| /srv/mastodon/extra_utilities/clear-video-queue: | /srv/mastodon/extra_utilities/clear-video-queue: | ||||
| file.managed: | file.managed: | ||||
| - source: salt://roles/paas-docker/containers/files/mastodon/clear-video-queue.py | - source: salt://roles/paas-docker/containers/files/mastodon/clear-video-queue.py | ||||
| - mode: 755 | - mode: 755 | ||||
| # ------------------------------------------------------------- | # ------------------------------------------------------------- | ||||
| # Provision extra utilities | # Provision extra utilities | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
| {% for instance in containers['mastodon_sidekiq'] %} | {% for instance in pillar['docker_containers']['mastodon_sidekiq'] %} | ||||
| provision_clear_video_queue_{{ instance }}: | provision_clear_video_queue_{{ instance }}: | ||||
| cmd.run: | cmd.run: | ||||
| - name: docker cp /srv/mastodon/extra_utilities/clear-video-queue {{ instance }}:/usr/bin/clear-video-queue | - name: docker cp /srv/mastodon/extra_utilities/clear-video-queue {{ instance }}:/usr/bin/clear-video-queue | ||||
| - require: | - require: | ||||
| - file: /srv/mastodon/extra_utilities/clear-video-queue | - file: /srv/mastodon/extra_utilities/clear-video-queue | ||||
| {% endfor %} | {% endfor %} | ||||
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator