Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33146

mongod.service does not source system-wide environment variables as stated in the documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.19, 3.4.11, 3.6.2
    • Fix Version/s: 4.0.0-rc0
    • Component/s: Packaging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      • yum install mongodb-enterprise
      • Add kerberos options to /etc/mongod.conf
      • Create keytab
      • Create /etc/sysconfig/mongod with env vars
      • Start service (systemctl start mongod)
    • Sprint:
      Build 2018-05-07
    • Case:
    • Story Points:
      3

      Description

      Following the Kerberos tutorial I am unable to configure the keytab environment variable for the rpm installed mongod.

      The service file does not source /etc/sysconfig/mongod

      As a workaround I modified the service file to include

      Environment="KRB5_TRACE=/path/to/krb5.log"
      Environment="KRB5_KTNAME=/path/to/keytab"
      

        Attachments

          Activity

            People

            Assignee:
            mathew.robinson Mathew Robinson (Inactive)
            Reporter:
            vick.mena Vick Mena
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: