Files
kayobe/ansible/roles/inspection-store/handlers/main.yml
Mark Goddard 5304c0a489 Add a data store for ironic inspector introspection data
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.
2017-09-01 18:21:10 +00:00

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