About | FAQ | Help
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Facts not found from world.json

Hi Guys,

see files etc below, but basically it can't seem to see ANY vars in world.json... ?
(File shown is subset of the full thing)



vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code

ca = false
dns_alt_names = pm101.qa.x.x.x

reports = store, foreman
reportdir = $vardir/reports

server      = pm101.qa.x.x.x
ca_server   = pmca.ops.x.x.x
environment = qa2



  - json

  - "%{hostname}.%{nt_environment}.%{nt_location}"
  - "%{nt_type}.%{nt_environment}.%{nt_location}"
  - "%{nt_type}.%{nt_environment}"
  - "%{nt_environment}.%{nt_location}"
  - "%{nt_environment}"
  - "%{nt_location}"
  - world
  - default

:logger: console # debug

    :datadir: '/etc/puppetlabs/code/environments/%{::environment}/hieradata' # this is the default anyway


    -rw-rw-r-- 1 jenkins jenkins 2398 Jan 14 00:38 world.json
       "env" : {
                 "puppetusers" : [

Info: Using configured environment 'qa2'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Failed to parse template common/etc/profile.d/tmx_profile.sh.erb:
  Filepath: /etc/puppetlabs/code/environments/qa2/modules/common/templates/etc/profile.d/tmx_profile.sh.erb
  Line: 25
  Detail: undefined method `[]' for nil:NilClass
 at /etc/puppetlabs/code/environments/qa2/manifests/modules/common/manifests/classes/configuration.pp:19:14 on node pm101.qa.sac.int.threatmetrix.com