| Puppet Version: 7.16.0 Puppet Server Version: 7.16.0 OS Name/Version: CentOS Stream 9 Desired Behavior: puppet lookup should not fail when it is executed with --node agent.local Actual Behavior: puppet lookup consistently fails when it is executed with --node agent.local ``` [root@localhost ~]# sudo puppet lookup enabled_services --node agent.local Error: Could not run: No facts available for target node: agent.local ``` The command works when --node is not used ``` [root@localhost ~]# sudo puppet lookup enabled_services Warning: /etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5 (file: /etc/puppet/hiera.yaml) —
``` Hieradata files are created as shown below. ``` [root@localhost ~]# cat /etc/puppet/hiera.yaml — :backends: - json :json: :datadir: /etc/puppet/hieradata :hierarchy: - service_configs [root@localhost ~]# cat /etc/puppet/hieradata/service_configs.json { "enabled_services": ["foo", "baa"] } ``` |