Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-2020

source function library *before* client sysconfig overrides

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Team:
      Platform OS
    • Story Points:
      1
    • Sprint:
      Week 2014-3-12 to 2014-3-19

      Description

      My client's environment mandates strict umask settings:

      • 027 for init scripts
      • 077 for normal users
        This causes problems when using exec resources or any add-on functions
        that exec external scripts/programs.

      The fix is relatively simple - run umask in /etc/sysconfig/puppet
      and set a more lenient umask for puppet.
      However, the /etc/sysconfig/puppet is sourced before the init
      function library so any umask changes made in the former are
      overridden by any in the latter.

      Looking in other init scripts (including the puppetmaster init
      script), it is usual for the function library to be sourced at the
      start of the init script, ie. before the sysconfig override.

      This change simply moves the lines that source the init function
      library to the start of the init script.

      My client is using PE 3.0.1 but the same problem also exists in the OS product.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              redmine.exporter redmine.exporter
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support