Commit Graph

25 Commits

Author SHA1 Message Date
Jonathan Rosser 309c235a8a Use the same vars file for all versions of centos
Change-Id: I6e61e5e226c22d84d0a427359979dbb4338e890d
2022-05-19 16:41:55 +00:00
Jonathan Rosser 03b55edaae Remove all code for lsync, rsync and ssh
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/842571
Change-Id: I4f32c03179a1d8814548a92fc714a5fd9dd3f433
2022-05-19 16:33:18 +00:00
Dmitriy Rabotyagov 4f3bec1680 Use /run/nginx.pid
In modern systems /var/run folder is just a symlink to
/run with potential to be removed in the future.

Currently, nginx might fail on Debian jobs because of that [1]

[1] https://zuul.opendev.org/t/openstack/build/54263ee3816c484d94505a629558218c/log/logs/openstack/aio1_repo_container-da3488c9/nginx.service.journal-12-02-06.log.txt

Change-Id: I19321a61cce978e781c3581fcc136609b5be8092
2022-04-04 17:46:14 +02:00
Dmitriy Rabotyagov 28b2f59e35 Cleanup CentOS 7 vars file
Change-Id: I983bdc86f61768b1e1cfb713a220c75ddf8ec5ec
2021-08-20 17:52:30 +03:00
Jonathan Rosser dfe91c5ac0 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: Ibe914d0d547b930b8167bfa475cc838df8d7ae25
2021-03-16 08:51:12 +00:00
Jonathan Rosser aab7090e4d Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I3e48000a4685d4df46cd60113ce4c0c02b63dc0c
2021-02-23 09:24:07 +00:00
Satish Patel 03b9cc3926 Add Centos-8 support
Reverting patch https://review.opendev.org/#/c/709532/ which is installing lsyncd using source
but now el8 epel repo providing distro rpm for lsyncd so we don't need to install from source.
also changing lsyncd.conf.lua path to /etc/lsyncd/ for centos8 support.

adding rsync-daemon rpm because centos8 islocated daemon and client in seperate package.

Change-Id: Ia8c1fad5728bd6adec510f8bc1d7bb754393de93
2020-08-24 23:59:47 -04:00
Jonathan Rosser eea73c1011 Add Centos-8 support
This builds lsyncd from source files for CentOS 8 as there is no package
for it.

Change-Id: Iab8d28c32e534e62759dc2bc72bd6368fbea471d
2020-05-27 10:20:41 +00:00
Jonathan Rosser 326e1fab94 Ensure git package is present for centos
Change-Id: I9989152ab31a0c8dfddb0f7b0f0ee38fe0106a75
2020-05-05 11:49:42 +00:00
Dmitriy Rabotyagov 748d86411b Remove git deamon functionality
Caching git repositories has been deprecated in Queens, so it's high time
we removed this functionality.
This shouldn't influece OSA deployments in any way.

Change-Id: I35829aa35489f06dbb3b65f522f0a08318eccbfa
2020-05-02 16:53:16 +01:00
Kourosh Vivan bd8a24716c Add possibility to overwrite nginx public repo
For Centos, we use by default public repo for nginx. You can change this
behaviour with these role-wide variables:
- repo_centos_nginx_mirror
- repo_centos_nginx_key

Or with these osa-wide variables:
- centos_nginx_mirror
- centos_nginx_key

Change-Id: I8dcb3c97e9593877a4a420bd32b50ae29d9d311c
2019-11-05 10:11:11 +01:00
Mohammed Naser ba7b358ccd [redhat] Install rsync-daemon for newer releases
The newer packages havee moved rsyncd into its own package called
rsync-daemon so we'll install that for anything newer than EL7.

Change-Id: Id1e8cc503d71cf6e7d0d84b5a74f6c3d7bce9393
2019-05-10 12:56:22 -04:00
Jonathan Rosser 467f8e3080 Use distro packages only after they are installed
In an environment with sudo and lsyncd not already installed the pre
install tasks try to set up config files before the config directories
exist, and the tasks fail.

This patch moves the sudo and lsyncd config tasks to run after the
distro packages have been installed.

In addition, sudo is added as a required distro package for the
repo server.

Change-Id: Iab09b732d63d007c1d638ec9dc35834e564e5ce5
2018-10-25 12:08:26 +00:00
Jesse Pretorius 6663637374 Remove apt-cacher-ng
The repo container's package cache causes quite a bit of confusion
given that it's a 'hidden' feature which catches deployers off-guard
when they already have their own cache configured. This is really
the kind of service which people should manage outside of OSA. It
also makes no sense if the deployer is using their own local mirror
which is a fairly common practise. Adding to that, it seems that it
is broken in bionic, causing massive delays in package installs.
Finally, it also adds to quite a bit of complexity due to the fact
that it's in a container - so in the playbooks prior to the container's
existence we have to detect whether it's there and add/remove the config
accordingly.

