#59 make the KRB5_KTNAME varaible able to be set in the systemd unit
Merged 6 years ago by mjia. Opened 6 years ago by mjia.
mjia/waiverdb set_krb5  into  master

@@ -4,6 +4,7 @@ 

  After=network.target

  

  [Service]

+ EnvironmentFile=-/etc/sysconfig/waiverdb

  ExecStart=/usr/bin/gunicorn --bind unix:/run/waiverdb/socket \

          waiverdb.wsgi:app

  

This will allow me to easily set KRB5_KTNAME in the ansible playbook when enabling the kerberos authentication.

You would need to either prefix this with - (which means, don't fail if the file doesn't exist) or else ship it in the package with empty contents instead.

The - prefix seems nicer.

EnvironmentFile=-/etc/sysconfig/waiverdb

rebased

6 years ago

Rebased to address the comment.

Pull-Request has been merged by mjia

6 years ago
Metadata