Files
tripleo-validations/roles/nova_event_callback/tasks/main.yml
David Vallee Delisle 23a2ec2164 Moving setting validation from nova_event_callback
The newly introduced role oslo_config_validator is probably a
better framework to validate settings as it's centralized and
will most probably be called by sosreport for troubleshooting
purpose. It only makes sense to move some setting validations
to this new role when possible.

This patch also adds the nova_event_callback role documentation in
sphinx.

Closes-Bug: #1934609
Conflicts:
  - playbooks/nova-event-callback.yaml

Change-Id: Iac8126429773d3b63d17ad851d24e8c6f498f557
(cherry picked from commit 23992a3576)
2021-09-20 12:34:23 -04:00

25 lines
754 B
YAML

---
- name: Get auth_url value from hiera
become: true
command: hiera -c /etc/puppet/hiera.yaml neutron::server::notifications::nova::auth_url
ignore_errors: true
changed_when: false
register: auth_url
- name: Get auth_url value from neutron.conf
become: true
validations_read_ini:
path: "{{ neutron_config_file }}"
section: nova
key: auth_url
ignore_missing_file: true
register: neutron_auth_url_result
- name: Check [nova]/auth_url setting value from neutron.conf
fail:
msg: >-
[nova]/auth_url from {{ neutron_config_file }} is set to
{{ neutron_auth_url_result.value or 'None' }}
but it should be set to {{ auth_url.stdout }}.
failed_when: "neutron_auth_url_result.value != auth_url.stdout"