4fe38aadb1
The tripleo-ansible-inventory script uses the role names in order to group the different hosts. Since we can use custom roles, the fixed "Controller" and others aren't relevant in such cases. Ansible allows to use parameter for the "hosts" value in playbooks, allowing us to call the validations using this command: openstack tripleo validator run --validation haproxy \ --extra-vars '{"controller_rolename": "MyCustomController"}' (or use the --extra-vars-file in order to avoid in-line JSON) This patch also correct a non-existent group call, Database. The closest we have is the "mysql" group in the inventory - let's reflect it in order to avoid useless warning(s). Change-Id: I3bec039283fe5df56771d84fff5bd5940fd149d8 (cherry picked from commitec0465e481
) (cherry picked from commit088c4a1301
)
16 lines
499 B
YAML
16 lines
499 B
YAML
---
|
|
- hosts:
|
|
- undercloud
|
|
- "{{ controller_rolename | default('Controller') }}"
|
|
vars:
|
|
metadata:
|
|
name: Verify that keystone admin token is disabled
|
|
description: >
|
|
This validation checks that keystone admin token is disabled on both
|
|
undercloud and overcloud controller after deployment.
|
|
groups:
|
|
- post-deployment
|
|
keystone_conf_file: "/var/lib/config-data/puppet-generated/keystone/etc/keystone/keystone.conf"
|
|
roles:
|
|
- controller_token
|