Browse Source

Refactor container state ids and add requisites

master
Sean Johnson 3 years ago
parent
commit
0574e3d27a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 9FA15B87469EA850
  1. 6
      app/grainsrv/init.sls
  2. 6
      app/logspout/init.sls
  3. 6
      app/nginx_proxy/init.sls

6
app/grainsrv/init.sls

@ -2,13 +2,15 @@
{% from "app/grainsrv/map.jinja" import container, settings, ssl with context %}
pull grainsrv container:
grainsrv image:
docker_image.present:
- name: {{ container.image }}
- tag: {{ container.tag }}
run grainsrv container:
grainsrv container:
docker_container.running:
- require:
- docker_image: grainsrv image
- image: {{ container.image }}:{{ container.tag }}
- name: grainsrv
- detach: true

6
app/logspout/init.sls

@ -2,13 +2,15 @@
{% from "app/logspout/map.jinja" import container with context %}
pull logspout container:
logspout image:
docker_image.present:
- name: {{ container.image }}
- tag: {{ container.tag }}
run logspout container:
logspout container:
docker_container.running:
- require:
- docker_image: logspout image
- image: {{ container.image }}:{{ container.tag }}
- name: {{ container.name | yaml_squote }}
- detach: true

6
app/nginx_proxy/init.sls

@ -3,13 +3,15 @@
{% from "app/nginx_proxy/map.jinja" import container, settings, ssl, vhosts with context %}
{%- set readlink = salt.file.readlink %}
pull nginx-proxy container:
nginx-proxy image:
docker_image.present:
- name: {{ container.image }}
- tag: {{ container.tag }}
run nginx-proxy container:
nginx-proxy container:
docker_container.running:
- require:
- docker_image: nginx-proxy image
- image: {{ container.image }}:{{ container.tag }}
- name: nginx-proxy
- detach: true

Loading…
Cancel
Save