certbot/certbot-apache/certbot_apache
Joona Hoikkala 7bff0a02e4 Make Apache control script and binary paths configurable on command line (#6238)
This PR adds two new command line parameters, --apache-ctlpath and --apache-binpath both of which are used to construct commands that we shell out for.

The way that we previously fetched values either from Certbot configuration object or the dictionary of distribution based constants is now also unified, and the active options are parsed in prepare() to make it easier to override needed values for the distributions needing this behavior.

Fixes: #5338

* Added the command line options and parsing

* Refactor existing code

* Distro override updates

* Handle vhost_root from cli

* Fix compatibility tests

* Add comment about changes to command line arguments

* Check None properly

* Made help texts consistent

* Keep the old defaults

* Move to shorter CLI parameter names

* No need for specific bin path, nor apache_cmd anymore

* Make sure that we use user provided vhost-root value

* Fix alt restart commands in overrides

* Fix version_cmd defaults in overrides

* Fix comparison

* Remove cruft, and use configuration object for parser parameter
2018-08-02 08:17:38 -07:00
..
augeas_lens Merge Augeas fix for comment line continuations 2016-06-22 10:00:31 +01:00
tests Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
apache_util.py Gradually increasing HSTS max-age (#5912) 2018-06-21 07:27:19 -07:00
augeas_configurator.py Do not parse disabled configuration files from under sites-available on Debian / Ubuntu (#4104) 2017-09-25 12:03:09 -07:00
centos-options-ssl-apache.conf update Apache ciphersuites (#5383) 2018-01-09 07:46:21 -08:00
configurator.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
constants.py Gradually increasing HSTS max-age (#5912) 2018-06-21 07:27:19 -07:00
display_ops.py Files with multiple vhosts are fine. (#6273) 2018-07-31 09:56:03 -07:00
entrypoint.py Add override class for ID="ol" AKA Oracle Linux Server, a clone of CentOS/RHEL. 2018-02-18 15:45:22 -06:00
http_01.py Enable Apache VirtualHost for HTTP challenge validation if not enabled already (#6268) 2018-08-01 12:00:47 -07:00
obj.py Issue 5951/check untyped defs apache (#5989) 2018-05-15 10:40:32 -07:00
options-ssl-apache.conf update Apache ciphersuites (#5383) 2018-01-09 07:46:21 -08:00
override_arch.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
override_centos.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
override_darwin.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
override_debian.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
override_gentoo.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
override_suse.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
parser.py Make Apache control script and binary paths configurable on command line (#6238) 2018-08-02 08:17:38 -07:00
tls_sni_01.py Issue 5951/check untyped defs apache (#5989) 2018-05-15 10:40:32 -07:00