Changeset - 5de184fba30f
[Not reviewed]
0 4 0
Branko Majic (branko) - 5 years ago 2018-11-04 21:27:29
branko@majic.rs
MAR-134: Make sure the Python setuptools are available for virtualenv use:

- Must be present for pipreqcheck virtual environments to get setup
correctly.
- Should be a good idea to include it in the default web server config
too.
4 files changed with 11 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/common/molecule/default/tests/test_default.py
Show inline comments
 
@@ -119,6 +119,8 @@ def test_installed_packages(host):
 
    assert host.package('rcconf').is_installed
 
    assert host.package('ferm').is_installed
 
    assert host.package('apticron').is_installed
 
    assert host.package('python-setuptools').is_installed
 
    assert host.package('python3-setuptools').is_installed
 
    assert host.package('virtualenv').is_installed
 

	
 

	
roles/common/tasks/main.yml
Show inline comments
 
@@ -277,9 +277,12 @@
 
    state: present
 

	
 
# Implementation for checking pip requirements files via via pip-tools.
 
- name: Install virtualenv for pip requirements checks
 
- name: Install packages required for running pip requirements checks
 
  apt:
 
    name: virtualenv
 
    name:
 
      - python-setuptools
 
      - python3-setuptools
 
      - virtualenv
 
    state: present
 

	
 
- name: Create dedicated group for user running pip requirements checks
roles/web_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -13,6 +13,8 @@ def test_installed_packages(host, php_info):
 
    """
 

	
 
    assert host.package('nginx').is_installed
 
    assert host.package('python-setuptools').is_installed
 
    assert host.package('python3-setuptools').is_installed
 
    assert host.package('virtualenv').is_installed
 
    assert host.package('virtualenvwrapper').is_installed
 
    assert host.package(php_info.fpm_package).is_installed
roles/web_server/tasks/main.yml
Show inline comments
 
@@ -132,6 +132,8 @@
 
    name: "{{ item }}"
 
    state: present
 
  with_items:
 
    - python-setuptools
 
    - python3-setuptools
 
    - virtualenv
 
    - virtualenvwrapper
 

	
0 comments (0 inline, 0 general)