Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov f72de305b8 Retire openstack-ansible-repo_build role
As repo_build role has been succesfully replaced with
python_venv_build role, we have no need in it's futher maintaining and
releasing.

Depends-On: https://review.opendev.org/717715
Change-Id: Iaf1d6da8192afbbd18c64e2b58d54fa5804fe43c
2020-04-06 14:30:36 +03:00
Dmitriy Rabotjagov 155b2b08b0 debian: add support
This patch adds support for this role to be able to deploy on
Debian Stretch.

Change-Id: I8b580d5afc62e819851a17f42bb0bb01ec3c4b76
2019-04-22 20:29:42 +03:00
Markos Chandras 420b98ead4 SUSE: Add support for openSUSE Leap 15
Change-Id: I1d6782b6fcbcc788930d9a0f3e4a434cb801cf00
2018-10-23 12:44:06 +01:00
Jesse Pretorius d3bcd1c951 Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding
dependencies, we no longer need the role to install the
MariaDB client libraries.

Change-Id: I3d752bdde0dc38fd0cf4a5941b9d4496189dddb7
2018-09-15 23:28:52 -06:00
Jesse Pretorius a93b12fd72 Remove pip_install meta-dep
Given that the openstack_hosts role installs pip and virtualenv,
we do not need this extra meta-dependency.

Change-Id: I7e0e689d691e4fe483927b2c82063bc85313b5ba
2018-07-31 19:16:06 +01:00
Jean-Philippe Evrard daf77cbbfb Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: I182eb446642af9924e7b7e6da267260d03d1447c
2017-10-11 09:09:40 +00:00
Markos Chandras a0ca13626a Add SUSE support
Add support for SUSE based distributions. Since we grab some packages
from the OBS repositories, we need to use the 'force' option to allow
zypper switch vendor on these packages. We also update the bindep.txt,
run_tests.sh, tests-repo-clone.sh and Vagrantfile files from the
openstack-ansible-tests repository.

Change-Id: Icea249aae20156b253017c6028f0ba2bb74bd577
2017-05-19 11:08:14 +01:00
Jenkins 6c3e2ea540 Merge "Update metadata to include CentOS" 2017-05-05 13:14:29 +00:00
Jesse Pretorius dfba29b65a Update metadata to include CentOS
Depends-On: Ia1dbd488611c5284edd7c3965a04acb805ebb67c
Change-Id: Ib168df14369366d8fad27701947b8602029ec194
2017-05-03 15:07:27 +00:00
Jimmy McCrory 9dfb01f0ce 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 lxc package is no longer a dependency of lxc-dev, so the task to
override lxc-net is no longer necessary and would not effect a systemd
service anyway.

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

Change-Id: I0b1b5e5413aa3d4496f15f64e3673f4229bbe237
2017-05-03 11:23:33 +01:00
Andy McCrae 74b5246637 Remove Trusty support from repo_build role
Change-Id: I06991d14ff62deee08265cfaf4caac808051ea5f
Implements: blueprint trusty-removal
2016-12-15 15:28:32 +00:00
Jesse Pretorius 84010f0ffd Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.
- The role dependency order and role-requirements order was changed
  to ensure that ansible-galaxy does not fail when not forced.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: Ideb7d77a845d1d1119bddf89d1a8c9b7d9517db8
2016-07-08 14:10:41 +01:00
Travis Truman 1f52306c52 Adjusting dependency to supply required var
The repo_build role depends upon galera_client
only to ensure the correct galera packages are
installed. See I6536993523f02ba49da741b9ea21535eb33fe402
for more details. As such, there is no need to create
the client config file.

Change-Id: I943da143300d869e486d9b7a15023650493bd9c4
2016-04-11 10:26:45 -04:00
Kevin Carter 9e6b78a9b4
Add the galera_client dependency to the repo build
This change is required because without it the client libraries
used to build the MySQL-Python packages will depend on the base
system and they will be wrong.

This is an example of the issue:
  http://paste.openstack.org/show/492788/

This will cause multi node production issues when building a
standalong repository outside of the the OpenStack gate.

Closes-Bug: #1565128
Change-Id: I6536993523f02ba49da741b9ea21535eb33fe402
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-01 18:17:59 -05:00
Kevin Carter 808407db83 Updated the repo-build process
This commit changes the repo build play such that it no longer
requires "yaprt". The intention here is to make the build process
less of a blackbox, simpler, and faster. With recent improvements
in OpenStack and PIP we're now able to do a lot more without the
use of the "yaprt" tool. Repo building is now its own standalone
role.

This PR now reintroduces the repo-clone ability which is now made
smarter. The repo-build process creates a manifest file which is
used to provide the ability to sync exactly the contents of the
tagged release. This will make repeatable deployments faster for
downstream consumers.

The repo-store-source.yml play was removed because it hasn't been
used as the repo clone process is part of the main repo build
process.

DocImpact
UpgradeImpact
Change-Id: Icb0a4e3443491eb0242125ea59f8d5b50f89410b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-10-22 20:04:27 +00:00