)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"3011a589086203d97478575df474ab8df35fad12","unresolved":false,"context_lines":[{"line_number":9,"context_line":"- installs certbot-auto"},{"line_number":10,"context_line":"- generates and validates ssl cert"},{"line_number":11,"context_line":"- installs cert in haproxy settings"},{"line_number":12,"context_line":"- renew cert is not implemented"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: Iea59ec2893a988b184ca8bc70e1d273ac071551e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_815bf983","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":31},"updated":"2018-09-08 13:31:43.000000000","message":"It would seem to me that a letsencrypt implementation should also implement automated renewal, otherwise it\u0027s not particularly useful. Has this been left out for any particular reason?","commit_id":"fbced9a3b829def0cbea2738a3a841d99cd85ba5"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"fbb7dc61661f35ec83fc92d781862daabcf6ae69","unresolved":false,"context_lines":[{"line_number":9,"context_line":"- installs certbot-auto"},{"line_number":10,"context_line":"- generates and validates ssl cert"},{"line_number":11,"context_line":"- installs cert in haproxy settings"},{"line_number":12,"context_line":"- renew cert is not implemented"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: Iea59ec2893a988b184ca8bc70e1d273ac071551e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_45659848","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":31},"in_reply_to":"3f79a3b5_815bf983","updated":"2018-09-12 20:22:11.000000000","message":"My known use cases are test/lab installations on short-running servers. Normally I bootstrap the whole VM and install a fresh OSA again. The livecycle is too short for a renew cert. This makes only sense for long-running servers or in production. But in this environment are normally real certs are used.","commit_id":"fbced9a3b829def0cbea2738a3a841d99cd85ba5"}],"defaults/main.yml":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":67,"context_line":"haproxy_ssl_self_signed_subject: \"/C\u003dUS/ST\u003dTexas/L\u003dSan Antonio/O\u003dIT/CN\u003d{{ external_lb_vip_address }}/subjectAltName\u003dIP.1\u003d{{ external_lb_vip_address }}\""},{"line_number":68,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":69,"context_line":"haproxy_ssl_bind_options: \"no-sslv3\""},{"line_number":70,"context_line":"haproxy_ssl_fqdn_public: false"},{"line_number":71,"context_line":"# activate letsencrypt option"},{"line_number":72,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":73,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_117a5775","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":30},"updated":"2018-11-20 13:34:01.000000000","message":"I am not sure we should use this, as we could as well use the external_lb_vip_address.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":67,"context_line":"haproxy_ssl_self_signed_subject: \"/C\u003dUS/ST\u003dTexas/L\u003dSan Antonio/O\u003dIT/CN\u003d{{ external_lb_vip_address }}/subjectAltName\u003dIP.1\u003d{{ external_lb_vip_address }}\""},{"line_number":68,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":69,"context_line":"haproxy_ssl_bind_options: \"no-sslv3\""},{"line_number":70,"context_line":"haproxy_ssl_fqdn_public: false"},{"line_number":71,"context_line":"# activate letsencrypt option"},{"line_number":72,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":73,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_569417e7","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":30},"in_reply_to":"3f79a3b5_117a5775","updated":"2018-11-22 16:53:46.000000000","message":"We need a public hostname here. I think you are talking about ip-addresses with that variable?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":24132,"name":"Maxime Guyot","email":"maxime@root314.com","username":"miouge"},"change_message_id":"90e86113a5a7e55bc1bdfef76cb773c557062ad6","unresolved":false,"context_lines":[{"line_number":67,"context_line":"haproxy_ssl_self_signed_subject: \"/C\u003dUS/ST\u003dTexas/L\u003dSan Antonio/O\u003dIT/CN\u003d{{ external_lb_vip_address }}/subjectAltName\u003dIP.1\u003d{{ external_lb_vip_address }}\""},{"line_number":68,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":69,"context_line":"haproxy_ssl_bind_options: \"no-sslv3\""},{"line_number":70,"context_line":"haproxy_ssl_fqdn_public: false"},{"line_number":71,"context_line":"# activate letsencrypt option"},{"line_number":72,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":73,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_d1c6f169","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":30},"in_reply_to":"3f79a3b5_569417e7","updated":"2018-11-22 17:11:36.000000000","message":"That variable can either be a hostname or an IP. If I recall correctly it\u0027s used for the CN of the self-signed cert generation so it would make sense to be used in LE as well.\n\nSee the ceph-production example: https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/openstack_user_config.yml.prod-ceph.example#L22","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"742f8b232b906f31aec329a1e80fa7023a537908","unresolved":false,"context_lines":[{"line_number":67,"context_line":"haproxy_ssl_self_signed_subject: \"/C\u003dUS/ST\u003dTexas/L\u003dSan Antonio/O\u003dIT/CN\u003d{{ external_lb_vip_address }}/subjectAltName\u003dIP.1\u003d{{ external_lb_vip_address }}\""},{"line_number":68,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":69,"context_line":"haproxy_ssl_bind_options: \"no-sslv3\""},{"line_number":70,"context_line":"haproxy_ssl_fqdn_public: false"},{"line_number":71,"context_line":"# activate letsencrypt option"},{"line_number":72,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":73,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_7db007e0","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":30},"in_reply_to":"3f79a3b5_c5c94152","updated":"2018-12-06 20:59:02.000000000","message":"cool","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"0dec01d788dc656649476efd1d4777a5c01334da","unresolved":false,"context_lines":[{"line_number":67,"context_line":"haproxy_ssl_self_signed_subject: \"/C\u003dUS/ST\u003dTexas/L\u003dSan Antonio/O\u003dIT/CN\u003d{{ external_lb_vip_address }}/subjectAltName\u003dIP.1\u003d{{ external_lb_vip_address }}\""},{"line_number":68,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":69,"context_line":"haproxy_ssl_bind_options: \"no-sslv3\""},{"line_number":70,"context_line":"haproxy_ssl_fqdn_public: false"},{"line_number":71,"context_line":"# activate letsencrypt option"},{"line_number":72,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":73,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_c5c94152","line":70,"range":{"start_line":70,"start_character":0,"end_line":70,"end_character":30},"in_reply_to":"3f79a3b5_d1c6f169","updated":"2018-11-23 16:21:48.000000000","message":"external_lb_vip_address should be a fqdn","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":74,"context_line":"haproxy_ssl_letsencrypt_download_url: \"https://dl.eff.org/certbot-auto\""},{"line_number":75,"context_line":"haproxy_ssl_letsencrypt_config_path: \"/etc/letsencrypt/live\""},{"line_number":76,"context_line":"haproxy_ssl_letsencrypt_install_path: \"/opt/letsencrypt\""},{"line_number":77,"context_line":"haproxy_ssl_letsencrypt_app: \"certbot-auto\""},{"line_number":78,"context_line":"haproxy_ssl_letsencrypt_cron_minute: \"0\""},{"line_number":79,"context_line":"haproxy_ssl_letsencrypt_cron_hour: \"0\""},{"line_number":80,"context_line":"haproxy_ssl_letsencrypt_cron_weekday: \"0\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_11a1f7f6","line":77,"range":{"start_line":77,"start_character":30,"end_line":77,"end_character":42},"updated":"2018-11-20 13:34:01.000000000","message":"as this app is not moved after fetching, wouldn\u0027t it make sense for its value to be the \"{{ haproxy_ssl_letsencrypt_download_url | basename }}\"?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":74,"context_line":"haproxy_ssl_letsencrypt_download_url: \"https://dl.eff.org/certbot-auto\""},{"line_number":75,"context_line":"haproxy_ssl_letsencrypt_config_path: \"/etc/letsencrypt/live\""},{"line_number":76,"context_line":"haproxy_ssl_letsencrypt_install_path: \"/opt/letsencrypt\""},{"line_number":77,"context_line":"haproxy_ssl_letsencrypt_app: \"certbot-auto\""},{"line_number":78,"context_line":"haproxy_ssl_letsencrypt_cron_minute: \"0\""},{"line_number":79,"context_line":"haproxy_ssl_letsencrypt_cron_hour: \"0\""},{"line_number":80,"context_line":"haproxy_ssl_letsencrypt_cron_weekday: \"0\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_564bb784","line":77,"range":{"start_line":77,"start_character":30,"end_line":77,"end_character":42},"in_reply_to":"3f79a3b5_11a1f7f6","updated":"2018-11-22 16:53:46.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":73,"context_line":"haproxy_ssl_bind_options: \"force-tlsv12\""},{"line_number":74,"context_line":"# activate letsencrypt option"},{"line_number":75,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":76,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""},{"line_number":77,"context_line":"haproxy_ssl_letsencrypt_download_url: \"https://dl.eff.org/certbot-auto\""},{"line_number":78,"context_line":"haproxy_ssl_letsencrypt_config_path: \"/etc/letsencrypt/live\""}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_69176d53","line":75,"range":{"start_line":75,"start_character":24,"end_line":75,"end_character":30},"updated":"2019-01-09 09:53:28.000000000","message":"\u0027option\u0027 is confusing to me - perhaps \u0027enable\u0027 is a better name for it?","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":72,"context_line":"haproxy_ssl_cipher_suite: \"{{ ssl_cipher_suite | default(\u0027ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS\u0027) }}\""},{"line_number":73,"context_line":"haproxy_ssl_bind_options: \"force-tlsv12\""},{"line_number":74,"context_line":"# activate letsencrypt option"},{"line_number":75,"context_line":"haproxy_ssl_letsencrypt_option: false"},{"line_number":76,"context_line":"haproxy_ssl_letsencrypt_email: \"example@example.com\""},{"line_number":77,"context_line":"haproxy_ssl_letsencrypt_download_url: \"https://dl.eff.org/certbot-auto\""},{"line_number":78,"context_line":"haproxy_ssl_letsencrypt_config_path: \"/etc/letsencrypt/live\""}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_52b81275","line":75,"range":{"start_line":75,"start_character":24,"end_line":75,"end_character":30},"in_reply_to":"dfd5e7cf_69176d53","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"}],"doc/source/configure-haproxy.rst":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"   haproxy_ssl_letsencrypt_option: true"},{"line_number":153,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":154,"context_line":"   haproxy_ssl_fqdn_public: www.example.com"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_b1904399","line":154,"range":{"start_line":154,"start_character":3,"end_line":154,"end_character":43},"updated":"2018-11-20 13:34:01.000000000","message":"please see my comment on defaults/ file.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"0dec01d788dc656649476efd1d4777a5c01334da","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"   haproxy_ssl_letsencrypt_option: true"},{"line_number":153,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":154,"context_line":"   haproxy_ssl_fqdn_public: www.example.com"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_c5f2a19c","line":154,"range":{"start_line":154,"start_character":3,"end_line":154,"end_character":43},"in_reply_to":"3f79a3b5_362b9b9b","updated":"2018-11-23 16:21:48.000000000","message":"the only place where we can have anything external is in external_lb_vip_address. That address is also used for openstack external endpoints, so I think it\u0027s fair to use it by default.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"   haproxy_ssl_letsencrypt_option: true"},{"line_number":153,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":154,"context_line":"   haproxy_ssl_fqdn_public: www.example.com"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_362b9b9b","line":154,"range":{"start_line":154,"start_character":3,"end_line":154,"end_character":43},"in_reply_to":"3f79a3b5_b1904399","updated":"2018-11-22 16:53:46.000000000","message":"you have the publis host name elsewhere? my impression is the user handles that outside from OSA","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"742f8b232b906f31aec329a1e80fa7023a537908","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"   haproxy_ssl_letsencrypt_option: true"},{"line_number":153,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":154,"context_line":"   haproxy_ssl_fqdn_public: www.example.com"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_fdc3b738","line":154,"range":{"start_line":154,"start_character":3,"end_line":154,"end_character":43},"in_reply_to":"3f79a3b5_c5f2a19c","updated":"2018-12-06 20:59:02.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":144,"context_line":"Please have a look here for information on `converting your certificate to"},{"line_number":145,"context_line":"various formats \u003chttps://search.thawte.com/support/ssl-digital-certificates/index?page\u003dcontent\u0026actp\u003dCROSSLINK\u0026id\u003dSO26449\u003e`_."},{"line_number":146,"context_line":"If you want to use `LetsEncrypt SSL Service \u003chttps://letsencrypt.org/\u003e`_"},{"line_number":147,"context_line":"you must activate the feature, provide a contact e-mail address, and"},{"line_number":148,"context_line":"the public hostname of your installation provided by"},{"line_number":149,"context_line":"``external_lb_vip_address``:"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":".. code-block:: yaml"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"dfd5e7cf_4c22b7a6","line":149,"range":{"start_line":147,"start_character":0,"end_line":149,"end_character":28},"updated":"2019-01-09 09:53:28.000000000","message":"you can activate the feature by providing the following configuration in ``/etc/openstack_deploy/user_variables.yml``. Note that this requires that ``external_lb_vip_address`` in ``/etc/openstack_deploy/openstack_user_config.yml`` is set to the external DNS address.","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":144,"context_line":"Please have a look here for information on `converting your certificate to"},{"line_number":145,"context_line":"various formats \u003chttps://search.thawte.com/support/ssl-digital-certificates/index?page\u003dcontent\u0026actp\u003dCROSSLINK\u0026id\u003dSO26449\u003e`_."},{"line_number":146,"context_line":"If you want to use `LetsEncrypt SSL Service \u003chttps://letsencrypt.org/\u003e`_"},{"line_number":147,"context_line":"you must activate the feature, provide a contact e-mail address, and"},{"line_number":148,"context_line":"the public hostname of your installation provided by"},{"line_number":149,"context_line":"``external_lb_vip_address``:"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":".. code-block:: yaml"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"dfd5e7cf_f27b46bb","line":149,"range":{"start_line":147,"start_character":0,"end_line":149,"end_character":28},"in_reply_to":"dfd5e7cf_4c22b7a6","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2b3b15b2c90ce5b2c956f182843a87c2d09fc93","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"   haproxy_ssl_letsencrypt_enable: true"},{"line_number":155,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"Configuring additional services"}],"source_content_type":"text/x-rst","patch_set":9,"id":"dfd5e7cf_389e8d54","line":156,"updated":"2019-01-09 13:33:05.000000000","message":"Add a notice/warning here:\n\nThere is no certificate distribution implementation at this time,\nso this will only work for a single haproxy-server environment.\nThe renewal is automatically handled via CRON and currently\nwill shut down haproxy briefly during the certificate renewal.\nThe haproxy shutdown/restart will result in a brief service\ninterruption.","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"9280654e3e29edd15f9070009c918e17c3b539bf","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"   haproxy_ssl_letsencrypt_enable: true"},{"line_number":155,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"Configuring additional services"}],"source_content_type":"text/x-rst","patch_set":9,"id":"bfdaf3ff_cb9d6667","line":156,"in_reply_to":"dfd5e7cf_389e8d54","updated":"2019-01-11 09:23:42.000000000","message":"Done","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"d805c124aabc3a964e7472f8cd268e4571f4bbdd","unresolved":false,"context_lines":[{"line_number":155,"context_line":"   haproxy_ssl_letsencrypt_enable: true"},{"line_number":156,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"There is no certificate distribution implementation at this time, so"},{"line_number":159,"context_line":"this will only work for a single haproxy-server environment.  The"},{"line_number":160,"context_line":"renewal is automatically handled via CRON and currently will shut"},{"line_number":161,"context_line":"down haproxy briefly during the certificate renewal.  The"},{"line_number":162,"context_line":"haproxy shutdown/restart will result in a brief service interruption."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":165,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"bfdaf3ff_5ca93add","line":162,"range":{"start_line":158,"start_character":0,"end_line":162,"end_character":69},"updated":"2019-01-11 11:28:13.000000000","message":"This should be a warning, so it should have:\n\n.. warning::\n\nwith the text that follows indented.","commit_id":"e8328a3e25a0529cd819bbd921be5bf4fb41c542"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"414efcabed5b3e2a92316e35208b7fdb4584f296","unresolved":false,"context_lines":[{"line_number":155,"context_line":"   haproxy_ssl_letsencrypt_enable: true"},{"line_number":156,"context_line":"   haproxy_ssl_letsencrypt_email: example@example.com"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"There is no certificate distribution implementation at this time, so"},{"line_number":159,"context_line":"this will only work for a single haproxy-server environment.  The"},{"line_number":160,"context_line":"renewal is automatically handled via CRON and currently will shut"},{"line_number":161,"context_line":"down haproxy briefly during the certificate renewal.  The"},{"line_number":162,"context_line":"haproxy shutdown/restart will result in a brief service interruption."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":".. _Securing services with SSL certificates: http://docs.openstack.org/project-deploy-guide/openstack-ansible/draft/app-advanced-config-sslcertificates.html"},{"line_number":165,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"bfdaf3ff_a90bd57a","line":162,"range":{"start_line":158,"start_character":0,"end_line":162,"end_character":69},"in_reply_to":"bfdaf3ff_5ca93add","updated":"2019-01-17 15:52:53.000000000","message":"Done","commit_id":"e8328a3e25a0529cd819bbd921be5bf4fb41c542"}],"releasenotes/notes/letsencrypt-ssl-certification-129a80cb88d8e6ff.yaml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    If Horizon dashboard of OSA installation has a public FQDN, it\u0027s possible"},{"line_number":5,"context_line":"    to use LetsEncrypt certification service. Certificate will be generated"},{"line_number":6,"context_line":"    within HAProxy installation and a cron entry for renew the certificate"},{"line_number":7,"context_line":"    will be setup."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_ec304beb","line":4,"range":{"start_line":4,"start_character":64,"end_line":4,"end_character":68},"updated":"2019-01-09 09:53:28.000000000","message":"is it now","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    If Horizon dashboard of OSA installation has a public FQDN, it\u0027s possible"},{"line_number":5,"context_line":"    to use LetsEncrypt certification service. Certificate will be generated"},{"line_number":6,"context_line":"    within HAProxy installation and a cron entry for renew the certificate"},{"line_number":7,"context_line":"    will be setup."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_72499689","line":4,"range":{"start_line":4,"start_character":64,"end_line":4,"end_character":68},"in_reply_to":"dfd5e7cf_ec304beb","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    If Horizon dashboard of OSA installation has a public FQDN, it\u0027s possible"},{"line_number":5,"context_line":"    to use LetsEncrypt certification service. Certificate will be generated"},{"line_number":6,"context_line":"    within HAProxy installation and a cron entry for renew the certificate"},{"line_number":7,"context_line":"    will be setup."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_ac50030c","line":6,"range":{"start_line":6,"start_character":49,"end_line":6,"end_character":74},"updated":"2019-01-09 09:53:28.000000000","message":"to renew the certificate daily","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    If Horizon dashboard of OSA installation has a public FQDN, it\u0027s possible"},{"line_number":5,"context_line":"    to use LetsEncrypt certification service. Certificate will be generated"},{"line_number":6,"context_line":"    within HAProxy installation and a cron entry for renew the certificate"},{"line_number":7,"context_line":"    will be setup."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_b234defc","line":6,"range":{"start_line":6,"start_character":49,"end_line":6,"end_character":74},"in_reply_to":"dfd5e7cf_ac50030c","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2b3b15b2c90ce5b2c956f182843a87c2d09fc93","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    now possible to use LetsEncrypt certification service. Certificate"},{"line_number":6,"context_line":"    will be generated within HAProxy installation and a cron entry to"},{"line_number":7,"context_line":"    renew the certificate daily will be setup."},{"line_number":8,"context_line":"    That won\u0027t work at the moment on a haproxy multi-host installation."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"dfd5e7cf_1841493a","line":8,"range":{"start_line":8,"start_character":4,"end_line":8,"end_character":71},"updated":"2019-01-09 13:33:05.000000000","message":"Note that there is no certificate distribution implementation at this time, so this will only work for a single haproxy-server environment.","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"9280654e3e29edd15f9070009c918e17c3b539bf","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    now possible to use LetsEncrypt certification service. Certificate"},{"line_number":6,"context_line":"    will be generated within HAProxy installation and a cron entry to"},{"line_number":7,"context_line":"    renew the certificate daily will be setup."},{"line_number":8,"context_line":"    That won\u0027t work at the moment on a haproxy multi-host installation."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"bfdaf3ff_ab8ee22b","line":8,"range":{"start_line":8,"start_character":4,"end_line":8,"end_character":71},"in_reply_to":"dfd5e7cf_1841493a","updated":"2019-01-11 09:23:42.000000000","message":"Done","commit_id":"ab74885c94c289a341429579f1878b76c7727846"}],"tasks/haproxy_ssl.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    - not haproxy_ssl_letsencrypt_option"},{"line_number":27,"context_line":"    - haproxy_user_ssl_cert is not defined or haproxy_user_ssl_key is not defined"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- include_tasks: haproxy_ssl_letsencrypt.yml"},{"line_number":30,"context_line":"  when:"},{"line_number":31,"context_line":"    - haproxy_ssl | bool"},{"line_number":32,"context_line":"    - haproxy_ssl_letsencrypt_option | bool"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_2cc17381","line":29,"updated":"2019-01-09 09:53:28.000000000","message":"Does lets encrypt allow multiple servers to renew the same cert for the same domain? If not then that\u0027s what\u0027s going to happen in a multi-node environment.\n\nI suggest that either the release note and docs specify that this is for single-node haproxy only at this time, or further work is done to ensure that only one node does the cert generation and renewal and it distributes the updates and reloads the certs on update whenever the renewal takes place. This is likely to require something similar to what the keystone role does with its tokens (rsync, etc).","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    - not haproxy_ssl_letsencrypt_option"},{"line_number":27,"context_line":"    - haproxy_user_ssl_cert is not defined or haproxy_user_ssl_key is not defined"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- include_tasks: haproxy_ssl_letsencrypt.yml"},{"line_number":30,"context_line":"  when:"},{"line_number":31,"context_line":"    - haproxy_ssl | bool"},{"line_number":32,"context_line":"    - haproxy_ssl_letsencrypt_option | bool"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_3dad1f31","line":29,"in_reply_to":"dfd5e7cf_2cc17381","updated":"2019-01-09 13:05:32.000000000","message":"I see the point. That requires a sync of the initial cert like https://github.com/openstack/openstack-ansible-os_keystone/blob/master/tasks/keystone_credential_distribute.yml#L18-L30,\na sync of the renewed cert in the cron script and a restart trigger for all instances. The include_task here must limited to the first haproxy instance in the group. Not sure how to realize that, feels me like version 2. Would add a note about the limitation in releasenotes.","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2b3b15b2c90ce5b2c956f182843a87c2d09fc93","unresolved":false,"context_lines":[{"line_number":23,"context_line":"- include_tasks: haproxy_ssl_self_signed.yml"},{"line_number":24,"context_line":"  when:"},{"line_number":25,"context_line":"    - haproxy_ssl | bool"},{"line_number":26,"context_line":"    - not haproxy_ssl_letsencrypt_enable"},{"line_number":27,"context_line":"    - haproxy_user_ssl_cert is not defined or haproxy_user_ssl_key is not defined"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- include_tasks: haproxy_ssl_letsencrypt.yml"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"dfd5e7cf_f8456544","line":26,"range":{"start_line":26,"start_character":10,"end_line":26,"end_character":40},"updated":"2019-01-09 13:33:05.000000000","message":"haproxy_ssl_letsencrypt_enable | bool","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"9280654e3e29edd15f9070009c918e17c3b539bf","unresolved":false,"context_lines":[{"line_number":23,"context_line":"- include_tasks: haproxy_ssl_self_signed.yml"},{"line_number":24,"context_line":"  when:"},{"line_number":25,"context_line":"    - haproxy_ssl | bool"},{"line_number":26,"context_line":"    - not haproxy_ssl_letsencrypt_enable"},{"line_number":27,"context_line":"    - haproxy_user_ssl_cert is not defined or haproxy_user_ssl_key is not defined"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"- include_tasks: haproxy_ssl_letsencrypt.yml"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"bfdaf3ff_cbab2673","line":26,"range":{"start_line":26,"start_character":10,"end_line":26,"end_character":40},"in_reply_to":"dfd5e7cf_f8456544","updated":"2019-01-11 09:23:42.000000000","message":"Done","commit_id":"ab74885c94c289a341429579f1878b76c7727846"}],"tasks/haproxy_ssl_letsencrypt.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"3011a589086203d97478575df474ab8df35fad12","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"},{"line_number":58,"context_line":"    src\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}"},{"line_number":59,"context_line":"    dest\u003d/etc/ssl/private/haproxy.pem"},{"line_number":60,"context_line":"    regexp\u003d\u0027(privkey|fullchain).pem$\u0027"},{"line_number":61,"context_line":"  notify:"},{"line_number":62,"context_line":"    - Restart haproxy"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_4168811f","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":37},"updated":"2018-09-08 13:31:43.000000000","message":"As per the style guide, could you implement this in list format?\n\n    src: {{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\n    dest: /etc/ssl/private/haproxy.pem\n    regexp: \u0027(privkey|fullchain).pem$\u0027","commit_id":"fbced9a3b829def0cbea2738a3a841d99cd85ba5"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"fbb7dc61661f35ec83fc92d781862daabcf6ae69","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"},{"line_number":58,"context_line":"    src\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}"},{"line_number":59,"context_line":"    dest\u003d/etc/ssl/private/haproxy.pem"},{"line_number":60,"context_line":"    regexp\u003d\u0027(privkey|fullchain).pem$\u0027"},{"line_number":61,"context_line":"  notify:"},{"line_number":62,"context_line":"    - Restart haproxy"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_c5be8863","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":37},"in_reply_to":"3f79a3b5_4168811f","updated":"2018-09-12 20:22:11.000000000","message":"you mean something like that:\n\n- name: Create new pem file for haproxy\n  assemble:\n    src: \"{{ item }}\"\n    dest: /etc/ssl/private/haproxy.pem\n  with_items:\n    - \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}/privkey.pem\"\n    - \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}/fullchain.pem\"\n\nassemble requires src directory and in that directory are more files then required. So I was happy to use regexp ;)\nFrom my knowledge only command cat would work, but for my impression you expect a better solution.","commit_id":"fbced9a3b829def0cbea2738a3a841d99cd85ba5"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"4fe43842dcf7bd074c3cd32583daa87e67651f07","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"},{"line_number":58,"context_line":"    src\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}"},{"line_number":59,"context_line":"    dest\u003d/etc/ssl/private/haproxy.pem"},{"line_number":60,"context_line":"    regexp\u003d\u0027(privkey|fullchain).pem$\u0027"},{"line_number":61,"context_line":"  notify:"},{"line_number":62,"context_line":"    - Restart haproxy"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_ce18d277","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":37},"in_reply_to":"3f79a3b5_c5be8863","updated":"2018-09-27 03:10:00.000000000","message":"I think what you have looks just fine in terms of functionality. The style change is to simply write out the task in a dictionary format.\n\nLooking at the assemble module documentation https://docs.ansible.com/ansible/2.5/modules/assemble_module.html - I believe something like this would work just fine.\n\n- name: Create new pem file for haproxy\n  assemble:\n    src: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\"\n    dest: \"/etc/ssl/private/haproxy.pem\"\n    regexp: \u0027(privkey|fullchain).pem$\u0027","commit_id":"fbced9a3b829def0cbea2738a3a841d99cd85ba5"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  retries: 3"},{"line_number":26,"context_line":"  delay: 10"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"- name: Ensure file permissions certbot-auto"},{"line_number":29,"context_line":"  file:"},{"line_number":30,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_install_path }}/{{ haproxy_ssl_letsencrypt_app }}\""},{"line_number":31,"context_line":"    mode: 0755"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Register Letsencrypt data dir"},{"line_number":34,"context_line":"  stat:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_71438b41","line":31,"range":{"start_line":28,"start_character":0,"end_line":31,"end_character":14},"updated":"2018-11-20 13:34:01.000000000","message":"this task can be removed, and use directly `mode: \u00270755\u0027` in get_url.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  retries: 3"},{"line_number":26,"context_line":"  delay: 10"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"- name: Ensure file permissions certbot-auto"},{"line_number":29,"context_line":"  file:"},{"line_number":30,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_install_path }}/{{ haproxy_ssl_letsencrypt_app }}\""},{"line_number":31,"context_line":"    mode: 0755"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Register Letsencrypt data dir"},{"line_number":34,"context_line":"  stat:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_3614fb4f","line":31,"range":{"start_line":28,"start_character":0,"end_line":31,"end_character":14},"in_reply_to":"3f79a3b5_71438b41","updated":"2018-11-22 16:53:46.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Register Letsencrypt data dir"},{"line_number":34,"context_line":"  stat:"},{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_718aab65","line":35,"range":{"start_line":35,"start_character":56,"end_line":35,"end_character":79},"updated":"2018-11-20 13:34:01.000000000","message":"could be replaced with external_lb_vip_address","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"742f8b232b906f31aec329a1e80fa7023a537908","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Register Letsencrypt data dir"},{"line_number":34,"context_line":"  stat:"},{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_9ddac319","line":35,"range":{"start_line":35,"start_character":56,"end_line":35,"end_character":79},"in_reply_to":"3f79a3b5_56197784","updated":"2018-12-06 20:59:02.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- name: Register Letsencrypt data dir"},{"line_number":34,"context_line":"  stat:"},{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_56197784","line":35,"range":{"start_line":35,"start_character":56,"end_line":35,"end_character":79},"in_reply_to":"3f79a3b5_718aab65","updated":"2018-11-22 16:53:46.000000000","message":"the same: ip-address vs. hostname","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"},{"line_number":39,"context_line":"  service:"},{"line_number":40,"context_line":"    name: \"haproxy\""},{"line_number":41,"context_line":"    state: \"stopped\""},{"line_number":42,"context_line":"  when: lcdatadir.stat.exists \u003d\u003d False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_f1eb1b0e","line":42,"range":{"start_line":38,"start_character":0,"end_line":42,"end_character":38},"updated":"2018-11-20 13:34:01.000000000","message":"can\u0027t we just restart haproxy after generation by triggering a handler?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"},{"line_number":39,"context_line":"  service:"},{"line_number":40,"context_line":"    name: \"haproxy\""},{"line_number":41,"context_line":"    state: \"stopped\""},{"line_number":42,"context_line":"  when: lcdatadir.stat.exists \u003d\u003d False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_76fd9308","line":42,"range":{"start_line":38,"start_character":0,"end_line":42,"end_character":38},"in_reply_to":"3f79a3b5_3fd060f5","updated":"2018-11-22 16:53:46.000000000","message":"that\u0027s true. We need to stop haproxy so certbot starts its own webserver to validate the request. Definition of different ports didn\u0027t worked for me and needs additional firewall settings. So the easiest task is to stop haproxy for few seconds. Do you need a handler for that?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"0dec01d788dc656649476efd1d4777a5c01334da","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"},{"line_number":39,"context_line":"  service:"},{"line_number":40,"context_line":"    name: \"haproxy\""},{"line_number":41,"context_line":"    state: \"stopped\""},{"line_number":42,"context_line":"  when: lcdatadir.stat.exists \u003d\u003d False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_052ad9e3","line":42,"range":{"start_line":38,"start_character":0,"end_line":42,"end_character":38},"in_reply_to":"3f79a3b5_76fd9308","updated":"2018-11-23 16:21:48.000000000","message":"I suppose this is fine for now. If someone wants to implement a different way that\u0027s not killing haproxy connections with a lua backend, up to him/her :)","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":24132,"name":"Maxime Guyot","email":"maxime@root314.com","username":"miouge"},"change_message_id":"44816c5a9127bee9c4025f7efc47b0e91283181a","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    path: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}\""},{"line_number":36,"context_line":"  register: lcdatadir"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"- name: Stop haproxy for certbot activity"},{"line_number":39,"context_line":"  service:"},{"line_number":40,"context_line":"    name: \"haproxy\""},{"line_number":41,"context_line":"    state: \"stopped\""},{"line_number":42,"context_line":"  when: lcdatadir.stat.exists \u003d\u003d False"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_3fd060f5","line":42,"range":{"start_line":38,"start_character":0,"end_line":42,"end_character":38},"in_reply_to":"3f79a3b5_f1eb1b0e","updated":"2018-11-21 19:57:19.000000000","message":"The next task is \"certbot --standalone\" which requires TCP/80 or TCP/443 to be open. I suppose that the haproxy stop is intended to free up that port to allow the cert validation to happen.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    --rsa-key-size 4096 \\"},{"line_number":52,"context_line":"    --email {{ haproxy_ssl_letsencrypt_email }} \\"},{"line_number":53,"context_line":"    --domains {{ haproxy_ssl_fqdn_public }}"},{"line_number":54,"context_line":"    creates\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}/fullchain.pem"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_b1d5a34a","line":54,"range":{"start_line":54,"start_character":57,"end_line":54,"end_character":80},"updated":"2018-11-20 13:34:01.000000000","message":"ditto.","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"742f8b232b906f31aec329a1e80fa7023a537908","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    --rsa-key-size 4096 \\"},{"line_number":52,"context_line":"    --email {{ haproxy_ssl_letsencrypt_email }} \\"},{"line_number":53,"context_line":"    --domains {{ haproxy_ssl_fqdn_public }}"},{"line_number":54,"context_line":"    creates\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}/fullchain.pem"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_3ddb6f1f","line":54,"range":{"start_line":54,"start_character":57,"end_line":54,"end_character":80},"in_reply_to":"3f79a3b5_96faaf0f","updated":"2018-12-06 20:59:02.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    --rsa-key-size 4096 \\"},{"line_number":52,"context_line":"    --email {{ haproxy_ssl_letsencrypt_email }} \\"},{"line_number":53,"context_line":"    --domains {{ haproxy_ssl_fqdn_public }}"},{"line_number":54,"context_line":"    creates\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}/fullchain.pem"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_96faaf0f","line":54,"range":{"start_line":54,"start_character":57,"end_line":54,"end_character":80},"in_reply_to":"3f79a3b5_b1d5a34a","updated":"2018-11-22 16:53:46.000000000","message":"ditto :)","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"},{"line_number":58,"context_line":"    src\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}"},{"line_number":59,"context_line":"    dest\u003d/etc/ssl/private/haproxy.pem"},{"line_number":60,"context_line":"    regexp\u003d\u0027(privkey|fullchain).pem$\u0027"},{"line_number":61,"context_line":"  notify:"},{"line_number":62,"context_line":"    - Restart haproxy"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_d12fff87","line":60,"range":{"start_line":58,"start_character":5,"end_line":60,"end_character":37},"updated":"2018-11-20 13:34:01.000000000","message":"could you use yaml notation here?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"ea9030d1b0f08f67d99ff43b32380e3468067516","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"},{"line_number":58,"context_line":"    src\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ haproxy_ssl_fqdn_public }}"},{"line_number":59,"context_line":"    dest\u003d/etc/ssl/private/haproxy.pem"},{"line_number":60,"context_line":"    regexp\u003d\u0027(privkey|fullchain).pem$\u0027"},{"line_number":61,"context_line":"  notify:"},{"line_number":62,"context_line":"    - Restart haproxy"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_71403d34","line":60,"range":{"start_line":58,"start_character":5,"end_line":60,"end_character":37},"in_reply_to":"3f79a3b5_d12fff87","updated":"2018-11-22 16:53:46.000000000","message":"Done","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"},{"line_number":46,"context_line":"    {{ haproxy_ssl_letsencrypt_install_path }}/{{ haproxy_ssl_letsencrypt_download_url | basename }} certonly \\"},{"line_number":47,"context_line":"    --standalone \\"},{"line_number":48,"context_line":"    --agree-tos \\"},{"line_number":49,"context_line":"    --non-interactive \\"},{"line_number":50,"context_line":"    --text \\"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_4c7077a6","line":47,"range":{"start_line":47,"start_character":17,"end_line":47,"end_character":18},"updated":"2019-01-09 09:53:28.000000000","message":"The trailing slashes are not required when using the continuation as is done in line 45.","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":44,"context_line":"- name: Create ssl cert with certbot"},{"line_number":45,"context_line":"  command: \u003e"},{"line_number":46,"context_line":"    {{ haproxy_ssl_letsencrypt_install_path }}/{{ haproxy_ssl_letsencrypt_download_url | basename }} certonly \\"},{"line_number":47,"context_line":"    --standalone \\"},{"line_number":48,"context_line":"    --agree-tos \\"},{"line_number":49,"context_line":"    --non-interactive \\"},{"line_number":50,"context_line":"    --text \\"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_5d2263a6","line":47,"range":{"start_line":47,"start_character":17,"end_line":47,"end_character":18},"in_reply_to":"dfd5e7cf_4c7077a6","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    --rsa-key-size 4096 \\"},{"line_number":52,"context_line":"    --email {{ haproxy_ssl_letsencrypt_email }} \\"},{"line_number":53,"context_line":"    --domains {{ external_lb_vip_address }}"},{"line_number":54,"context_line":"    creates\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ external_lb_vip_address }}/fullchain.pem"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_cc4a2754","line":54,"range":{"start_line":54,"start_character":4,"end_line":54,"end_character":97},"updated":"2019-01-09 09:53:28.000000000","message":"This should be in yams format as another argument to the task, eg:\n\n  creates: \"{{ haproxy_ssl_letsencrypt_config_path }}/{{ external_lb_vip_address }}/fullchain.pem\"","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    --rsa-key-size 4096 \\"},{"line_number":52,"context_line":"    --email {{ haproxy_ssl_letsencrypt_email }} \\"},{"line_number":53,"context_line":"    --domains {{ external_lb_vip_address }}"},{"line_number":54,"context_line":"    creates\u003d{{ haproxy_ssl_letsencrypt_config_path }}/{{ external_lb_vip_address }}/fullchain.pem"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"- name: Create new pem file for haproxy"},{"line_number":57,"context_line":"  assemble:"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"dfd5e7cf_dd35f3db","line":54,"range":{"start_line":54,"start_character":4,"end_line":54,"end_character":97},"in_reply_to":"dfd5e7cf_cc4a2754","updated":"2019-01-09 13:05:32.000000000","message":"Done","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"}],"templates/letsencrypt_renew.j2":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"service haproxy stop\" \\"},{"line_number":7,"context_line":"    --post-hook \"service haproxy start\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ haproxy_ssl_fqdn_public }}-0001/fullchain.pem \\"}],"source_content_type":"text/x-jinja2","patch_set":4,"id":"3f79a3b5_91dae773","line":6,"range":{"start_line":6,"start_character":16,"end_line":6,"end_character":36},"updated":"2018-11-20 13:34:01.000000000","message":"systemctl stop haproxy.service (or whatever daemon name is present in the vars for the distro)?","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    --pre-hook \"service haproxy stop\" \\"},{"line_number":7,"context_line":"    --post-hook \"service haproxy start\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ haproxy_ssl_fqdn_public }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ haproxy_ssl_fqdn_public }}-0001/privkey.pem \\"},{"line_number":11,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-jinja2","patch_set":4,"id":"3f79a3b5_71df0b67","line":9,"range":{"start_line":9,"start_character":29,"end_line":9,"end_character":52},"updated":"2018-11-20 13:34:01.000000000","message":"external_lb_vip_address","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"8313f08fb1f7cce7ac2f50cccd727ca0178a5fb7","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ haproxy_ssl_fqdn_public }}-0001/privkey.pem \\"},{"line_number":11,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"service haproxy restart"}],"source_content_type":"text/x-jinja2","patch_set":4,"id":"3f79a3b5_31cbd3a7","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":23},"updated":"2018-11-20 13:34:01.000000000","message":"likewise","commit_id":"1eacec2715f1b1af0074f3d7b2dab80c1c544869"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"57388427d4cc5c62b50c5e4f7146f54dd326bb2b","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"service haproxy stop\" \\"},{"line_number":7,"context_line":"    --post-hook \"service haproxy start\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"dfd5e7cf_693e8ddb","line":7,"range":{"start_line":6,"start_character":0,"end_line":7,"end_character":39},"updated":"2019-01-09 09:53:28.000000000","message":"This will cause certbot to stop and start the service, then line 13 makes it restart the service a second time. I suspect that we can do better - the pre/post hooks are probably not required, and then just a reload should bring the new cert in.\n\nAlso, should the service not be restarted using \u0027systemctl reload haproxy\u0027 instead of the old service CLI?","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"15337682ba0d1fc8b8f8f22c5b705102daaa04cb","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"service haproxy stop\" \\"},{"line_number":7,"context_line":"    --post-hook \"service haproxy start\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"dfd5e7cf_3dc19f81","line":7,"range":{"start_line":6,"start_character":0,"end_line":7,"end_character":39},"in_reply_to":"dfd5e7cf_693e8ddb","updated":"2019-01-09 13:05:32.000000000","message":"certbot wants to start a web service on the possibly same port like haproxy, so it\u0027s required to stop haproxy before and start after the renew validation process. Using systemd is meanwhile valid.\nRestart haproxy at the end is after installation the new cert in haproxy config. There is some space for improvement (i.e. skip post-hook)","commit_id":"cad783cbafb47a7ba725e811adb7674f4a936a4b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2b3b15b2c90ce5b2c956f182843a87c2d09fc93","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":"    --post-hook \"systemctl start haproxy\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"}],"source_content_type":"text/x-jinja2","patch_set":9,"id":"dfd5e7cf_78b975e7","line":7,"range":{"start_line":6,"start_character":39,"end_line":7,"end_character":41},"updated":"2019-01-09 13:33:05.000000000","message":"It\u0027s probably best to remove this, given that the service is restarted later In line 13.","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"9280654e3e29edd15f9070009c918e17c3b539bf","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":"    --post-hook \"systemctl start haproxy\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"}],"source_content_type":"text/x-jinja2","patch_set":9,"id":"bfdaf3ff_abe102d3","line":7,"range":{"start_line":6,"start_character":39,"end_line":7,"end_character":41},"in_reply_to":"dfd5e7cf_78b975e7","updated":"2019-01-11 09:23:42.000000000","message":"Done","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"b2b3b15b2c90ce5b2c956f182843a87c2d09fc93","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":"    --post-hook \"systemctl start haproxy\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"},{"line_number":11,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":9,"id":"dfd5e7cf_f899e578","line":11,"range":{"start_line":9,"start_character":0,"end_line":11,"end_character":34},"updated":"2019-01-09 13:33:05.000000000","message":"This can be made a little more succinct and easier to read as follows:\n\ncat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/{fullchain,privkey}.pem \\\n    \u003e /etc/ssl/private/haproxy.pem","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"9280654e3e29edd15f9070009c918e17c3b539bf","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":"    --post-hook \"systemctl start haproxy\""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/fullchain.pem \\"},{"line_number":10,"context_line":"    /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/privkey.pem \\"},{"line_number":11,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":9,"id":"bfdaf3ff_4be656eb","line":11,"range":{"start_line":9,"start_character":0,"end_line":11,"end_character":34},"in_reply_to":"dfd5e7cf_f899e578","updated":"2019-01-11 09:23:42.000000000","message":"Done","commit_id":"ab74885c94c289a341429579f1878b76c7727846"},{"author":{"_account_id":14288,"name":"Matthew Thode","display_name":"prometheanfire","email":"mthode@mthode.org","username":"prometheanfire"},"change_message_id":"46db19818dc266a4072800ff933db5774440749d","unresolved":false,"context_lines":[{"line_number":8,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/{fullchain,privkey}.pem \\"},{"line_number":9,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"bfdaf3ff_890cd141","line":11,"updated":"2019-01-17 16:01:04.000000000","message":"I\u0027m not sure if we are using haproxy in master worker mode, but if we are we can issue reloads (SIGUSR2) and don\u0027t have to stop haproxy.  (see section 4)\n\nhttp://www.haproxy.org/download/1.8/doc/management.txthttp://www.haproxy.org/download/1.8/doc/management.txt","commit_id":"e6eaf368202c9649422e9be82b3d63b492636e2e"},{"author":{"_account_id":13095,"name":"Marc Gariépy","email":"gariepy.marc@gmail.com","username":"mgariepy"},"change_message_id":"ed0fbdd20479b56034591623be9830b1569b1ffc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"# renew cert if required and copy to haproxy destination"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/{fullchain,privkey}.pem \\"},{"line_number":9,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"bfdaf3ff_74faa0bd","line":11,"range":{"start_line":3,"start_character":0,"end_line":11,"end_character":25},"updated":"2019-01-17 16:12:09.000000000","message":"in order to have this more production ready, wouldn\u0027t it be more useful to have this integrated with haproxy acl:\nI haven\u0027t tested it, but stoping haproxy in order to renew the cert is disruptive quite a bit and could be avoidable.\n\nhttps://serversforhackers.com/c/letsencrypt-with-haproxy","commit_id":"e6eaf368202c9649422e9be82b3d63b492636e2e"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"6b7a593a6d7b57fd7508d3476c63334fcacbfe25","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"# renew cert if required and copy to haproxy destination"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"certbot renew \\"},{"line_number":5,"context_line":"    --standalone \\"},{"line_number":6,"context_line":"    --pre-hook \"systemctl stop haproxy\" \\"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/{fullchain,privkey}.pem \\"},{"line_number":9,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"bfdaf3ff_0062ebae","line":11,"range":{"start_line":3,"start_character":0,"end_line":11,"end_character":25},"in_reply_to":"bfdaf3ff_74faa0bd","updated":"2019-01-17 21:33:04.000000000","message":"I got it and the comment is valid. But to fetch the new certificate file it\u0027s almost required to restart haproxy, isn\u0027t it?","commit_id":"e6eaf368202c9649422e9be82b3d63b492636e2e"},{"author":{"_account_id":17765,"name":"Frank Kloeker","email":"f.kloeker@telekom.de","username":"eumel8"},"change_message_id":"6b7a593a6d7b57fd7508d3476c63334fcacbfe25","unresolved":false,"context_lines":[{"line_number":8,"context_line":"cat /etc/letsencrypt/live/{{ external_lb_vip_address }}-0001/{fullchain,privkey}.pem \\"},{"line_number":9,"context_line":"    \u003e /etc/ssl/private/haproxy.pem"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"systemctl restart haproxy"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"bfdaf3ff_c0b38309","line":11,"in_reply_to":"bfdaf3ff_890cd141","updated":"2019-01-17 21:33:04.000000000","message":"works reload also for new certificate file?","commit_id":"e6eaf368202c9649422e9be82b3d63b492636e2e"}]}
