Move auth init.sls to docker registry

This commit is contained in:
William Wernert
2020-01-30 12:39:09 -05:00
parent 63d0a21a0c
commit 5dec2b1c87

View File

@@ -1,3 +1,6 @@
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set MASTER = salt['grains.get']('master') %}
so-auth-api-dir: so-auth-api-dir:
file.directory: file.directory:
- name: /opt/so/conf/auth/api - name: /opt/so/conf/auth/api
@@ -5,19 +8,9 @@ so-auth-api-dir:
- group: 939 - group: 939
- makedirs: True - makedirs: True
so-auth-api-image:
cmd.run:
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-auth-api:HH1.1.4
so-auth-ui-image:
cmd.run:
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-auth-ui:HH1.1.4
so-auth-api: so-auth-api:
docker_container.running: docker_container.running:
- require: - image: {{ MASTER }}:5000/soshybridhunter/so-auth-api:{{ VERSION }}
- so-auth-api-image
- image: docker.io/soshybridhunter/so-auth-api:HH1.1.4
- hostname: so-auth-api - hostname: so-auth-api
- name: so-auth-api - name: so-auth-api
- environment: - environment:
@@ -29,9 +22,7 @@ so-auth-api:
so-auth-ui: so-auth-ui:
docker_container.running: docker_container.running:
- require: - image: {{ MASTER }}:5000/soshybridhunter/so-auth-ui:{{ VERSION }}
- so-auth-ui-image
- image: docker.io/soshybridhunter/so-auth-ui:HH1.1.4
- hostname: so-auth-ui - hostname: so-auth-ui
- name: so-auth-ui - name: so-auth-ui
- port_bindings: - port_bindings: