Skip to content
  • Rafael Guterres Jeffman's avatar
    Add FreeIPA version check to module_utils.ansible_freeipa_module. · 2aaabc77
    Rafael Guterres Jeffman authored
    Some attribute values are only accepted for specific FreeIPA versions,
    for example `self` for permission's `bindtype`. Although there are
    options to check for command and parameter availability, there is no
    check for verifying if a value should be accepted.
    
    This patch add a function to evaluate the target FreeIPA host version,
    by comparing a giver version to the current installed one.
    
    The version evaluation uses Python packaging's version comparision,
    which is compatible with PEP 440, if available. If not available, it
    falls back to a string split, that will work for the most common cases,
    but might fail for versions including strings with `rc` or `dev`, for
    example.
    2aaabc77
Loading