Use host networking for inspection store

Change-Id: I126e500be0b22d65b918a5291cac189425be51b9
Story: 2003207
Task:  23365
This commit is contained in:
Will Szumski 2018-08-01 15:17:22 +01:00
parent 10382bce9e
commit 2ddcd94cd4
3 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,7 @@ inspection_store_services:
container_name: inspection_store
enabled: "{{ inspection_store_enabled }}"
image: "{{ inspection_store_image_full }}"
ports:
- "{{ inspection_store_port }}:80"
network_mode: host
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ inspection_store_config_path }}/nginx.conf:/etc/nginx/nginx.conf:ro"

View File

@ -10,6 +10,7 @@
restart_retries: "{{ inspection_store_restart_retries | default(omit) }}"
state: "{{ item.value.enabled | ternary('started', 'absent') }}"
volumes: "{{ item.value.volumes }}"
network_mode: "{{ item.value.network_mode | default(omit) }}"
with_dict: "{{ inspection_store_services }}"
notify:
- Ensure inspection store data directory exists

View File

@ -28,7 +28,7 @@ http {
#gzip on;
server {
listen 80;
listen {{ inspection_store_port }};
root /data;
location /ironic-inspector {
return 200 "";