This role will install pip using the upstream pip installation script. Within the installation of pip the role will create a .pip directory within the deploying user’s home folder and a blank selfcheck JSON file for pip to use to keep track of versions.
It can also configure pip links that will restrict the package sources to the OpenStack-Ansible repository.
# Set the package install state for distribution packages
# Options are 'present' and 'latest'
pip_install_package_state: "latest"
## Path to pip download/installation script.
pip_upstream_url: https://bootstrap.pypa.io/get-pip.py
pip_fallback_url: https://raw.githubusercontent.com/pypa/get-pip/master/get-pip.py
# Allow the deployer to force pip to download locally to the deployment host
# and copy it to the remote container for installation. Useful for environments
# where the containers lack internet access.
pip_offline_install: false
pip_tmp_packages: /tmp/pip_install
# Additional options that you might want to pass to "get-pip.py" when installing pip.
# Default `pip_get_pip_options` is an empty string.
pip_get_pip_options: ""
pip_source_install_options: ""
# The URL/path of a constraints file to use when installing the additional pip packages.
#pip_install_upper_constraints: "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton"
# This list var can be used to specify specific versions of pip, setuptools,
# wheel and any other packages which must be installed when pip installs.
pip_packages:
- pip
pip_required_pip_packages:
- ndg-httpsclient # SSL SNI support
- requests # SSL SNI support
## APT Cache options
cache_timeout: 600
# Validate Certificates when downloading pip. May be set to "no" when proxy server
# is intercepting the certificates.
pip_validate_certs: "yes"
pip_lock_to_internal_repo: False
# Options for pip global
pip_enable_pre_releases: true
pip_timeout: 120
# Options for pip install
pip_upgrade: true
# Drop link files to lock down pip
# Example:
# pip_links:
# - name: "openstack_release"
# link: "{{ openstack_repo_url }}/os-releases/{{ openstack_release }}/"
pip_links: []
## Tunable overrides
pip_global_conf_overrides: {}
## Additional options to pass to pip
# Example:
# pip_install_options: "--cert /etc/ssl/certs/ca-certificates.crt"
#
# See the documentationat https://pip.pypa.io/en/stable/reference/pip
# for details.
pip_install_options: ""
None
- name: Install pip and lock it down
hosts: host_name
user: root
roles:
- role: "pip_install"
pip_lock_to_internal_repo: True