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

Puppet does not respect the path setting when set in the agent section of puppet.conf

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.6.2, PUP 3.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:

      Description

      When I set the path setting in the [agent] section of puppet.conf it does not seem to be respected. If I move it to the [main] section then it is respected.

      I'm using the attached test module which outputs the path that the agent is using during an exec statement.

      I've tested on both solaris 10 and centos 6.4 with the same result.

      Reproduction Steps using PE3.3.0:

      1. Classify the node with the test module
      2. View the contents of /tmp/path_test.out
      3. rm /tmp/path_test.out (to make sure you know when it's been written again)
      4. Edit puppet.conf on your agent

      • Set path to /usr/bin:/usr/sbin:/tmp in the [agent] section

      5. service pe-puppet restart to cause the change to be taken and cause a daemonized run to start
      6. View the contents of /tmp/path_test.out

      • The contents should be the same as in test 2 because the setting isn't respected.

      7. rm /tmp/path_test.out again
      8. Edit puppet.conf on your agent

      • Set path to /usr/bin:/usr/sbin:/tmp in the [main] section this time

      9. service pe-puppet restart to cause the change to be taken and cause a daemonized run to start
      10. View the contents of /tmp/path_test.out

      • The contents should now be /usr/bin:/usr/sbin:/tmp:/sbin

      Another interesting thing to note is that I get this warning upon restart of pe-puppet when path is set in the [main] section but not when it's in the [agent] section which also makes me thing the path is ignored when it's in the [agent] section.

      Starting puppet: /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/defaults.rb:182: warning: Insecure world writable dir /tmp in PATH, mode 041777
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                nick.walker Nick Walker
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support