Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-4933

Allow for unanchored UserDir filename patterns

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: apache
    • Labels:
      None
    • Environment:

      RedHat 7.x, Apache 2.4, puppet agent 1.7.1, puppetlabs/apache module 1.11.0

    • Template:
    • Epic Link:
    • Team:
      Modules
    • QA Risk Assessment:
      Needs Assessment

      Description

      The change made in https://github.com/puppetlabs/puppetlabs-apache/commit/b1a3cc18f3d07ec239b5183384c12798f83b852f seems to forcibly anchor all UserDir lookups to a single path prefix. "$home/*/$dir" doesn't allow for using the ~username lookup via the system's name service to determine home directory, which is needed in cases where there are multiple home directory paths possible.

      Because the UserDir string hardcodes the /*/ in the middle it leaves no wiggle room to creatively use $home, either.

      I'm not sure what to do about ensuring it matches the singular 'free' <Directory "$home/*/$dir" > element. In our particular instance, we have to specify the alternate home paths elsewhere in the config. Make $home into a $homes array and using UserDir's facility to have more than one filename pattern and directory block would probably work for our particular situation, but might not fit in with other's needs. Perhaps make the free directory block something you can opt out of?

        Attachments

          Activity

            People

            Assignee:
            eric.putnam Eric Putnam
            Reporter:
            rtkennedy Robert Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support