No, I haven't knowingly changed anything about Facter's configuration.
In fact the config file I'm using is migrated from a previous Puppet 3
install and explicitly has stringify_facts = false.
Thanks,
Jonathan
On 03/11/16 17:41, Peter Huene wrote:
On Thu, Nov 3, 2016 at 10:30 AM, Justin Stoller <jus...@puppet.com
<mailto:jus...@puppet.com>> wrote:
On Thu, Nov 3, 2016 at 2:52 AM, Jonathan Gazeley
<jonathan.gaze...@bristol.ac.uk
<mailto:jonathan.gaze...@bristol.ac.uk>> wrote:
Hi folks,
I've been running open-source Puppet 3.x for years but this week
I'm dabbling with a new installation of PE 2016.4. I installed
from the pointy-clicky installer and so far the PE server only
has itself in the inventory, but is failing to do a puppet run.
It bails with this error:
Could not retrieve catalog from remote server: Error 500 on
SERVER: Server Error: Evaluation Error: Error while evaluating a
Resource Statement, Evaluation Error: Error while evaluating a
Method call, 'dig' parameter 'data' expects a Collection value,
got String at
/opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42
on node puppet4-prod.resnet.bris.ac.uk
<http://puppet4-prod.resnet.bris.ac.uk>
I think that manifest is something that came with PE and not
something I've installed, so I've no idea where to start. Any ideas?
Looking at that line in the puppet configuration it seems that we're
digging into the mountpoints:
$tmp_mount_options = $::mountpoints.dig( '/tmp', 'options' )
Dig expects to be called on a collection[1], and reading the error I
would assume that the fact `mountpoints` is returning a string or
that the "/tmp" key within the fact is returning a string. Which is
not how Facter should be behaving[2].
Perhaps we're picking up a (deprecated for forever now) `stringify_facts
= true` in Puppet's settings, perhaps from a previous installation?
My guess is that Facter is operating correctly since this fact is tested
against the schema definition to verify it is always a map.
Have you changed anything relating to Facter or its configuration?
- Justin
1. https://docs.puppet.com/puppet/4.8/reference/function.html#dig
<https://docs.puppet.com/puppet/4.8/reference/function.html#dig>
2. https://docs.puppet.com/facter/latest/core_facts.html#mountpoints
<https://docs.puppet.com/facter/latest/core_facts.html#mountpoints>
Thanks,
Jonathan
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol
--
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
<mailto:puppet-users%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk
<https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com
<https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
--
Peter Huene - Senior Software Engineer
peter.hu...@puppet.com <mailto:peter.hu...@puppet.com> | @peterhuene
--
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CACZQQfMDTCxkzq1zGXxO2t%2BOnsJUyRB0X88%2BBWa%2BKZZY_vE3Yw%40mail.gmail.com
<https://groups.google.com/d/msgid/puppet-users/CACZQQfMDTCxkzq1zGXxO2t%2BOnsJUyRB0X88%2BBWa%2BKZZY_vE3Yw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol
--
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/27d3bb64-8152-a939-45ca-8cb8ffd8cfad%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.