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

On puppet-agent (re)install file ownership in /etc/puppetlabs/code changes

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: puppet-agent 5.5.16
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2019-08-21
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      On our environment we set the owner of /etc/puppetlabs/code to the user deploypuppet so we don't have to run the deployment process as root. We've noticed that installing the puppet-agent RPM package (which includes reinstall and update) changes the ownership to root:root.

      This was confirmed with puppet-agent-5.5.16-1.el7.x86_64

      [root@puppetmaster ~]# find /etc/puppetlabs/code -not -user deploypuppet
      /etc/puppetlabs/code
      [root@puppetmaster ~]# chown deploypuppet /etc/puppetlabs/code
      [root@puppetmaster ~]# yum reinstall puppet-agent
      Loaded plugins: fastestmirror, langpacks
      Loading mirror speeds from cached hostfile
       * base: mirror.wdc1.us.leaseweb.net
       * centos-sclo-rh: mirrors.advancedhosters.com
       * centos-sclo-sclo: www.gtlib.gatech.edu
       * epel: mirror.us.leaseweb.net
       * extras: mirrors.advancedhosters.com
       * updates: mirror.ash.fastserv.com
      Resolving Dependencies
      --> Running transaction check
      ---> Package puppet-agent.x86_64 0:5.5.16-1.el7 will be reinstalled
      --> Finished Dependency Resolution
       
      Dependencies Resolved
       
      ==============================================================================================================================
       Package                         Arch                      Version                           Repository                  Size
      ==============================================================================================================================
      Reinstalling:
       puppet-agent                    x86_64                    5.5.16-1.el7                      puppet5                     20 M
       
      Transaction Summary
      ==============================================================================================================================
      Reinstall  1 Package
       
      Total download size: 20 M
      Installed size: 88 M
      Is this ok [y/d/N]: y
      Downloading packages:
      puppet-agent-5.5.16-1.el7.x86_64.rpm                                                                   |  20 MB  00:00:00     
      Running transaction check
      Running transaction test
      Transaction test succeeded
      Running transaction
        Installing : puppet-agent-5.5.16-1.el7.x86_64                                                                           1/1 
        Verifying  : puppet-agent-5.5.16-1.el7.x86_64                                                                           1/1 
       
      Installed:
        puppet-agent.x86_64 0:5.5.16-1.el7                                                                                          
       
      Complete!
      [root@puppetmaster ~]# find /etc/puppetlabs/code -not -user deploypuppet
      /etc/puppetlabs/code
      /etc/puppetlabs/code/modules
      /etc/puppetlabs/code/environments
      /etc/puppetlabs/code/environments/production
      /etc/puppetlabs/code/environments/production/manifests
      /etc/puppetlabs/code/environments/production/modules
      /etc/puppetlabs/code/environments/production/data
      /etc/puppetlabs/code/environments/production/environment.conf
      

        Attachments

          Activity

            People

            • Assignee:
              gabriel.nagy Gabriel Nagy
              Reporter:
              ekohl Ewoud Kohl van Wijngaarden
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support