constants.AUGEAS_LENS_DIR

This commit is contained in:
Jakub Warmuz 2015-11-04 20:12:39 +00:00
parent ac137fc00a
commit f5053ba8af
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
4 changed files with 9 additions and 9 deletions

View file

@ -3,4 +3,4 @@ include README.rst
recursive-include docs *
recursive-include letsencrypt_apache/tests/testdata *
include letsencrypt_apache/options-ssl-apache.conf
include letsencrypt_apache/httpd.aug
recursive-include letsencrypt_apache/augeas_lens *.aug

View file

@ -30,11 +30,11 @@ class AugeasConfigurator(common.Plugin):
def __init__(self, *args, **kwargs):
super(AugeasConfigurator, self).__init__(*args, **kwargs)
# Set Augeas flags to not save backup (we do it ourselves)
# Set Augeas to not load anything by default
my_flags = augeas.Augeas.NONE | augeas.Augeas.NO_MODL_AUTOLOAD
my_dir = os.path.dirname(constants.AUGEAS_HTTPD_LENS)
self.aug = augeas.Augeas(loadpath=my_dir, flags=my_flags)
self.aug = augeas.Augeas(
loadpath=constants.AUGEAS_LENS_DIR,
# Do not save backup (we do it ourselves), do not load
# anything by default
flags=(augeas.Augeas.NONE | augeas.Augeas.NO_MODL_AUTOLOAD))
self.save_notes = ""
# See if any temporary changes need to be recovered

View file

@ -20,9 +20,9 @@ MOD_SSL_CONF_SRC = pkg_resources.resource_filename(
"""Path to the Apache mod_ssl config file found in the Let's Encrypt
distribution."""
AUGEAS_HTTPD_LENS = pkg_resources.resource_filename(
"letsencrypt_apache", "httpd.aug")
"""Path to the Augeas lens"""
AUGEAS_LENS_DIR = pkg_resources.resource_filename(
"letsencrypt_apache", "augeas_lens")
"""Path to the Augeas lens directory"""
REWRITE_HTTPS_ARGS = [
"^", "https://%{SERVER_NAME}%{REQUEST_URI}", "[L,QSA,R=permanent]"]