mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
In https://github.com/certbot/certbot/pull/8748#discussion_r605457670 we discussed about changing the dict used to set OS options for Apache configurators into a dedicated object. * Create _OsOptions class to configure the os specific options of the Apache configurators * Fix tests * Clean imports * Fix naming * Fix compatibility tests * Rename a class * Ensure restart_cmd_alt is set for specific OSes. * Add docstring * Fix override * Fix coverage
24 lines
782 B
Python
24 lines
782 B
Python
""" Distribution specific override class for Arch Linux """
|
|
import zope.interface
|
|
|
|
from certbot import interfaces
|
|
from certbot_apache._internal import configurator
|
|
from certbot_apache._internal.configurator import OsOptions
|
|
|
|
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
|
class ArchConfigurator(configurator.ApacheConfigurator):
|
|
"""Arch Linux specific ApacheConfigurator override class"""
|
|
|
|
OS_DEFAULTS = OsOptions(
|
|
server_root="/etc/httpd",
|
|
vhost_root="/etc/httpd/conf",
|
|
vhost_files="*.conf",
|
|
logs_root="/var/log/httpd",
|
|
ctl="apachectl",
|
|
version_cmd=['apachectl', '-v'],
|
|
restart_cmd=['apachectl', 'graceful'],
|
|
conftest_cmd=['apachectl', 'configtest'],
|
|
challenge_location="/etc/httpd/conf",
|
|
)
|