Commit Graph

17 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 8ae6540d0b Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I74cefdfa885fa26dd7199fd0798527f511bf329d
2023-07-12 16:07:09 +02: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
Jean-Philippe Evrard 3a2ff676ef Clarify supported SUSE versions
This role only support openSUSE Leap 15, not 42.3, not tumbleweed.
Saying all is confusing and a bad practice. This fixes it, while
ensuring the job is properly defined to test that assertion.

Change-Id: I7bb21d24c70435a6f86ffe860a106c3193cf298c
2019-05-21 16:34:09 +02:00
Jesse Pretorius 968ea1f223 Remove repo_requires_pip_packages and pip_install meta-dep
Given that the openstack_hosts role installs pip and virtualenv,
we do not need this extra meta-dependency and extra task/var.

Change-Id: Iac9f72586f6b26bd31d59a4fa5055687ff77f78b
2018-07-31 18:16:53 +00: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
Jean-Philippe Evrard 15de93de80 Revert "Remove pip_install dependency"
This reverts commit 0aa4981305.
The repo_server and repo_build shouldn't assume to be configured
by openstack_hosts role yet, because their environment is incomplete.

On top of that, when artifacting will be introduced, these roles could
be running outside the openstack hosts (for example, on deploy nodes).

Change-Id: I47a58a46a695b504646bca8100758decb07cbb98
2017-12-05 17:35:50 +00:00
Jean-Philippe Evrard 0aa4981305 Remove pip_install dependency
With addition of pip_install on every node, we don't
need to have pip_install as a meta dependency.

Depends-On: If3412bb888ebb854874bbc43eb76bfcb3e4a7868
Depends-On: I79ff70c438b44753be2a93f004ebbc46de0a963d
Change-Id: Iba21b464fc740639f2653a00d5bac7aff35b9a37
2017-12-05 11:53:26 +00:00
Jesse Pretorius 6320c00217 Implement pypiserver and pypi proxy cache
This patch implements nginx as a reverse proxy for python
packages. The initial query will be to a local deployment
of pypiserver in order to serve any locally built packages,
but if the package is not available locally it will retry
the query against pypi and cache the response.

Depends-On: Id20a43fed833d53ca0f147f517deafba6587352d
Change-Id: Ic4fd64f4dc82121a65088f3d7f4ae53f373df608
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2017-11-24 11:58:18 +00:00
Jean-Philippe Evrard 0c8428d66a Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: Ica0a4f3865861fec34c882c39452a1e592739e8f
2017-10-11 09:10:18 +00: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
Jesse Pretorius 9a11687bd0 Optimise apt cache update task
The update of the apt cache and the package installation
can all be handled in a single task by providing the
package action plugin with the right parameters. This
removes an extra task to optimise execution.

The minimum Ansible version is raised to 2.2 due to a
known bug [1] in Ansible's apt module which does not
update the cache properly if the cache update and the
install are combined in a single task.

[1] https://github.com/ansible/ansible-modules-core/issues/1497

Change-Id: I165479e62e921adb2a46fcbdb3b7c0118b2ef739
2017-04-25 22:54:58 +00:00
Andy McCrae 997047b558 Remove Trusty Support from repo_server role
Change-Id: Ib5e24fcc7509a312ca8ee6c5811c3f194f16d662
Implements: blueprint trusty-removal
2016-12-15 15:32:32 +00:00
Jesse Pretorius add9fda277 Remove pip_install as meta-dependency
The repo_server role does no pip installations - they're all done
in the repo_build role.

This removes the unnecessary dependency.

Note that the httplib2 pip install task is removed as Ansible 2.x
no longer requires it.

Related-Bug: #1633105
Change-Id: I4a2ff6c6e5cd40d87d4218f63c09e96da82da1aa
2016-12-01 18:26:07 +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
Jimmy McCrory eb72dbec3d Remove memcached_server dependency
The repo_server role does not require a memcached server and makes no use
of any related variables. Remove the memcached_server role dependency
and memcached variables.

Change-Id: I1c3b57ac3f25bac0e1640f5735cca7b73b573090
2016-03-07 08:24:36 -08:00
Kevin Carter 725222afee
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-09 09:25:37 -06:00