hooks/ceph_radosgw_context.py
def resolve_http_frontend():
    """Automatically determine the HTTP frontend configuration

    Determines the best HTTP frontend configuration based
    on the Ceph release in use and the architecture of the
    machine being used.

    :returns http frontend configuration to use.
    :rtype: str
    """
    octopus_or_later = cmp_pkgrevno('radosgw', '15.2.0') >= 0
    pacific_or_later = cmp_pkgrevno('radosgw', '16.2.0') >= 0
    if octopus_or_later:
        # Pacific or later supports beast on all architectures
        # but octopus does not support s390x or riscv64
        if not pacific_or_later and arch() in UNSUPPORTED_BEAST_ARCHS:
            return CIVETWEB_FRONTEND
        else:
            return BEAST_FRONTEND
    return CIVETWEB_FRONTEND
Automatically determine the HTTP frontend configuration

    Determines the best HTTP frontend configuration based
    on the Ceph release in use and the architecture of the
    machine being used.

    :returns http frontend configuration to use.
    :rtype: str
    
Automatically determine the HTTP frontend configuration
Determines the best HTTP frontend configuration based
on the Ceph release in use and the architecture of the
machine being used.

:returns http frontend configuration to use.
:rtype: str
Automatically determine the HTTP frontend configuration Determines the best HTTP frontend configuration based on the Ceph release in use and the architecture of the machine being used . : returns http frontend configuration to use . : rtype : str
def resolve_http_frontend():
    octopus_or_later = cmp_pkgrevno('radosgw', '15.2.0') >= 0
    pacific_or_later = cmp_pkgrevno('radosgw', '16.2.0') >= 0
    if octopus_or_later:
        if not pacific_or_later and arch() in UNSUPPORTED_BEAST_ARCHS:
            return CIVETWEB_FRONTEND
        else:
            return BEAST_FRONTEND
    return CIVETWEB_FRONTEND
def resolve_http_frontend ( ) : octopus_or_later = cmp_pkgrevno ( 'radosgw' , '15.2.0' ) >= 0 pacific_or_later = cmp_pkgrevno ( 'radosgw' , '16.2.0' ) >= 0 if octopus_or_later : if not pacific_or_later and arch ( ) in UNSUPPORTED_BEAST_ARCHS : return CIVETWEB_FRONTEND else : return BEAST_FRONTEND return CIVETWEB_FRONTEND
Automatically determine the HTTP frontend configuration
Determines the best HTTP frontend configuration based
on the Ceph release in use and the architecture of the
machine being used.
Automatically determine the HTTP frontend configuration Determines the best HTTP frontend configuration based on the Ceph release in use and the architecture of the machine being used .
"""Automatically determine the HTTP frontend configuration

    Determines the best HTTP frontend configuration based
    on the Ceph release in use and the architecture of the
    machine being used.

    :returns http frontend configuration to use.
    :rtype: str
    """ # Pacific or later supports beast on all architectures # but octopus does not support s390x or riscv64