
In environments without Swift we are currently unable to store hardware introspection data. The inspection_store container runs an nginx server that supports a restricted Swift-like HTTP API using WebDAV that supports upload and retrieval of introspection data.
16 lines
532 B
YAML
16 lines
532 B
YAML
---
|
|
- name: Restart inspection store container
|
|
docker_container:
|
|
name: "{{ item.value.container_name }}"
|
|
state: started
|
|
restart: True
|
|
with_dict: "{{ inspection_store_services }}"
|
|
when: item.value.enabled
|
|
|
|
- name: Ensure inspection store data directory exists
|
|
command: >
|
|
docker exec {{ inspection_store_services.inspection_store.container_name }}
|
|
bash -c "mkdir -p /data/ironic-inspector &&
|
|
chown nginx:nginx /data/ironic-inspector"
|
|
when: inspection_store_services.inspection_store.enabled
|