Hi,
I want to install Openstack using puppet but I'm facing the error below
[root@compute ~]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not find data item openstack::region in any Hiera data file and no default supplied at /etc/puppetlabs/code/environments/production/modules/openstack/manifests/init.pp:381:40 on node compute.localnet
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
On puppet master
[root@master puppet]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for master.localnet
Info: Applying configuration version '1464973841'
[root@master puppet]# hiera -c hiera.yaml openstack::region
openstack
[root@master puppet]# cat hiera.yaml
---
:backends:
- yaml
:hierarchy:
# - "nodes/%{::trusted.certname}"
- global
- openstack
- defaults
:yaml:
# datadir is empty here, so hiera uses its defaults:
# - /etc/puppetlabs/code/environments/%{environment}/hieradata on *nix
# - %CommonAppData%\PuppetLabs\code\environments\%{environment}\hieradata on Windows
# When specifying a datadir, make sure the directory exists.
:datadir: '/etc/puppetlabs/puppet/hieradata'
Under /etc/puppetlabs/puppet/hieradata, I have the correct openstack.yaml
Any idea about this issue please?
Thanks
↧