Hi,

We just started our trials with puppet6 (upgrading from puppet5) on FreeBSD, 
and while we think we have a pretty good grip on most things that we need to 
do, there is one mind-bending problem we're having: When running the Puppet 
Agent on the Puppetserver instance itself, it never prints "Loading facts.." 
and then errors out complaining about unassigned variables (like 
$operatingsystemrelease, for instance).

Running 'puppet facts' only gives this:

# puppet facts
{
  "name": "puppet.pmn.nyc.modirum.com",
  "values": {
    "trusted": {
      "domain": "pmn.nyc.modirum.com",
      "certname": "puppet.pmn.nyc.modirum.com",
      "hostname": "puppet",
      "extensions": {
      },
      "authenticated": "remote"
    }
  },
  "timestamp": "2019-06-17T10:02:03.156284600+00:00"
}

On any other node, we get the usual huge amount of data. Interestingly, running 
'facter -p' also gives the expected result.

Running 'puppet facts --debug' shows indications that it is attempting to laod 
facts (see snippets below), but they aren't printed at the end. Facts caching 
is not the issue (there is no facter config on the puppetserver node, so no 
caching is taking place).

The configuration is exactly the same we've used for puppet5, where the agent 
runs happily on the puppetserver. It has simply been a matter of pkg delete 
puppet* puppetdb* / pkg install puppet6 puppetserver6 puppetdb6 
puppetdb-terminus6.

I have a vage recollection of having seen this problem before, but it's many 
years ago and I have an even more vague recollection (as in none at all) of 
what was done to fix it. It's probably unrelated anyway.

/Eirik

# puppet facts --debug 2>&1 | less -R

Debug: Facter: fact "networking" has resolved to {
  domain => "pmn.nyc.modirum.com",
  fqdn => "puppet.pmn.nyc.modirum.com",
  hostname => "puppet",
  interfaces => {
    em0 => {
      bindings => [
        {
...........

and on to...

Debug: Facter: executing command: /bin/freebsd-version
Debug: Facter: 11.2-RELEASE-p9
Debug: Facter: process exited with status code 0.
Debug: Facter: fact "osfamily" has resolved to "FreeBSD".
Debug: Facter: fact "operatingsystemmajrelease" has resolved to "11".
Debug: Facter: fact "operatingsystemrelease" has resolved to "11.2-RELEASE-p9".
Debug: Facter: fact "hardwaremodel" has resolved to "amd64".
Debug: Facter: fact "architecture" has resolved to "amd64".
Debug: Facter: fact "operatingsystem" has resolved to "FreeBSD".
Debug: Facter: fact "os" has resolved to {
  architecture => "amd64",
  family => "FreeBSD",
  hardware => "amd64",
  name => "FreeBSD",
  release => {
    full => "11.2-RELEASE-p9",
    major => "11",
    minor => "2-RELEASE-p9"
  }
}.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1143BED7-65E0-4280-AE35-85261481BA7B%40anduin.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to