Let's just remove it and let deployers managing their own caching
infrastructure if they want it.

Change-Id: I829b9cfa16fbd1f9f4d33b5943f1e46623e1b157
2018-10-08 14:48:32 +01:00
Kevin Carter 45bb9631b1
Add variable for the ssh service
The ssh service on ubuntu based systems is "ssh" which is established by
the service unit path `/lib/systemd/system/ssh.service`. When running
the service will respond to the name "sshd" however this is just an
alias. This change adds a variable to set the service unit name
based on the distro family which will allow the service to start should
it be masked.

Change-Id: I04b9f5ed761270c0bb76b607a6562b511c6f4773
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-09-30 10:00:05 -05:00
Jesse Pretorius 73941167f1 Ensure that SSHD is installed, enabled and running
The repo server relies on SSHD for the repo synchronisation,
so in this patch we ensure that it is installed, enabled and
running.

Change-Id: I0618e76125fc1489903b3518b9bef3999c8c7347
2018-09-14 14:40:15 -06:00
Mohammed Naser 695503aa24 Add upstream NGINX and EPEL for selected packages only.
With the removal of EPEL, we are selectively adding packages that
we need.  This patch adds EPEL repositories only for lsyncd to
avoid conflicts and the NGINX upstream repositories for the web
server.

Change-Id: I832ae27570c5f35d01728a9e387fc451447b38ce
2018-06-16 23:27:55 -04:00
Markos Chandras 7889f37cdd SUSE: Drop OBS repositories for openSUSE Leap < 42.3
We were installing additional repos for the apt-cacher-ng and
liberasurecode packages which are only necessary for Leap < 42.3.
However, < 42.3 is now EOL so lets drop these repositories since we
can fetch these packages from the default repos in 42.3

Change-Id: I4ba16ea660907c3fb481a9e80d73b750c2f4c138
2017-12-06 15:35:08 +00:00
Markos Chandras c4bb89f3be SUSE: Add OBS:devel:libraries:c_c++ repository
The liberasurecode package does not exist for openSUSE Leap < 42.3
so we need to grab it from the OBS devel repository directly.

Change-Id: If51849507f749ad70864c9f027bae9fa3f3f88be
2017-05-18 12:43:10 +01:00
Markos Chandras 76ca77d16b Add SUSE support
Add support for SUSE based distributions. We also update the bindep.txt,
run_tests.sh, .gitignore, tests-repo-clone.sh and Vagrantfile files
from the openstack-ansible-tests repository.

Change-Id: I5a2b3cae0ed325abb3920e9a684d25898df6027d
2017-05-17 20:38:30 +01:00
Major Hayden b8b9d63592 Deploy lsyncd config properly on CentOS
This patch deploys the lsyncd configuration file and defaults
file to their proper locations on CentOS systems.

Closes-Bug: 1656945
Change-Id: I375ce4c3dbc6a362057a22fef389f5ac652ddd5d
2017-01-16 21:24:40 +00:00
Travis Truman f223f9b180 Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: I6a27bfbd0fc9bbcd341d602bab074b0ea1bdbbca
2016-08-26 14:35:50 -04:00
Jimmy McCrory c87a8c1d4c Remove fastcgi and related configuration
In I62321a7b62dabca469eb072ddbf4e8f250ce0fb3, git daemon was added to
support hosting git repos from the repo server over the git protocol.
When the integrated build transitions to using it, fastcgi and all
related configuration can be removed.

Depends-On: I09bc504490d4b5114895f7f646fc8254748a7f41
Change-Id: I7ec8277d3883d1f8891de6ae2b0881fe026a34c8
2016-07-26 16:15:49 -07:00
Kevin Carter 02e58dfda8 Implemented package caching on the repo server
This change implements package caching on the repo server.
To take advantage of this a deploy will need to do nothing more
than setup an apt-proxy configuration file. This will speed up
package delivery while also providing ha capabilities within the
environment.

Change-Id: I78b2fba6a1f294751bd7098513060015cb41300c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-07-22 10:17:54 +00:00
Jimmy McCrory f59bafd778 Updated role for multi-distro support
Separate files have been created for vars and tasks related to a
specific package manager.

The 'repo_apt_packages' variable has been deprecated and renamed to
the more generalized 'repo_server_packages' to better describe its
purpose and to simplify reuse of existing install tasks between multiple
distros.

git daemon is configured to host git repositories from the repo servers
using the git protocol.

Currently, openstack-ansible uses git over http to access repositories
on servers created by this role.
fcgiwrap and its configuration within nginx should be removed in a
follow-up patch after openstack-ansible has been updated to use the git
protocol.

Change-Id: I62321a7b62dabca469eb072ddbf4e8f250ce0fb3
2016-05-13 10:48:57 +00:00