Merge "Use host networking for inspection store"

This commit is contained in:
Zuul 2018-08-02 20:52:17 +00:00 committed by Gerrit Code Review
commit 6f66f3a517
3 changed files with 3 additions and 3 deletions
ansible/roles/inspection-store
defaults
tasks
templates

@ -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"

@ -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

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