Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9290

`puppet facts upload` always uses environment "production" ignoring setting from puppet.conf

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • PUP 5.5.22
    • None
    • None
    • None
    • Coremunity
    • Needs Assessment
    • Needs Assessment

    Description

      We have nodes with environment different than default "production", in here it's "qa":

      [root@app03.XXX:~]# cat /etc/puppet/puppet.conf
      (...)
      [agent]
      report      = true
      runinterval = 1800
      environment = qa
      splay = true
      

      But if we upload facts using `puppet facts upload` always environment "production" is being used:

      [root@app03.XXX:~]# /opt/puppetlabs/puppet/bin/puppet facts upload --debug
      Debug: Runtime environment: puppet_version=5.5.2, ruby_version=2.4.4, run_mode=user, default_encoding=UTF-8
      Debug: Evicting cache entry for environment 'production'
      (...)
      

      In puppetdb facts from such nodes have "facts_environment" set to "production", while "report_environment" and "catalog_environment" are set correctly to "qa".

      If you simply run "puppet agent -t" facts with correct environment, "qa", are being uploaded.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              grzegorz.dubicki@gmail.com Greg Dubicki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support