Changeset - 2d7abfa9286a
[Not reviewed]
0 4 0
Branko Majic (branko) - 5 months ago 2023-11-19 13:10:30
branko@majic.rs
MAR-181: Deploy Prosody modules (in order to use the LDAP authentcation):

- Replaces the rolled-out-by-hand authentication module, making it
less dependent on upstream repository.
4 files changed with 12 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/releasenotes.rst
Show inline comments
 
@@ -31,6 +31,10 @@ run applications using Debian-only repositories.
 
  * Prosody package and some of its dependencies are installed from
 
    Debian backports to get more featureful release installed.
 

	
 
  * Role no longer depends on fetching external Prosody modules from
 
    project code repository, and instead relies on the prosody-modules
 
    package for LDAP authentication module.
 

	
 

	
 
6.0.0
 
-----
roles/xmpp_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -18,6 +18,7 @@ def test_supporting_packages_installed(host):
 

	
 
    assert host.package('python-apt').is_installed
 
    assert host.package('lua-ldap').is_installed
 
    assert host.package('prosody-modules').is_installed
 

	
 

	
 
def test_prosody_user(host):
 
@@ -331,9 +332,11 @@ def test_backports_prosody_pinning(host):
 
    assert pin.mode == 0o644
 

	
 
    prosody_package = host.package("prosody")
 
    prosody_modules_package = host.package("prosody-modules")
 
    lua_ldap_package = host.package("lua-sec")
 

	
 
    assert "bpo" in prosody_package.version
 
    assert "bpo" in prosody_modules_package.version
 
    assert "bpo" in lua_ldap_package.version
 

	
 

	
roles/xmpp_server/tasks/main.yml
Show inline comments
 
@@ -64,9 +64,11 @@
 
    repo: "deb http://packages.prosody.im/debian {{ ansible_distribution_release }} main"
 
    state: absent
 

	
 
- name: Install Lua LDAP library
 
- name: Install additional Prosody dependencies
 
  apt:
 
    name: lua-ldap
 
    name:
 
      - lua-ldap
 
      - prosody-modules
 
    state: present
 
  notify:
 
    - Restart Prosody
roles/xmpp_server/templates/prosody_backports_pin.j2
Show inline comments
 
@@ -3,6 +3,6 @@
 
# to get more up-to-date features and bug/security updates.
 
#
 

	
 
Package: prosody lua-sec
 
Package: prosody prosody-modules lua-sec
 
Pin: release a={{ ansible_distribution_release }}-backports
 
Pin-Priority: 600
0 comments (0 inline, 0 general)