f14ba917986c28023fcc7673573d66774b9e29bb
Commit Graph

378 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Dmitriy Rabotyagov
f14ba91798 Generate self-signed SSL per listen IP
We're providing an option to have an IP address per VIP
address. Currently it's used only for creating self-signed
SSLs signed with internal CA per each VIP. With follow-up
patches that will also allow to provide user certificates
per VIP, making possible to cover internal and external
endpoints with different non-wildcard certs.
Change-Id: I0a9eb7689eb42b50daf5c94c874bb7429b271efe
2021年06月25日 13:30:25 +00:00
Dmitriy Rabotyagov
f058cf8d61 Replace whitelist with allowlist naming
Change-Id: I568273d0ef1d5ee391a42981e66cc9895b9d71b6
2021年06月16日 14:40:19 +03:00
Zuul
834b2927a7 Merge "Use external PKI role to manage haproxy self-signed certificates" 2021年06月10日 13:38:55 +00:00
Zuul
96c572d507 Merge "Update documentation for keepalived ping addresses" 2021年06月03日 11:25:17 +00:00
Jonathan Rosser
fd7509cd43 Use external PKI role to manage haproxy self-signed certificates
The external PKI role can generate a self signed CA and Intermediate
certificate, and then create a server certificate for haproxy if
no defaults are overridden.
The new openstack_pki_* settings allow an external self signed CA
to be used, but still create valid haproxy server certificates from
that external CA in an openstack-ansible deployment.
The original beheviour providing user supplied certificates in the
haproxy_user_ssl_* variables will still work, disabling the generation
of certificates but using the external PKI role to just install the
supplied certs and keys.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/788031
Change-Id: I7482f55e991bacd9dccd2748c236dcd9d01124f3
2021年06月01日 15:37:29 +00:00
Jonathan Rosser
ca76349e9f Use http-request set-header instead of reqadd
This is needed for HAProxy 2.1 which is in Debian Bullseye
Change-Id: I912c6d810acc137c3b3e73dc40160d6376cb3884
2021年05月13日 16:08:50 +00:00
Jonathan Rosser
51af3928f8 Use integrated tests for haproxy_server
Change-Id: Ie985d5140e0b9cf5f6248a66db057f67ba354fb1
2021年05月12日 06:36:13 +00:00
Dmitriy Rabotyagov
bec3c0e872 Fix haproxy logging
Due to error during migration to journald [1], rsyslog config has
remained intact, which caused logs from journald being copied to
regular logfile, without proper logrotate.
Now we're fixing this and dropping rsyslog config as well.
This will affect only ppl that are upgrading their environments since
Stein
[1] https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/672039/4/tasks/haproxy_post_install.yml#b38
Change-Id: I01689bbb3f331b4d8d4afe9d096a4213072ad7c0
2021年04月16日 21:35:04 +03:00
Jonathan Rosser
abafc878c2 Fix retrieving variable from inside ansible_facts[]
Do not use the dot notation.
Change-Id: Iab7c31624dc0e9b20ff70fd55bbd2bf1091ba857
2021年04月02日 10:39:04 +00:00
Andrew Bonney
357daad5c8 Allow HAProxy stats to be pinned to one or more processes
When HAProxy is run in multi-process mode, the single stats page
shows metrics for one of the processes at a time, with a random
selection made on page reload.
Whilst a more complete solution may be to enable a stats page for
each process, this is a little cumbersome. This addition allows
the stats page to be pinned to one process, providing a partial
snapshot of the state of the instance.
Change-Id: Id9314e5b267aafeaf34c82874eb8bfe0713dfac3
2021年03月25日 14:08:15 +00:00
Andrew Bonney
ed8c437a8c Update documentation for keepalived ping addresses
This update matches changes in the openstack-ansible repo to
enable checks against both internal and external addresses.
Depends-On: https://review.opendev.org/782374
Change-Id: Iedbe887a3d75c240dffcc7998f25d1ee5a09c1e5
2021年03月23日 08:33:07 +00:00
Zuul
93ca84c825 Merge "Updated from OpenStack Ansible Tests" 2021年03月22日 10:47:33 +00:00
OpenStack Proposal Bot
3695146789 Updated from OpenStack Ansible Tests
Change-Id: I3a5b19f348162931e5c1702eda5c60ddfbd4636b
2021年03月22日 08:44:37 +00:00
Jonathan Rosser
a10d00766e Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible
Change-Id: If9dfa6aaa1e90856c6a4c074fd33b8e49b57a5fc
2021年03月21日 20:48:54 +01:00
Zuul
718b163002 Merge "[reno] Stop publishing release notes" 2021年03月18日 09:34:51 +00:00
OpenStack Proposal Bot
cafd5ce7f1 Updated from OpenStack Ansible Tests
Change-Id: Ie849053102ef75755a50d5bd20b1c9f7ad620026
2021年03月12日 22:16:01 +00:00
Jonathan Rosser
d78f6d5528 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: Id98f052df73587f209b9621da0874ce506899f9b
2021年02月23日 09:09:46 +00:00
Dmitriy Rabotyagov
2e29dc94f1 Fix tags usage
This replace include with imports where applicable and fixes
tags usage for include where it needs to be left.
Change-Id: Id7284431e9f97e5b4939472e0a07d573186440a6
2021年02月16日 21:48:23 +02:00
dmitriy
55c6ca9705 [reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need
in publishing release notes for each repository. We should only verify their
validity and linting.
Change-Id: I441126861e4f35e6ae1c96d8acf643bf2c453ed3
2021年01月22日 18:23:17 +02:00
Zuul
fbc7a600c4 Merge "Fix HATop for haproxy" 2020年12月30日 19:12:39 +00:00
Satish Patel
0ef22fa4df Fix HATop for haproxy
Readjust hatop installtion method, removed haproxy_hatop_downloader and
deployment-host variables. added "haproxy_hatop_install | bool" condition.
Change-Id: I51423fff67e6e427f6c7d163d8d1aac6bcd82ca9
2020年12月30日 17:20:42 +00:00
zhangboye
718cc6f388 Add Victoria release info
Add the lack of release information for Victoria, this patch added it.
Change-Id: I4b88f6aaa5841813994d606a7b171ab7fec8db0b
2020年12月29日 14:03:38 +08:00
Marc Gariepy
ca2c011cf2 Add haproxy_frontend_only and haproxy_raw feature.
you can add prometheus metric exposed directly via haproxy if your
version is recent enough.
https://www.haproxy.com/blog/haproxy-exposes-a-prometheus-metrics-endpoint/
Change-Id: I10e7220071290301a85409a1f74fcbad2743d19d
2020年12月14日 19:10:29 +00:00
Satish Patel
a46106d4e7 Python3 supported version of hatop
New hatop package has python3 support.
Change-Id: I69c01f330feb67d92b6b01fea589a35969879da2
2020年12月04日 14:27:42 +00:00
zhoulinhui
7f15ec569f Replace deprecated UPPER_CONSTRAINTS_FILE variable
Change-Id: Id4c2b579bc0c9737d5353c992484f2c872b94151
2020年11月10日 13:11:23 +08:00
Zuul
bc00c85d8f Merge "Define http-01 params with already provided variables" 2020年10月06日 08:04:57 +00:00
Jonathan Rosser
605d889343 Fix linter errors
Change-Id: I5d9d407dc031b86d592a0e56e9a6e4dc04873ad6
2020年10月02日 07:30:16 +01:00
OpenStack Proposal Bot
c815d82949 Updated from OpenStack Ansible Tests
Change-Id: I7e99dc9b93e7faf3bc3d90f3c66af65b64f29c6a
2020年09月24日 16:53:47 +00:00
Dmitriy Rabotyagov
0343893881 Define http-01 params with already provided variables
There's no real need in asking user to manually provide http-01 port and
address when we already have corresponding variables we rely on.
Change-Id: Id0d2a73c863d9bbb8b6280ce42f918127baea354
2020年09月24日 09:55:09 +00:00
Zuul
5d7da9df3b Merge "Add haproxy_backend_only flag to service template" 2020年09月01日 18:51:47 +00:00
Danny Meloy
8120c9a3c5 Add haproxy_backend_only flag to service template
Addition of a `haproxy_backend_only` flag to the service template
for instances in which a frontend service uses ACLs to propgate
requests to multiple backend services, and not all backend services
require a corresponding frontend. This should prevent the
proliferation of spurious frontend services.
Change-Id: I8c419be82cffd289ffcc5086afac923d6eb1a78a
2020年09月01日 11:14:55 +00:00
Dmitriy Rabotyagov
6bd42911f7 Add haproxy_ssl_all_vips variable
This variable will allow to globally control if SSL should be also used
for internal/admin endpoints, or for public only
Change-Id: I1fa990bab5801a6e6fde7176b2011ab1977b30ae
2020年08月20日 13:27:44 +03:00
Jonathan Rosser
4e47093565 Update ansible metadata to indicate support for centos-8
Change-Id: I6b017720f933a06303916e8a1b437c3fb92b7ea6
2020年07月21日 12:44:17 +00:00
Jonathan Rosser
a777bf0721 Update log socket workaround to be for all Centos versions
Change-Id: I49a1b7790bf8c4cba9f0fc140c7282d50d18cb24
2020年07月21日 12:43:58 +00:00
Zuul
065ca5ddf1 Merge "Ensure there is no race between haproxy and certbot for initial cert" 2020年07月03日 17:57:10 +00:00
root
5b589d3dae Add Centos-8 support
Change-Id: I9f579e378effa92ce42ca6219ad7ec09e7feaecb
2020年06月24日 17:46:06 +01:00
Marc Gariepy
6574de7090 remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.
Depends-On: https://review.opendev.org/735289
Depends-On: https://review.opendev.org/734676
Change-Id: I46f5ece04b82ff3131f27be2bb98aead2f07b04e
2020年06月16日 10:26:56 +00:00
Jonathan Rosser
5fba658296 Ensure there is no race between haproxy and certbot for initial cert
The certbot pre-hook is not used during initial setup of the cert,
only during renewal. This means that the same race condition exists
at initial configiuration as renewal. This patch uses the same
approach as used in the renewal pre-hook and applies it during
initialisation of certbot. This fixes race condition related failures
during initial provisioning of haproxy+letsencrypt.
Change-Id: Ica5ed5de24e3eb2fb5a743bb877d113ed0bb8a43
2020年06月08日 16:03:55 +01:00
Zuul
6b60e51005 Merge "Use newer openstackdocstheme and reno versions" 2020年06月05日 11:01:28 +00:00
OpenStack Proposal Bot
8a07725202 Updated from OpenStack Ansible Tests
Change-Id: I2a5a353f006d5dfa9acc10d998fd57e69a25fab8
2020年06月03日 18:59:57 +00:00
Andreas Jaeger
fe338f3490 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I208d5939ba7d881588947d51396085dcf6284431
2020年06月03日 19:01:27 +02:00
8b94c00c63 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: Id8b8a6424ebdeb3c81eb50ee20a0662fdf73e054
Sem-Ver: feature
2020年06月01日 13:09:33 +00:00
OpenStack Proposal Bot
c304e94144 Updated from OpenStack Ansible Tests
Change-Id: Ife4a2e11d1f77a62797ec19f64ee1898ddc29aeb
2020年05月22日 07:00:43 +00:00
Andreas Jaeger
bf243d7c07 Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Change-Id: I3643bb9d00bb4109ec133e072b889a72f5a3248e
2020年05月20日 18:44:51 +02:00
Zuul
19f8746333 Merge "[ussuri][goal] Update contributor documentation" 2020年05月20日 08:48:44 +00:00
Dmitriy Rabotyagov
6180b119a9 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].
[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554
Change-Id: I13b475daf09ec54776db4b28f7ba08a8bbdd5e60
2020年05月18日 08:19:01 +00:00
Logan V
38db41fbd6 Only restart rsyslog when it is installed
Task fails if the host/container does not have rsyslog present. We
can just skip the restart if it is not installed.
Change-Id: Ie4c9a42133c1f042c587cec48f53b4a87bd50952
2020年05月13日 12:40:10 -05:00
OpenStack Proposal Bot
d8b0b15d5a Updated from OpenStack Ansible Tests
Change-Id: Ie4a035efb07234241d22b2dda6b5d6da3f2bd15d
2020年05月12日 18:02:55 +00:00
Jonathan Rosser
ebf2674d6b Add releasenote for HA configuration of LetsEncrypt/Certbot
Change-Id: I7bbd51f6b693593be04f11c695b149fad1237bd3
2020年05月12日 07:33:46 +01:00
Zuul
1dc605c4aa Merge "Allow backend healthcheck interval to be overridden per service" 2020年05月07日 18:54:54 +00:00