Commit Graph

9 Commits

Author SHA1 Message Date
Guilherme Steinmüller 9e3bd3f320 Retire openstack-ansible-os_monasca
Change-Id: Ie8da46562c150885010b47980a1ee26bff4d3bc5
2019-06-11 20:22:23 +00:00
Dmitriy Rabotjagov 4d25ba8e6e Drop private argument for include/import role
Since ansible 2.8 dropped private argument is not supported anymore:
https://github.com/ansible/ansible/issues/45038

Change-Id: Ia2793f92359f386c92dde8b25cc380fcf7460633
2019-05-17 12:04:38 +03:00
kaiokassiano e7c468ed84 Add support for openSUSE
This patch aims to ensure that this role is functional in
opensuse distros.

Change-Id: I153ba0b5ba3b56f70d223f7e472e6213be146f27
2018-10-01 11:49:07 -03:00
Jesse Pretorius 4f08a80f0a 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.

Depends-On: https://review.openstack.org/598957
Change-Id: I52ef39767ba8acc80ca0c9503c58efe7548ebba4
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 12:01:27 +00:00
Jean-Philippe Evrard 402c012b9f Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: Iee01cc384368c76cf191244f4988ef735ee3d5d7
2018-07-13 09:29:19 +02:00
Jesse Pretorius 4b46ce34a7 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

Change-Id: I673a465863559d6fc72e4fdcd5da2ab788e561ab
2018-07-12 18:03:14 +01:00
Jesse Pretorius cac7008e57 Replace virtualenv-tools with a script
virtualenv-tools has a bug which gets triggered in gates: it can't
change the shebang of a virtualenv python bin/ files if they
were generated with a virtualenv script whose shebang ends with
python2 instead of python.

Because we can't modify virtualenv-tools, we use shell scripts
instead.

Change-Id: I62ae0b1f406f102fcb184913c5a6de54bb84c4c2
Partial-Bug: #1741634
Partial-Bug: #1764470
2018-04-24 13:52:24 +00:00
Andy McCrae 049641f02d Allow the developer constraints to be adjusted
In order to do a developer mode that allows installation of packages
from local file, which take precedence over the developer_mode
constraints, we need to allow the order of the constraints to be
changed.

This patch adds a "pip_install_developer_constraints" var which is used
to set the developer mode constraints. By default this will leave the
same behaviour but will allow additional constraints to be added, or the
developermode constraints file to be overriden altogether.

Change-Id: I9fc7e0d9be83af274bb7cd02fff7010d58e908f1
2017-07-03 15:31:20 +01:00
Flávio Ramalho b884927071 Monasca role refactoring[+docs]
This patch refactors the whole monasca role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Install services on its specific cointainer;
  - monasca-thresh, monasca-notification and monasca-persister was
    not being installed/configured, now it is;
  - Tempest tests are ran for the whole monasca-api;
  - The service should be fully functional;
  - Added documentation.

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

Change-Id: Ib53d4311c4b4aa722c7cdf7b18632e23b8639a56
2017-06-19 14:45:02 -03:00