Damian Dabrowski a56b3adcff Install OpenSSL development headers
As it's mentioned in uWSGI docs[1]:
"In order to use https option be sure that you have OpenSSL development
headers installed (e.g. libssl-dev on Debian). Install them and rebuild
uWSGI so the build system will automatically detect it."

This change ensures that required package is installed on the host where
uWSGI is being built.

We don't need to force reinstall during an openstack upgrade because
uWSGI version was bumped in Zed[2] so uWSGI is going to be
reinstalled/upgraded anyway.

According to my tests, OpenSSL development headers are not required for
distro installs.

[1] https://uwsgi-docs.readthedocs.io/en/latest/HTTPS.html
[2] https://review.opendev.org/c/openstack/openstack-ansible/+/864579

Change-Id: Ib3cf675fa22a61ddf800af6276071410163bcf68
2022-12-02 09:55:14 +00:00

26 lines
785 B
YAML

---
# Copyright 2019, VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
uwsgi_bin: '/usr/sbin'
uwsgi_distro_packages:
- uwsgi
- uwsgi-plugin-python3
uwsgi_build_distro_package_list:
- openssl-devel
_uwsgi_env: "REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt"