From 7f044c45de261f6dfad64a4c019ea426a04e5f4a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 10 Jul 2020 09:27:38 -0400 Subject: [PATCH] Revert "Have osdeploy require apache/ssl and provide config" This reverts commit ea6155b2a1b32ffa2ceeb70305f3817da9dd8fa2. This rpm is built under centos7 for maximum C compatibility of the addon utility. For now move the dependency back to lenovo-confluent --- confluent_osdeploy/confluent-osdeploy.conf | 16 -------------- .../confluent-osdeploy.conf.sles | 18 --------------- .../confluent_osdeploy.spec.tmpl | 22 +------------------ 3 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 confluent_osdeploy/confluent-osdeploy.conf delete mode 100644 confluent_osdeploy/confluent-osdeploy.conf.sles diff --git a/confluent_osdeploy/confluent-osdeploy.conf b/confluent_osdeploy/confluent-osdeploy.conf deleted file mode 100644 index 047751b8..00000000 --- a/confluent_osdeploy/confluent-osdeploy.conf +++ /dev/null @@ -1,16 +0,0 @@ -LoadModule proxy_http_module modules/mod_proxy_http.so -SetEnvIf Request_URI "^/confluent-api/nodes/.*/console/session$" dontlog -Alias /confluent-public /var/lib/confluent/public - - AllowOverride None - Require all granted - Options +Indexes +FollowSymLinks - - - - ProxyPass http://127.0.0.1:4005 retry=0 - RewriteEngine On - RewriteCond %{HTTPS} off - RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] - -TraceEnable off diff --git a/confluent_osdeploy/confluent-osdeploy.conf.sles b/confluent_osdeploy/confluent-osdeploy.conf.sles deleted file mode 100644 index 61f4560f..00000000 --- a/confluent_osdeploy/confluent-osdeploy.conf.sles +++ /dev/null @@ -1,18 +0,0 @@ -LoadModule proxy_module /usr/lib64/apache2-prefork/mod_proxy.so -LoadModule proxy_http_module /usr/lib64/apache2-prefork/mod_proxy_http.so -LoadModule allowmethods_module /usr/lib64/apache2-prefork/mod_allowmethods.so -LoadModule headers_module /usr/lib64/apache2-prefork/mod_headers.so -SetEnvIf Request_URI "^/confluent-api/nodes/.*/console/session$" dontlog -Alias /confluent-public /var/lib/confluent/public - - AllowOverride None - Require all granted - Options +Indexes +FollowSymLinks - - - ProxyPass http://127.0.0.1:4005 retry=0 - RewriteEngine On - RewriteCond %{HTTPS} off - RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] - -TraceEnable off diff --git a/confluent_osdeploy/confluent_osdeploy.spec.tmpl b/confluent_osdeploy/confluent_osdeploy.spec.tmpl index c8845595..7436c334 100644 --- a/confluent_osdeploy/confluent_osdeploy.spec.tmpl +++ b/confluent_osdeploy/confluent_osdeploy.spec.tmpl @@ -7,13 +7,7 @@ License: Apache2 URL: http://hpc.lenovo.com/ Source0: confluent_osdeploy.tar.xz BuildArch: noarch - -%define is_rh 0%{?el6:1}%{?el7:1}%{?el8:1} -%if %is_rh -Requires: confluent_ipxe mtools httpd mod_ssl -%else -Requires: confluent_ipxe mtools apache2 -%endif +Requires: confluent_ipxe mtools BuildRoot: /tmp %description @@ -60,20 +54,6 @@ for os in rhvh4 el8 suse15 ubuntu20.04 esxi6 esxi7; do cp ${os}out/addons.* %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles done -%if %is_rh -mkdir -p %{buildroot}/etc/httpd/conf.d -mv confluent-osdeploy.conf %{buildroot}/etc/httpd/conf.d/ -%else -mkdir -p %{buildroot}/etc/apache2/conf.d -mv confluent-osdeploy.conf.sles %{buildroot}/etc/apache2/conf.d/confluent-osdeploy.conf -%endif - %files /opt/confluent/lib/osdeploy -%if %is_rh -/etc/httpd/conf.d/confluent-osdeploy.conf -%else -/etc/apache2/conf.d/confluent-osdeploy.conf -%endif -