Use containerized location of keystone.conf file

This uses the containerized location of keystone.conf in the controller-token
validation, it is no longer available at /etc/keystone/keystone.conf.

Change-Id: Ic825ff31b00e1b63eaacc80b2564c774d8125920
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2018-11-27 17:06:42 +01:00
parent b9eedacdb6
commit 962408ec5a
1 changed files with 2 additions and 1 deletions

View File

@ -8,10 +8,11 @@
undercloud and overcloud controller after deployment.
groups:
- post-deployment
keystone_conf_file: "/var/lib/config-data/puppet-generated/keystone/etc/keystone/keystone.conf"
tasks:
- name: Fetch token value
become: true
ini: path=/etc/keystone/keystone.conf section=DEFAULT key=admin_token ignore_missing_file=True
ini: path={{ keystone_conf_file }} section=DEFAULT key=admin_token ignore_missing_file=True
register: token_result
- name: Check if token value is disabled.
fail: msg="Keystone admin token is not disabled."