Changeset - 09e9aaa170b3
[Not reviewed]
0 3 0
Branko Majic (branko) - 20 days ago 2024-08-30 23:03:22
branko@majic.rs
MAR-239: Dropped support for Debian 11 Bullseye from the wsgi_website role.
3 files changed with 2 insertions and 16 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/defaults/main.yml
Show inline comments
 
@@ -22,4 +22,4 @@ user: "web-{{ fqdn | replace('.', '_') }}"
 
home: "/var/www/{{ fqdn }}"
 
python_interpreter: "/usr/bin/python3"
 
pip_check_requirements_upgrades_directory: "/etc/pip_check_requirements_upgrades"
 
virtualenv_prompt: "{% if ansible_distribution_release == 'bullseye' %}({{ fqdn }}) {% else %}{{ fqdn }}{% endif %}"
 
virtualenv_prompt: "{{ fqdn }}"
roles/wsgi_website/molecule/default/molecule.yml
Show inline comments
 
@@ -14,17 +14,6 @@ lint:
 

	
 
platforms:
 

	
 
  - name: wsgi-website-bullseye
 
    groups:
 
      - wsgi-website
 
      - parameters-mandatory
 
      - parameters-optional
 
    box: debian/bullseye64
 
    memory: 512
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 

	
 
  - name: wsgi-website-bookworm
 
    groups:
 
      - wsgi-website
roles/wsgi_website/molecule/default/tests/conftest.py
Show inline comments
 
@@ -11,7 +11,6 @@ def python_info(host):
 

	
 
    Currently supports:
 

	
 
    - Debian 11 (Bullseye)
 
    - Debian 12 (Bookworm)
 

	
 
    Resulting information can be accessed through returned named tuple
 
@@ -25,9 +24,7 @@ def python_info(host):
 
    ansible_facts = host.ansible("setup")["ansible_facts"]
 
    ansible_distribution_release = ansible_facts['ansible_distribution_release']
 

	
 
    if ansible_distribution_release == 'bullseye':
 
        info = PythonInfo(python_version="3.9.2")
 
    elif ansible_distribution_release == 'bookworm':
 
    if ansible_distribution_release == 'bookworm':
 
        info = PythonInfo(python_version="3.11.2")
 
    else:
 
        raise Exception('The php_info pytest fixture does not support Debian release: %s' % ansible_distribution_release)
0 comments (0 inline, 0 general)