Changeset - c89b5e6609a4
[Not reviewed]
0 5 0
Branko Majic (branko) - 5 months ago 2023-11-30 18:23:12
branko@majic.rs
MAR-189: Added support for Debian 11 Bullseye to ldap_client role.
5 files changed with 39 insertions and 2 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -577,6 +577,7 @@ Distribution compatibility
 
Role is compatible with the following distributions:
 

	
 
- Debian 10 (Buster)
 
- Debian 11 (Bullseye)
 

	
 

	
 
Examples
roles/ldap_client/meta/main.yml
Show inline comments
 
@@ -9,3 +9,4 @@ galaxy_info:
 
    - name: Debian
 
      versions:
 
        - 10
 
        - 11
roles/ldap_client/molecule/default/molecule.yml
Show inline comments
 
@@ -14,20 +14,34 @@ lint:
 

	
 
platforms:
 

	
 
  - name: parameters-mandatory-buster64
 
  - name: parameters-mandatory-buster
 
    groups:
 
      - parameters-mandatory
 
    box: debian/contrib-buster64
 
    memory: 256
 
    cpus: 1
 

	
 
  - name: parameters-optional-buster64
 
  - name: parameters-optional-buster
 
    groups:
 
      - parameters-optional
 
    box: debian/contrib-buster64
 
    memory: 256
 
    cpus: 1
 

	
 
  - name: parameters-mandatory-bullseye
 
    groups:
 
      - parameters-mandatory
 
    box: debian/bullseye64
 
    memory: 256
 
    cpus: 1
 

	
 
  - name: parameters-optional-bullseye
 
    groups:
 
      - parameters-optional
 
    box: debian/bullseye64
 
    memory: 256
 
    cpus: 1
 

	
 
provisioner:
 
  name: ansible
 
  config_options:
roles/ldap_client/molecule/default/tests/test_default.py
Show inline comments
 
@@ -15,6 +15,19 @@ def test_installed_packages(host):
 
    assert host.package('ldap-utils').is_installed
 

	
 

	
 
def test_ldap_configuration_directory(host):
 
    """
 
    Tests if LDAP client configuration directory has been created.
 
    """
 

	
 
    config = host.file('/etc/ldap')
 

	
 
    assert config.is_directory
 
    assert config.user == 'root'
 
    assert config.group == 'root'
 
    assert config.mode == 0o755
 

	
 

	
 
def test_ldap_configuration_file(host):
 
    """
 
    Tests if LDAP configuration files has been deployed with correct
roles/ldap_client/tasks/main.yml
Show inline comments
 
@@ -5,6 +5,14 @@
 
    name: ldap-utils
 
    state: present
 

	
 
- name: Set-up LDAP client configuration directory
 
  file:
 
    path: /etc/ldap/
 
    state: directory
 
    owner: root
 
    group: root
 
    mode: 0755
 

	
 
- name: Deploy LDAP client configuration file
 
  template:
 
    src: ldap.conf.j2
0 comments (0 inline, 0 general)