The HieraPuppet.lookup() function malfunctions when hiera v5 is used.
In order to have Hiera v5 working, the function was replaced by the
'puppet lookup' command.
Hiera v5 should be used instead of Hiera v3 to avoid the following
warning during bootstrap:
"/etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3
is deprecated. It should be converted to version 5"
Also replaced the default path in which keystone.rb looks for
openstacklib since a custom installation directory is being used.
Debian Bullseye tests:
PASS: Build & install
PASS: Successful Bootstrap
Story: 2009964
Task: 45008
Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: I570aa6e06448e00b96882629b54882a1467740c5