Changeset - c3861b9a54bb
[Not reviewed]
0 5 0
Branko Majic (branko) - 2 months ago 2024-02-27 18:19:02
branko@majic.rs
MAR-192: Added support for Debian 12 Bookworm to ldap_server role.
5 files changed with 40 insertions and 2 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -793,6 +793,7 @@ Distribution compatibility
 
Role is compatible with the following distributions:
 

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

	
 

	
 
Examples
roles/ldap_server/meta/main.yml
Show inline comments
 
@@ -18,3 +18,4 @@ galaxy_info:
 
    - name: Debian
 
      versions:
 
        - 11
 
        - 12
roles/ldap_server/molecule/default/molecule.yml
Show inline comments
 
@@ -15,7 +15,7 @@ lint:
 
platforms:
 

	
 
  - name: client
 
    box: debian/bullseye64
 
    box: debian/bookworm64
 
    memory: 512
 
    cpus: 1
 
    provider_raw_config_args:
 
@@ -55,6 +55,35 @@ platforms:
 
        network_name: private_network
 
        type: static
 

	
 
  - name: parameters-mandatory-bookworm
 
    groups:
 
      - parameters-mandatory
 
    box: debian/bookworm64
 
    memory: 384
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 
    interfaces:
 
      - auto_config: true
 
        ip: 192.168.56.21
 
        network_name: private_network
 
        type: static
 

	
 
  - name: parameters-optional-bookworm
 
    groups:
 
      - parameters-optional
 
      - backup-server
 
    box: debian/bookworm64
 
    memory: 384
 
    cpus: 1
 
    provider_raw_config_args:
 
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"
 
    interfaces:
 
      - auto_config: true
 
        ip: 192.168.56.22
 
        network_name: private_network
 
        type: static
 

	
 
provisioner:
 
  name: ansible
 
  playbooks:
roles/ldap_server/molecule/default/prepare.yml
Show inline comments
 
@@ -27,6 +27,10 @@
 
          fqdn: parameters-mandatory
 
        - name: parameters-optional-bullseye_ldap
 
          fqdn: parameters-optional
 
        - name: parameters-mandatory-bookworm_ldap
 
          fqdn: parameters-mandatory
 
        - name: parameters-optional-bookworm_ldap
 
          fqdn: parameters-optional
 

	
 
    - name: Set-up link to generated X.509 material
 
      file:
 
@@ -81,6 +85,8 @@
 
      with_dict:
 
        192.168.56.31: parameters-mandatory-bullseye
 
        192.168.56.32: parameters-optional-bullseye
 
        192.168.56.21: parameters-mandatory-bookworm
 
        192.168.56.22: parameters-optional-bookworm
 

	
 
- hosts: parameters-optional
 
  become: true
roles/ldap_server/molecule/default/tests/test_mandatory.py
Show inline comments
 
@@ -128,7 +128,8 @@ def test_permissions(host):
 
    with host.sudo():
 
        permissions = host.run("ldapsearch -o ldif-wrap=no -H ldapi:/// -Q -LLL -Y EXTERNAL -b 'olcDatabase={1}mdb,cn=config' -s base olcAccess olcAccess")
 

	
 
        expected_permissions = """olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by dn="cn=admin,dc=local" manage by * break
 
        expected_permissions = \
 
            """olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by dn="cn=admin,dc=local" manage by * break
 
olcAccess: {1}to attrs=userPassword,shadowLastChange by self write by anonymous auth by * none
 
olcAccess: {2}to dn.base="" by * read
 
olcAccess: {3}to * by self write by dn="cn=admin,dc=local" write by users read by * none"""
0 comments (0 inline, 0 general)