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.
To clone or view the source code for this repository, visit the role repository for pip_install.
uca_enable: True
uca_apt_repo_url: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
# If you want to use your own keys for UCA or RDO (instead of ubuntu or
# CentOS defaults), please define user_external_repo_key_list, a list
# of dictionaries, each dict with keys/values corresponding to the
# ansible module arguments for your distribution.
#
# For CentOS you'd define the following:
#user_external_repo_keys_list:
# - key: https://my-repo.example.com/signing-key.asc
# You could also use key: <keyid> from a keyserver, see ansible rpm_key doc.
# Validate cert option from the module is also supported.
# In CentOS, refusing to use the RDO package also forces you to add your own
# repository. See below to know how to include your own repository.
#
# For Ubuntu, you'd define the following:
#user_external_repo_keys_list:
# - url: https://my-repo.example.com/signing-key.asc
# This leverages apt_key module, and passes the id, keyserver, and url argument.
# Therefore, you can ensure the id of the key you want to import with id: <keyid>
# or replace the source url with a keyserver.
user_external_repo_keys_list: []
# If you have defined another set of keys you want to include, the chances are
# high you want to give also your own repository.
# For CentOS, define the following list +key/values:
#user_external_repos_list:
# - name: "mymirror"
# baseurl: "http://mymirrorurl/baseurl/"
#See also gpgcheck, gpgkey, description of the Ansible yum_repository module
# For Ubuntu, define something like the following:
#user_external_repos_list:
# - repo: "deb http://mymirrorurl/ubuntu/ xenial main"
# filename: "mymirror"
# If your mirror includes UCA mirroring, you may then want to disable using uca
# by setting in your user variables uca_enable: False
user_external_repos_list: []
# 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/3.3/get-pip.py
pip_fallback_url: https://raw.githubusercontent.com/pypa/get-pip/master/3.3/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"
pip_install_distro_packages: "{{ pip_install_build_packages | ternary(pip_install_distro_build_packages, []) }}"
pip_install_remove_distro_packages: []
pip_install_distro_build_packages: []
# Some pip installations require the system to have a compiler present
# Toggling this will install a compiler and python-dev libraries to the host
pip_install_build_packages: yes
# 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
- setuptools
- wheel
pip_required_pip_packages: []
## 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_disable_version_check: true
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: ""
# Always force getting the latest get-pip script
pip_get_pip_force: yes
None
- name: Install pip and lock it down
hosts: host_name
user: root
roles:
- role: "pip_install"
pip_lock_to_internal_repo: True
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.