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

Puppet prints warning when "environment" is set using classifier rather than local puppet.conf

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      puppet 3.5.1

    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-09-02
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      When a Puppet agent was instructed by the Puppet master to change its environment, it would issue a warning about changing environment even though that's the intended behavior. That message has been changed to a notice.

      Description

      We set the environment in the external node classifier and don't have one set locally.

      Puppet seems to default to the 'production' environment in case you don't have one set and it turns into:

      Warning: Local environment: "production" doesn't match server specified node environment "devel", switching agent to "devel".
      

      "devel" is the environment currently set for this node.
      We didn't specify "production" anywhere manually.

      I think that when a user DOESN'T specify any environment in the puppet.conf file but sets it in the classifier, this warning seems superfluous.

      This is the local puppet.conf:

      [main]
      logdir=/var/log/puppet
      vardir=/var/lib/puppet
      ssldir=/var/lib/puppet/ssl
      rundir=/var/run/puppet
       
      http_compression = true
       
      [agent]
       server = master.e.some.thing.com
       certname = srv-13.some.thing.com
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rb2k Marc Seeger
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: