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

codedir behaviour does not match documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 5.5.22, PUP 6.20.0
    • Fix Version/s: None
    • Component/s: Docs
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.18.0
      Puppet Server Version: 6.18.0
      OS Name/Version: Ubuntu 18.04.5 LTS \n \l

      In the documentation https://puppet.com/docs/puppet/6.21/dirs_codedir.html#location, it states

      When Puppet is running as root, as a Windows user with administrator privileges, or as the puppet user, it uses a system-wide codedir. When running as a non-root user, it uses a codedir in that user's home directory.

      This doesn't seem to be true. As the puppet user,

      puppet@puppet:~$ puppet config print codedir
      /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code

      My puppet version is

      puppet@puppet:~$ apt-cache policy puppet-agent
      puppet-agent:
      {{ Installed: 6.20.0-1bionic}}
      {{ Candidate: 6.20.0-1bionic}}
      {{ Version table:}}
      {{ *** 6.20.0-1bionic 500}}
      {{ 500 http://apt.puppetlabs.com bionic/puppet6 amd64 Packages}}
      {{ 100 /var/lib/dpkg/status}}

      Desired Behavior:

      It should use /etc/puppetlabs/code as stated in documentation

      Actual Behavior:

      puppet@puppet:~$ puppet config print codedir
      /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code

       It uses /opt/puppetlabs/server/data/puppetserver/.puppetlabs/etc/code

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            waipeng Jake Yip
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support