Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1287644
Description of problem: The ipa-server package ships /etc/systemd/system/httpd.service. The man page systemd-system.conf(5) says: When packages need to customize the configuration, they can install configuration snippets in /usr/lib/systemd/*.conf.d/. Files in /etc/ are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. Version-Release number of selected component (if applicable): ipa-server-4.2.0-15.el7.x86_64 How reproducible: Deterministic. Steps to Reproduce: 1. Verify /etc/systemd/system/httpd.service is not present. 2. yum install -y ipa-server 3. rpm -qf /etc/systemd/system/httpd.service Actual results: ipa-server-4.2.0-15.el7.x86_64 Expected results: error: file /etc/systemd/system/httpd.service: No such file or directory Additional info: Having httpd.service installed by default in /etc makes it hard to distinguish genuine changes by the admin from those done by future versions of packages, especially for containerized deployments.
The file is used for Kerberos ccache and KDC Proxy. ipa-httpd-kdcproxy enables or disables KDC Proxy feature by adding / removing a symlink to /etc/httpd/conf.d/
.include /usr/lib/systemd/system/httpd.service [Service] Environment=KRB5CCNAME=/var/run/httpd/ipa/krbcache/krb5ccache Environment=KDCPROXY_CONFIG=/etc/ipa/kdcproxy/kdcproxy.conf ExecStartPre=/usr/libexec/ipa/ipa-httpd-kdcproxy ExecStopPost=-/usr/bin/kdestroy -A
Metadata Update from @pvoborni: - Issue assigned to someone - Issue set to the milestone: FreeIPA 4.5 backlog
commit 64db059 Author: Christian Heimes cheimes@redhat.com Date: Tue Aug 2 16:58:07 2016 +0200
Correct path to HTTPD's systemd service directory Ticket #5681 and commit 586fee293f42388510fa5436af19460bbe1fdec5 changed the location of the ipa.conf for Apache HTTPD. The variables SYSTEMD_SYSTEM_HTTPD_D_DIR and SYSTEMD_SYSTEM_HTTPD_IPA_CONF point to the wrong directory /etc/systemd/system/httpd.d/. The path is corrected to /etc/systemd/system/httpd.service.d/. https://fedorahosted.org/freeipa/ticket/6158 https://bugzilla.redhat.com/show_bug.cgi?id=1362537 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Abhijeet Kasurde <akasurde@redhat.com>
Metadata Update from @abbra: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Note that the commit is not the first one (it references the original one) but this commit is the final one in moving to a snippet.
Login to comment on this ticket.