openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
474 stars 137 forks source link

[change] Use freeradius 3.2 on Ubuntu 22.04 #401 #402

Closed Aryamanz29 closed 1 year ago

Aryamanz29 commented 1 year ago

Closes #401

pandafy commented 1 year ago

Hi @Aryamanz29! I will be taking over this PR. Can you please push any changes you have locally?

Aryamanz29 commented 1 year ago

Hi @Aryamanz29! I will be taking over this PR. Can you please push any changes you have locally?

Not much changes, I'm also testing it locally as follows:

# First check if 'freeradius' is installed and if its version is 3.0.X then use /etc/freeradius/3.0 else use /etc/freeradius
dpkg -s <package_name_here> 2>/dev/null >/dev/null && if $(dpkg --compare-versions $(dpkg-query -f='${Version}\n' --show <package_name_here>) gt <freeradius_verion_here>); then echo /etc/freeradius/3.0; fi || echo /etc/freeradius/
  - name: Update and upgrade apt packages
    shell: |
      sudo apt-get update
      sudo apt-get install -y --no-upgrade freeradius
pandafy commented 1 year ago

@nemesisdesign the builds are failing because importlib-metadata is incompatible with Python 3.7. I have already pinned the version in openwissp-utils. Should I update the role to use the development version of openwisp-utils?