Commit Graph

3 Commits

Author SHA1 Message Date
Guilherme Steinmüller 56e16a7ba6 Retire openstack-ansible-os_monasca-agent
Change-Id: I3b6bb0ae9413ec54fd5444b45f68a480cbc2744b
2019-06-11 20:25:37 +00:00
Jesse Pretorius 31b4ae3d89 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Simplifies the installation of optional pip packages.
   Right now it's more complicated than it needs to be due
   to us needing to keep the py_pkgs plugin working in the
   integrated build.
3. Deduplicates the distro package installs. Right now the
   role installs the distro packages twice - just before
   building the venv, and during the python_venv_build role
   execution.

Depends-On: https://review.openstack.org/598957
Change-Id: Ic00b23cb61ea7f0269d4e01b944d93accc3a218b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 12:01:07 +00:00
Flávio Ramalho ecae6cc994 Monasca-Agent role refactoring[+docs]
This patch refactors the monasca-agent role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Plugins are automatically configured based on the openstack-ansible
    configuration;
  - Added tests;
  - Added documentation.

The extras directory contains changes necessary to openstack-
ansible to setup monasca-agent.

Change-Id: I3678af93ef460e5c32751e08201e68cef216787d
2017-06-12 10:41:44 -03:00