Commit Graph

8 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov d9df50f4e3 Retire pip_install 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: Ibf9ce1d602c5cfa9ed7431ca37de02df3335b36a
2020-04-06 14:27:00 +00:00
Jesse Pretorius 4e7e23f6e9 Remove selfcheck.json
The file selfcheck.json has no discernable purpose,
so it is removed. The file pip-selfcheck.json is
automatically created by pip and used to track
when last it checked if it's on the latest version.

The tags implemented in the role are also corrected
to ensure that the placement of the pip.conf file
is considered a 'config' task, not an 'install'
task. The sub-tags are removed as they are unnecessary.

Change-Id: I53ad3a9c50071a34286f2351f5f245f272c07638
2017-11-24 16:48:02 +00:00
Major Hayden 132c6c15e5 Copy RPM keys into correct place
This patch copies the RPM keys into /etc/pki/rpm-gpg/ and
maintains their original names. This should allow the LXC
cache process to copy over the keys.

Depends-On: Icfd7e2b110541f85bf98efc384a9698dbbbd9682
Change-Id: I8acf7237c1bcbf7dc98d08aa5907972b69574bba
2017-10-26 12:09:23 +00:00
Jean-Philippe Evrard 8d8a578280 Vendor in the RDO GPG keys to install
This way we avoid all networking failures.

Change-Id: I07b04301629e3b2a176c210ed7989f8d699b7e8c
2017-10-25 15:55:39 +00:00
Jimmy McCrory 0c40d7a7bf Template pip.conf directly
With the pip_install and pip_lock_down roles merged, the tasks can be
simplified and pip.conf can be templated directly instead of requiring
a script.

Change-Id: Ia1ff5b10e0c9eccbacb130c89c784bcc77356505
2017-02-14 19:04:12 +00:00
gecong1973 8e36876efa Using sys.exit(main()) instead of main()
As we known, Exceptions are raised by the sys.exit() function.
When they are not handled, no stack traceback is printed in the Python interpreter.

In this patch we have known main() got return values(eg:0, 1), but it can't
specifies exit status when terminate the main thread by unusing sys.exit().
So when using sys.exit(main()) instead of main() may be more readable and reasonable.

Change-Id: I2866eeab39f5e3b82c568eaa90660b6fb7d17e26
2016-12-28 10:57:42 +08:00
Travis Truman c7d3889bd8 Combine pip_install and pip_lockdown roles
Since lockdown is really just a form of specific pip
configuration and since the pip_install role already does
some pip configuration, it seems logical and desirable for
these functions to take place in the same role.

This change should pave the way for a simplification of
role dependencies and the removal of explicit pip_lockdown
role usage with various playbooks that will already have a
dependency on pip_install.

Change-Id: Ia0fc276c2b501f16d4acf73bbbcad6f80804628e
2016-05-03 11:12:18 -04:00
Kevin Carter 2dd4df9d3d
IRR for pip_install
The change moves the role out from the main repo pip_install
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-03 02:34:10 -06:00