common salt module - fix file perms for nginx

This commit is contained in:
Mike Reeves
2018-02-07 16:53:40 -05:00
parent cf55e13244
commit bea33ce737
+19 -3
View File
@@ -59,6 +59,19 @@ nginxconf:
- template: jinja - template: jinja
- source: salt://common/nginx/nginx.conf.{{ grains.role }} - source: salt://common/nginx/nginx.conf.{{ grains.role }}
nginxlogdir:
file.directory:
- name: /opt/so/log/nginx/
- user: 939
- group: 939
nginxtmp:
file.directory:
- name: /opt/so/tmp/nginx/tmp
- user: 939
- group: 939
- makedirs: True
# Start the core docker # Start the core docker
so-core: so-core:
docker_container.running: docker_container.running:
@@ -68,8 +81,11 @@ so-core:
- binds: - binds:
- /opt/so:/opt/so:rw - /opt/so:/opt/so:rw
- /opt/so/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro - /opt/so/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /opt/so/log/nginx/:/var/log/nginx:rw
- /opt/so/tmp/nginx/:/var/lib/nginx:rw
- /opt/so/tmp/nginx/:/run:rw
- network_mode: so-elastic-net - network_mode: so-elastic-net
- cap_add: NET_BIND_SERVICE - cap_add: NET_BIND_SERVICE
- ports: - port_bindings:
- 80 - 80:80
- 443 - 443:443