Sensoroni Module - Add watch statement and recreate docker

This commit is contained in:
Mike Reeves
2019-06-12 14:29:47 -04:00
parent f5343b114e
commit 61d681eb65
2 changed files with 7 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
{%- set MASTERIP = salt['pillar.get']('static:masterip', '') -%}
{%- set SENSORONIKEY = salt['pillar.get']('static:sensoronikey', '') -%}
{
"logFilename": "sensoroni-server.log",
"logFilename": "/opt/sensoroni/logs/sensoroni-server.log",
"server": {
"bindAddress": "{{ MASTERIP }}:9822",
"bindAddress": "0.0.0.0:9822",
"maxPacketCount": 5000,
"htmlDir": "html",
"modules": {
@@ -17,7 +17,7 @@
"elasticsearchVerifyCert": false
},
"statickeyauth": {
"anonymousCidr": "{{ MASTERIP }}/32",
"anonymousCidr": "172.17.0.0/24",
"apiKey": "{{ SENSORONIKEY }}"
}
}

View File

@@ -38,10 +38,12 @@ so-sensoroni:
- image: soshybridhunter/so-sensoroni:HH1.1.0
- hostname: sensoroni
- name: so-sensoroni
- user: socore
- binds:
- /nsm/sensoroni/jobs:/opt/sensoroni/jobs:rw
- /opt/so/conf/sensoroni/sensoroni.json:/opt/sensoroni/sensoroni.json:ro
- /opt/so/log/sensoroni/sensoroni-server.log:/opt/sensoroni/sensoroni-server.log:rw
- /opt/so/log/sensoroni/:/opt/sensoroni/log/:rw
- port_bindings:
- 0.0.0.0:9822:9822
- force: True
- watch:
- file: /opt/so/conf/sensoroni/sensoroni.json