Commit Graph

5 Commits

Author SHA1 Message Date
Markos Chandras 86539d9ccc Revert "Install EPEL repositories manually and exclude Python packages"
This reverts commit 0b32750d11.

Installing EPEL globally is causing package conflicts with the RDO
repository so we should only install it when necessary. This also
ensures that the epel-release package is absent.

Change-Id: I90b375f67455b7d5c3dba25c3ff1579afaad1da2
2018-06-13 11:29:36 +01:00
Mohammed Naser 0b32750d11 Install EPEL repositories manually and exclude Python packages
The EPEL repositories currently have conflicts with the OpenStack
RDO packages.  However, we don't need any Python packages from
EPEL therefore this will solve the conflicts and it will not
let it pull anything from EPEL.

Change-Id: I80443e50d930cf792dd81cd656f0897b7f02800e
2018-06-07 10:44:22 -04:00
Jean-Philippe Evrard f8a150cc76 Add the ability to run the role on all hosts
We currently have spread out package/host management to multiple
roles, sometimes repeating ourselves in the process (see
pip_install and openstack_hosts overlap)

That is against Ansible principles, and we should have one role
that configures the minimum (to run openstack), applying it to
all the nodes, maybe behaving slightly differently depending on
some parameters. Here that parameter is if the host is a container
or not. If the host is a container, all the physical host
configuration (kernel and sysctl) is be skipped, the
rest of the configuration (packages/repos) still applies.

This needed a refactor to split the tasks into those two group
while remaining efficient and avoid multiple back and forth
of package installs/removal. For that last point, new defaults
variables were introduced, allowing overrides per host/group.
A node now member of a group x can now directly use this role
to setup all its necessary repos and keys.

Last, but not least, this override mechanism can now easily
trigger pip_install role, which can from now on, be removed
from every role. On top of that pip_install role can now
remove its repo management, and focus on installing pip on
hosts that don't have a proper version of pip installed.

Change-Id: Ibf145e561c80a12055bd4d5dca3914c4d495a748
2017-11-24 14:50:40 +00:00
Major Hayden 7a822f2f3c Copy RPM keys into correct place
This patch copies the RPM keys into /etc/pki/rpm-gpg/ and
maintains their original names. This should allow the LXC
cache process to copy over the keys.

Change-Id: Icfd7e2b110541f85bf98efc384a9698dbbbd9682
2017-10-26 11:32:36 +02:00
Jean-Philippe Evrard 926290de04 Vendor in the RDO GPG keys to install
This way we avoid all networking failures.

Change-Id: If95de543d2a2a7ad22435900e7923fc942cdd297
2017-10-25 15:55:10 +00:00