Repository navigation
Embed Augeas Httpd lens - #1291
Conversation
|
deals with issue #981 |
|
Travis is all red :( |
|
I know. None of the tests fail locally, I'm trying to debug :/ |
There was a problem hiding this comment.
I'm not sure if it's safe to call dirname on the resource_filename result... resource_filename might create a temporary file (copy it from the distribution to some location on the disk), especially when zip_safe == True
There was a problem hiding this comment.
It seems like Augeas really needs directory. https://pythonhosted.org/setuptools/pkg_resources.html#resource-extraction: "If the named resource is a directory, then all resources within that directory (including subdirectories) are also extracted". So, please move the lens to a subdirectory (letsencrypt-apache/letsencrypt_apache/augeas_lenses/httpd.aug), and use AUGEAS_LENSES = pkg_resources.resource_filename('letsencrypt_apache', 'lenses')
There was a problem hiding this comment.
also, please leave a comment about it somewhere in the repo, maybe letsencrypt-apache/letsencrypt_apache/augeas_lenses/README?
|
I'm still blocked on this, testing it as a local branch here: SwartzCr#3 |
|
I can confirm that the unit tests pass for me locally. |
|
I've just spun up DO droplet with 12.04 x64. It fails with the same errors. It installs |
|
@SwartzCr, if you still plan on working on this PR, I updated it to use the "right" |
There was a problem hiding this comment.
This import is causing the lint error; os isn't used after kuba's commits.
|
Does it work on precise? It's not clear, because of the move to trusty (#1358)... |
|
The apache plugin doesn't work with it on precise, but the client should be okay. Will double check before merging. |
|
So are we effectively dropping support for Ubuntu 12.04 Long Term Support? That does not sound good :( |
|
Precise appears to have Augeas 0.10.0, so that new lens from 1.4.0 won't work with that version of the library. There was a change/fix to the square lenses in Augeas 1.0.0 so certain newer lenses (Httpd being one) can't be run on 0.x. |
|
@kuba People on Ubuntu 12.04 will need to use standalone or webroot for now. That's not ideal, but it's better than not being able to handle the stock config in 15.04+ |
|
Did some extra testing. This seems solid on platforms where augeas 1.2+ is available, and seems to degrade gracefully (no apache plugin) on older ones. |
[needs revision] Embed Augeas Httpd lens
add httpd.aug (from v1.4) to the letsencrypt-apache directory and load it when initializing augeas