Merge "Use host networking for inspection store"
This commit is contained in:
commit
6f66f3a517
ansible/roles/inspection-store
@ -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 "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user