Commit Graph

15 Commits

Author SHA1 Message Date
Guilherme Steinmüller d4e03338cf Retire openstack-ansible-os_molteniron
Change-Id: Idbf958f59a5443abc35d5ed09d086be0ec9688d6
2019-04-24 16:33:17 -04:00
Jesse Pretorius 96fb59ac5a 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: I2eba8e7ca3f66169094264f31f3e182287dfa9b2
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 12:00:19 +00:00
Jonathan Rosser 249edd9812 Use generic vars file for ubuntu
These vars work for both Xenial and Bionic

Change-Id: I5f2aeb60371ced8b69c42b60a0cd0f30fa5a7651
2018-07-31 09:55:12 +01:00
Jesse Pretorius 879c1db7cf Use package module to install distro packages
Consolidate distro package install tasks into a
single task using the package module and pass
the package list into the name instead of using
a with_items loop.

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

Also:
- split install tasks into pre-install, install and
  post-install tasks and tag them appropriately.

Change-Id: I0c5cc16ba1d82b7fd169156d1890c86614210cad
2017-05-02 13:08:49 +00:00
Mark Hamzy 01fb87dbbc Remove molteniron_conf_dir 2017-02-23 13:44:20 -06:00
Mark Hamzy 6226dc87f8 Add python-mysqldb to molteniron_distro_packages 2017-02-13 06:04:51 -06:00
Mark Hamzy 81e4ea8531 Add install_molteniron and other needed vars 2017-02-13 06:03:52 -06:00
Mark Hamzy 4e43a57050 Ubuntu 14.04 uses python3.4 2017-02-13 05:47:53 -06:00
Mark Hamzy 28ed345a07 Consolidate tasks to pass gate check 2017-02-08 10:40:48 -06:00
Mark Hamzy bfeba15dc9 Use IBM Copyright 2017-02-05 13:47:50 -06:00
Mark Hamzy 7321e2f2d2 Add start molteniron server 2017-02-05 08:44:05 -06:00
Mark Hamzy 1eb17c4d60 Add python-mysqldb 2017-02-05 08:01:18 -06:00
Mark Hamzy 423a17f69a add molteniron_developer_mode_distro_packages 2017-02-05 05:26:03 -06:00
Mark Hamzy ff650fa3a1 Use os packages rather than pip packages 2017-02-01 09:37:41 -06:00
Mark Hamzy af4bf90af0 Add vars directory 2017-02-01 09:29:45 -06:00