browbeat/ansible/check/roles/glance/tasks/main.yml
Sai Sindhur Malleni f929aaefae Adding checks for Glance
This commit adds checks for Glanec API and Registry workers

Change-Id: I1aa4280158e8c85ae1e956bc9c4e46847830d2e1
2016-08-08 09:52:52 -04:00

13 lines
458 B
YAML

- name: Glance API worker count
command: crudini --get /etc/glance/glance-api.conf DEFAULT workers
register: glance_api_workers
failed_when: glance_api_workers.rc == 1
changed_when: false
ignore_errors: true
- name: Glance Registry worker count
command: crudini --get /etc/glance/glance-registry.conf DEFAULT workers
register: glance_registry_workers
failed_when: glance_registry_workers.rc == 1
changed_when: false
ignore_errors: true