Skip to content

Instantly share code, notes, and snippets.

/README.rst Secret

Created November 25, 2016 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/74880bbd2564db01d80d3cf423d9b4ad to your computer and use it in GitHub Desktop.
Save anonymous/74880bbd2564db01d80d3cf423d9b4ad to your computer and use it in GitHub Desktop.
openstack-ansible-pip_lock_down

Team and repository tags

image

OpenStack pip_lock_down

tags

openstack, pip, lockdown, cloud, ansible

category

*nix

Role to lock pip down to a particular links repo. This will create a .pip.conf which will ensure that the only python packages installed when using pip are from a known repository of packages.

- name: Basic lxc host setup
  hosts: host_group
  user: root
  roles:
    - { role: "pip_lock_down", tags: [ "pip-lock-down" ] }
  vars:
    pip_links:
      name: openstack-release
      link: https://openstack-hostname.something/python_packages/master

This was intended for use with a repository built from the repo role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment