I have a product to deploy, that has already consolidated hieradata.
I have only added only file in hieradata (/opt//hieradata/data/roles/all_in_one.yaml) to add some custom details.
That file starts with
`—
classes:
- java
- mysql::client
- mysql::server
- resource_tree
`
But, whenever I issue /opt/puppetlabs/bin/puppet agent -t to start the changes, the following error is thrown:
`
2024-07-30T17:24:56.094Z ERROR [qtp1481164360-36] [puppetserver] Puppet Function lookup() did not find a value for the name ‘classes’
2024-07-30T17:24:56.095Z ERROR [qtp1481164360-36] [puppetserver] Puppet Function lookup() did not find a value for the name ‘classes’ on node ip-172-31-16-180.us-east-2.compute.internal
2024-07-30T17:24:56.095Z ERROR [qtp1481164360-36] [puppetserver] Puppet Server Error: Function lookup() did not find a value for the name ‘classes’ on node ip-172-31-16-180.us-east-2.compute.internal`
Before adding this hieradata to /etc/puppetlabs/code/environments/production/manifests, /etc/puppetlabs/code/environments/production/modules, /etc/puppetlabs/code/environments/production/hiera.yaml and /etc/puppetlabs/code/environments/production/data the sync used to work, so I imagine that’s something wrong in the hieradata
`
[root@ip-172-31-16-180 ~]# sudo /opt/puppetlabs/bin/puppet agent -t
Info: Using environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for ip-172-31-16-180.us-east-2.compute.internal
Info: Applying configuration version ‘1721921132’
Notice: Applied catalog in 0.01 seconds
`
I expected that this agent sync would complete and apply the changes from the hieradata