mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Revert "Have osdeploy require apache/ssl and provide config"
This reverts commit ea6155b2a1
.
This rpm is built under centos7 for maximum C compatibility
of the addon utility. For now move the dependency back
to lenovo-confluent
This commit is contained in:
parent
1d596736f3
commit
7f044c45de
@ -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
|
||||
<Directory /var/lib/confluent/public>
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
Options +Indexes +FollowSymLinks
|
||||
</Directory>
|
||||
|
||||
<Location /confluent-api>
|
||||
ProxyPass http://127.0.0.1:4005 retry=0
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
</Location>
|
||||
TraceEnable off
|
@ -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
|
||||
<Directory /var/lib/confluent/public>
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
Options +Indexes +FollowSymLinks
|
||||
</Directory>
|
||||
<Location /confluent-api>
|
||||
ProxyPass http://127.0.0.1:4005 retry=0
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
</Location>
|
||||
TraceEnable off
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user