diff --git a/README.md b/README.md index 7f4f757..5965268 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Note: You will be asked for a `virtual_ip` during installation of the HAProxy ch Pass an empty value to disable it, or any valid IP to enable; the Keepalived charm will be installed to enable connecting to HA MAAS using the VIP. #### TLS Termination at HA Proxy + While deploying HA Proxy, MAAS Anvil will ask you for filepaths pointing to an SSL certificate and private key. If passed, HA Proxy will be configured to use the given certificate and key for TLS termination. To skip TLS configuration, enter nothing when prompted for the certificate and key files (this is the behavior if `--accept-defaults` is passed). Note that the certificate and key must be accessible by the `maas-anvil` snap; please make sure these files are in a directory that can be accessed, such as `$HOME/.config/anvil`. diff --git a/anvil-python/anvil/commands/haproxy.py b/anvil-python/anvil/commands/haproxy.py index f4b375e..cfcb63e 100644 --- a/anvil-python/anvil/commands/haproxy.py +++ b/anvil-python/anvil/commands/haproxy.py @@ -12,6 +12,7 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. + import ipaddress import logging from os import environ, mkdir