Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27104

Documentation feedback: Procedure to configure git for foreman does not work

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Endeavour
    • Sat_docs_12_2024
    • None

      Description of problem:

      The procedure listed in "14.3.1. Synchronizing templates with an existing repository 
      Copy link" does not work.

      The foreman user does not have write permission in its own home directory and is unable to create the `.gitconfig` directory.

      How reproducible:

      always

      Is this issue a regression from an earlier version:

      unknown

      Steps to Reproduce:

      1. Run `sudo -u foreman git config --global http.sslCAPath Path_To_My_Certificate`

      Actual behavior:
      Git config command fails:

      ```

      1. sudo -u foreman git config --global http.sslCAPath /etc/pki/tls/certs/2022-IT-Root-CA.pem
        error: could not lock config file /usr/share/foreman/.gitconfig: Permission denied

       

      1. $ grep foreman /etc/passwd
        foreman-proxy:x:990:988:Foreman Proxy daemon user:/usr/share/foreman-proxy:/bin/false
        foreman:x:989:987:Foreman:/usr/share/foreman:/sbin/nologin
      1. ls -lad /usr/share/foreman/
        drwxr-xr-x. 14 root root 4096 Apr 26 17:51 /usr/share/foreman/

      ```

      Expected behavior:
      This section should document how to allow Satellite to connect to a remote git repo.

      Business Impact / Additional info:

       

              apetrova@redhat.com Aneta Šteflová Petrová
              rhn-support-bmertens Bram Mertens
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: