Commit Graph

16 Commits

Author SHA1 Message Date
Mohammed Naser d0acb95b9f [redhat] Update variables to be version agnostic
The RedHat-based operating systems such as CentOS have a pretty
stable list of packages, therefore, we don't need to pin it by
version and we can instead move to a much more generic redhat.yml
which will support a bigger range of systems.

Change-Id: I87d30e020977ea2f01592bb60b54d02292818d49
2019-05-10 00:10:38 -04:00
Kevin Carter 9748e6b154
Cleanup files and templates using smart sources
The files and templates we carry are almost always in a state of
maintenance. The upstream services are maintaining these files and
there's really no reason we need to carry duplicate copies of them. This
change removes all of the files we expect to get from the upstream
service. while the focus of this change is to remove configuration file
maintenance burdens it also allows the role to execute faster.

  * Source installs have the configuration files within the venv at
    "<<VENV_PATH>>/etc/<<SERVICE_NAME>>". The role will now link the
    default configuration path to this directory. When the service is
    upgraded the link will move to the new venv path.
  * Distro installs package all of the required configuration files.

To maintain our current capabilities to override configuration the
role will fetch files from the disk whenever an override is provided and
then push the fetched file back to the target using `config_template`.

Change-Id: I3e7283bf778a9d686f3ae500b289c1fb43b42b92
Signed-off-by: cloudnull <kevin@cloudnull.com>
2019-02-18 09:06:26 -06:00
Zuul d28c0dced7 Merge "Add cron as a required package" 2018-10-25 17:23:32 +00:00
Jesse Pretorius c5e7333610 Install missing libxml2 distro package
In order to run the glance-api service, the libxml2 library is required,
or the following error will be returned when starting the service:

error while loading shared libraries: libxml2.so.2: cannot open shared object file

To ensure that the library is installed, we add the required package to
the base glance packages.

Depends-On: https://review.openstack.org/613030
Change-Id: I4f2c5df598473152bf319296355b57f4826b3554
2018-10-25 07:16:31 +00:00
Jonathan Rosser e596ee101b Add cron as a required package
The role sets up crontab entries but assumes that the environment
has cron installed. This patch ensures that assumption is correct.

Change-Id: I354f30462205dbf34de946260204b63c11488049
2018-10-24 17:21:45 +01:00
Jesse Pretorius 482d8580b0 Remove python-keystoneclient package install
Now that we no longer use our own keystone module, but
instead make use of the ansible runtime venv's shade
library and upstream ansible modules, we can eliminate
this package/library being installed on the host.

Change-Id: I382a2fed407b159731b9ecd2af16ce80f3bb0b74
2018-09-18 08:36:31 +00:00
Andy Smith 910522562e Add extra distro packages for optional oslo.messaging amqp1 driver
Change-Id: Ib7541da6f50aed75b428037f43ca7d0da7c27a21
2018-09-11 10:06:29 -04:00
Markos Chandras ea75a8ea10 vars: Do not pull devel packages on distro installations
The devel packages are only needed to build the pip pacakges so we don't
need them when we install packages straight from the distro repos.

Change-Id: I97855f8ac677dc34d7e4619b4ec72aa593eca76f
Implements: blueprint openstack-distribution-packages
2018-06-04 10:36:33 +01:00
Markos Chandras ee14464c58 Do not pip install keystoneclient on the host
The keystoneclient package is being installed on the host by PIP but
that means that a whole bunch of required dependencies are being pulled
in as well.

This brings the host to a rather messed up state when installing
keystone from distro packages, since distribution and
PIP packages are being mixed together. We only need the client to
register the service with keystone so we can simply use the distro
package for that to avoid installing lots of PIP packages on the
host.

Implements: blueprint openstack-distribution-packages
Change-Id: I90c9e6732e71e153aa37f9bf69bdda679439f8b3
2018-05-31 08:41:09 +01:00
Markos Chandras 3d7cf92bda vars: Do not install build dependencies for distro installs
The glance_distro_packages contain packages which are build dependencies
to the 'PIP' ones so we don't need to install them when we are using the
Glance distribution packages. This also renames the '*glance_wsgi_bin'
to '*glance_uwsgi_bin' since it refers to the actual uwsgi package.
Finally, we add the missing 'install_method' conditional when recording
the local facts.

Implements: blueprint openstack-distribution-packages
Change-Id: I063a73ca7d50a0ad0bee57ccc42604802ab08220
2018-05-14 12:01:53 +01:00
Markos Chandras ba64ce3083 Add support for using distribution packages for OpenStack services
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.

Change-Id: I026a440b6a0fda43b613e30f359b2a23c3c1151f
Depends-On: I5a78e2120e596d36629b4ba978b2b5df76b149b0
Implements: blueprint openstack-distribution-packages
2018-05-04 15:42:26 +01:00
Mohammed Naser cf2472c4b1 Remove un-used packages from Glance
There are a few packages which are being installed that are not
necessary as they're not used in the role.

Change-Id: I7822498d65572993882b75ec56adf3f1a096da34
2018-02-28 18:35:49 +00:00
Jimmy McCrory 43aa00424f Fix systemd init template for program override
The systemd-init template was not looking at the program_override
variable within each service's dictionary.

This also fixes glance-api so that it's running under uWSGI when the v1
API is disabled. Creating images from a remote URL is exclusive to the
v1 API and does not work when glance-api is run under uWSGI.

The libxml2-dev package is required by uWSGI and has been added to the
distro package list.

Additional options have been added to the uWSGI configuration to better
support requests containing chunked data (image uploads).

Change-Id: I14f3162a4666d770beec9746469021466fa4d449
2017-12-06 08:56:48 -08:00
Markos Chandras e9ae99edbf Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.

Change-Id: Ia3fe5fedbbc2781cf2e7ae4d82c09e0960c6744b
2017-07-06 13:19:19 +01:00
Marc Gariepy c1a802cca1 Add which in CentOS package list
which is needed by virtualenv-tools.

Change-Id: Iacb454ea5d37ce1ccce909c55a979966d86dff5e
2017-01-11 13:58:10 -05:00
Major Hayden ffacc20cc8 Implement CentOS 7 support in os_glance
This change implements CentOS 7 support within the os_glance role.

Change-Id: I65d8e66673f5372fe880680a035842ffcd775ac2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Co-Authored-By: Major Hayden <major@mhtx.net>
Co-Authored-By: Marc Gariepy <gariepy.marc@gmail.com>
2016-09-19 15:47:39 +00:00