Skip to content

Commit

Permalink
Restrict redis version. (#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Nov 15, 2021
1 parent f5b4dcc commit bf7a954
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ redis_bin:
CentOS: /usr/bin/redis-server
FreeBSD: /usr/local/bin/redis-server

redis_module: "{{ (ansible_python_version is version('2.7', '>=')) | ternary('redis', 'redis==2.10.6') }}"
redis_module: redis

redis_password: PASS

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dependencies:
- setup_pkg_mgr
- setup_remote_constraints
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
- name: Install redis module
pip:
name: "{{ redis_module }}"
extra_args: "-c {{ remote_constraints }}"
state: present
notify: cleanup redis

Expand Down
3 changes: 3 additions & 0 deletions tests/utils/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ botocore >= 1.10.0, < 1.14 ; python_version < '2.7' # adds support for the follo
botocore >= 1.10.0 ; python_version >= '2.7' # adds support for the following AWS services: secretsmanager, fms, and acm-pca
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later
cffi >= 1.14.2, != 1.14.3 # Yanked version which older versions of pip will still install:
redis == 2.10.6 ; python_version < '2.7'
redis < 4.0.0 ; python_version >= '2.7' and python_version < '3.6'
redis ; python_version >= '3.6'

# freeze pylint and its requirements for consistent test results
astroid == 2.2.5
Expand Down

0 comments on commit bf7a954

Please sign in to comment.